Metadata-Version: 2.4
Name: reivo
Version: 0.1.0
Summary: Reivo SDK — Cut your AI API costs in half with one line of code.
Project-URL: Homepage, https://reivo.dev
Project-URL: Repository, https://github.com/tazsat0512/reivo
Project-URL: Documentation, https://reivo.dev
Author-email: Satoshi Tazoe <hello@reivo.dev>
License-Expression: MIT
Keywords: ai,anthropic,budget,cost,google,llm,openai,proxy
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Provides-Extra: all
Requires-Dist: anthropic>=0.20.0; extra == 'all'
Requires-Dist: google-genai>=1.0.0; extra == 'all'
Requires-Dist: openai>=1.0.0; extra == 'all'
Provides-Extra: anthropic
Requires-Dist: anthropic>=0.20.0; extra == 'anthropic'
Provides-Extra: google
Requires-Dist: google-genai>=1.0.0; extra == 'google'
Provides-Extra: openai
Requires-Dist: openai>=1.0.0; extra == 'openai'
Description-Content-Type: text/markdown

# Reivo Python SDK

Cut your AI API costs in half with one line of code.

## Install

```bash
pip install reivo
```

With provider dependencies:

```bash
pip install reivo[openai]      # OpenAI
pip install reivo[anthropic]   # Anthropic
pip install reivo[all]         # All providers
```

## Quick Start

```python
from reivo import Reivo

r = Reivo("rv_your_api_key")

# OpenAI
client = r.openai()
resp = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello"}],
)

# Anthropic
client = r.anthropic()
resp = client.messages.create(
    model="claude-sonnet-4-20250514",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}],
)

# Google
client = r.google()
resp = client.models.generate_content(
    model="gemini-2.5-flash",
    contents="Hello",
)
```

## Session & Agent Tracking

```python
r = Reivo(
    "rv_your_api_key",
    session_id="session-123",
    agent_id="my-agent",
)
client = r.openai()
```

## Self-Hosted

```python
r = Reivo("rv_...", base_url="https://your-proxy.example.com")
```

## Get Your API Key

Sign up at [reivo.dev](https://reivo.dev) and generate a key in Settings.

## License

MIT
