Metadata-Version: 2.4
Name: nanopy-oracle
Version: 1.6.0
Summary: AI-powered oracle for NanoPy Network - bridge ML models to blockchain
Home-page: https://github.com/Web3-League/nanopy-oracle
Author: NanoPy Team
Author-email: dev@nanopy.chain
Keywords: blockchain oracle nanopy ai ml machine-learning
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: aiohttp>=3.8.0
Requires-Dist: click>=8.0.0
Requires-Dist: rich>=12.0.0
Requires-Dist: eth-account>=0.8.0
Requires-Dist: eth-utils>=2.0.0
Provides-Extra: ai
Requires-Dist: transformers; extra == "ai"
Requires-Dist: torch; extra == "ai"
Provides-Extra: ml
Requires-Dist: scikit-learn; extra == "ml"
Requires-Dist: numpy; extra == "ml"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# NanoPy Oracle

AI-powered oracle for NanoPy blockchain. Bridge machine learning models to on-chain smart contracts.

## Install

```bash
pip install nanopy-oracle
```

## Usage

```bash
# Run sentiment analysis oracle
nanopy-oracle --provider sentiment --private-key YOUR_KEY

# Run with custom model
nanopy-oracle --provider ai --model your_model.pkl --private-key YOUR_KEY
```

## Providers

- `sentiment` - Text sentiment analysis (positive/negative/neutral)
- `price` - Crypto price feeds (CoinGecko)
- `ai` - Custom ML model inference

## Features

- Python-native ML integration (PyTorch, scikit-learn, transformers)
- Multi-network support (L1 + L2)
- Signed oracle updates
- Configurable update intervals
- MetaMask wallet integration (no private key exposure)
- Web UI with wallet signing
