Dotrouter Python API library
The Dotrouter Python library provides convenient access to the Dotrouter REST API from any Python 3.7+ application.
Installation
pip install dotrouter
Usage
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!
)
Metadata
Release files for dotrouter 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dotrouter-1.0.0.tar.gz | 243.8 kB | Without provenance | Details for dotrouter-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dotrouter-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for dotrouter-1.0.0-py3-none-any.whl |
Total release size: 567.4 kB
Release files / dotrouter-1.0.0.tar.gz
| Download URL | dotrouter-1.0.0.tar.gz |
|---|---|
| Size | 243.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34f088280e142e3e169925686112d6c6f107313174987c2310c4c04326b8fbe7
|
|
BLAKE2b-256 checksum How to use checksums |
73bc8090a06f634ccded3035846b49c555fe85e4840e35df0fd238e5c2320ad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.0
|
Release files / dotrouter-1.0.0-py3-none-any.whl
| Download URL | dotrouter-1.0.0-py3-none-any.whl |
|---|---|
| Size | 323.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
16d307d9794fef50b55864feab0bc3c19e0ade5d1f8cd2a2c3103c7230d2870e
|
|
BLAKE2b-256 checksum How to use checksums |
02704242444210611b53b758faf0210d2543d134d9bed8e580779713142add39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.0
|
Security for dotrouter 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.