Metadata-Version: 2.4
Name: routeplex
Version: 0.0.1
Summary: RoutePlex Python SDK - Multi-model AI gateway. Route requests across OpenAI, Anthropic, and Google Gemini through a unified API.
Author-email: RoutePlex <pashupathi@routeplex.com>
License: MIT
Project-URL: Homepage, https://routeplex.com
Project-URL: Documentation, https://routeplex.com/docs
Project-URL: Repository, https://github.com/routeplex/routeplex-python
Project-URL: Bug Tracker, https://github.com/routeplex/routeplex-python/issues
Keywords: ai,llm,openai,anthropic,gemini,gateway,routing,multi-model
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
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 :: Python Modules
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# RoutePlex Python SDK

> **Coming Soon** - The official Python SDK for [RoutePlex](https://routeplex.com), the multi-model AI gateway.

## What is RoutePlex?

RoutePlex is a unified API gateway that intelligently routes your AI requests across **OpenAI**, **Anthropic**, and **Google Gemini** — with smart routing, cost optimization, and built-in content moderation.

## Coming Soon

```python
from routeplex import RoutePlex

client = RoutePlex(api_key="rp_...")

# Auto-route to the best model
response = client.chat("Explain quantum computing")

# Or pick a strategy
response = client.chat(
    "Write a Python function to sort a list",
    strategy="quality",  # cost | balanced | quality | speed
)

print(response.output)
print(f"Model: {response.model_used}")
print(f"Cost: ${response.usage.cost_usd:.6f}")
```

## Features (Planned)

- **Unified API** - One SDK for OpenAI, Anthropic, and Gemini
- **Smart Routing** - Auto-select the best model based on your strategy
- **Cost Tracking** - Real-time cost estimation and tracking
- **Content Moderation** - Built-in 3-layer moderation pipeline
- **OpenAI Compatible** - Drop-in replacement with `base_url` swap
- **Type Safe** - Full type hints and autocompletion

## Get Notified

Star the [GitHub repo](https://github.com/routeplex/routeplex-python) or visit [routeplex.com](https://routeplex.com) to get notified when the SDK launches.

## Current Integration

While the SDK is being built, you can use RoutePlex today via the OpenAI SDK:

```python
from openai import OpenAI

client = OpenAI(
    api_key="rp_your_api_key",
    base_url="https://api.routeplex.com/v1",
)

response = client.chat.completions.create(
    model="routeplex-ai",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## License

MIT
