DotAPI Python API library
The DotAPI Python library provides convenient access to the DotAPI REST API from any Python 3.7+ application.
Installation
pip install dotapi
Usage
from dotapi import OpenAI
client = OpenAI(
api_key="My DotAPI 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, dotapi will decide the best model for your query!
)
Metadata
Release files for dotapi 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 |
|---|---|---|---|---|
| dotapi-1.0.0.tar.gz | 185.1 kB | Without provenance | Details for dotapi-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dotapi-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for dotapi-1.0.0-py3-none-any.whl |
Total release size: 507.0 kB
Release files / dotapi-1.0.0.tar.gz
| Download URL | dotapi-1.0.0.tar.gz |
|---|---|
| Size | 185.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26a53e8b4bcc4cd2c72815695d33cb597c7463bd66da646bc4c2af37c4c2841c
|
|
BLAKE2b-256 checksum How to use checksums |
366d0dc76d2a7a84cb3224920898b38fbd80b4114f64b16a67f980f916b94e88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.2 Linux/6.6.32-02877-gde0d50d4a56c
|
Release files / dotapi-1.0.0-py3-none-any.whl
| Download URL | dotapi-1.0.0-py3-none-any.whl |
|---|---|
| Size | 321.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53af01c440aa0eb44cb0b74d2e0a3ce30f39f5e11dbb138c2a46d082c1a33fb2
|
|
BLAKE2b-256 checksum How to use checksums |
9fc04078efb3447141838feffaea203f636191351b4764b64d07c434a5c2e5f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.2 Linux/6.6.32-02877-gde0d50d4a56c
|
Security for dotapi 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.