Metadata-Version: 2.3
Name: dotrouter
Version: 1.0.0
Summary: The official Python library for the dotrouter API
Project-URL: Homepage, https://github.com/AumJavalgikar/dotrouter
Project-URL: Repository, https://github.com/AumJavalgikar/dotrouter
Author-email: DotAgent <contact@dotagent.ai>
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: OS Independent
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.7
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: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.7.1
Requires-Dist: anyio<5,>=3.5.0
Requires-Dist: cached-property; python_version < '3.8'
Requires-Dist: distro<2,>=1.7.0
Requires-Dist: httpx<1,>=0.23.0
Requires-Dist: pydantic<3,>=1.9.0
Requires-Dist: sniffio
Requires-Dist: tqdm>4
Requires-Dist: typing-extensions<5,>=4.7
Provides-Extra: datalib
Requires-Dist: numpy>=1; extra == 'datalib'
Requires-Dist: pandas-stubs>=1.1.0.11; extra == 'datalib'
Requires-Dist: pandas>=1.2.3; extra == 'datalib'
Description-Content-Type: text/markdown

# Dotrouter Python API library

The Dotrouter Python library provides convenient access to the Dotrouter REST API from any Python 3.7+
application.

## Installation

```sh
pip install dotrouter
```

## Usage

```python
from dotrouter import OpenAI

client = OpenAI(
    api_key="My Dotrouter Key",  # defaults to os.environ.get("DOTROUTER_API_KEY")
)

chat_completion = client.chat.completions.create(
    messages=[
        {
            "role": "user",
            "content": "Say this is a test",
        }
    ]
    # No need to pass model, dotrouter will decide the best model for your query!
)
```