Ottimate Python SDK
Official Python SDK for the Ottimate API.
Installation
pip install ottimate-sdk
Requirements
- Python 3.8 or higher
Configuration
Create a .env file in your project root with your Ottimate credentials:
OTTIMATE_API_KEY="your_api_key"
OTTIMATE_BASE_URL="your_base_url"
OTTIMATE_CLIENT_ID="your_client_id"
OTTIMATE_CLIENT_SECRET="your_client_secret"
OTTIMATE_COMPANY_ID="your_company_id"
OTTIMATE_LOCATION_ID="your_location_id"
Authentication
The Ottimate API uses OAuth 2.0. Authentication is a two-step process:
- Create a temporary client to obtain an OAuth access token
- Initialize the main client using the access token
import httpx
from ottimate import Ottimate
# Step 1: Get an access token
auth_client = Ottimate(
base_url=base_url,
api_key=api_key,
httpx_client=httpx.Client(timeout=60, follow_redirects=True)
)
token_response = auth_client.oauth.post_oauth_token(
client_id=client_id,
client_secret=client_secret,
scope="accounts.can_access_dashboard"
)
access_token = token_response.access_token
# Step 2: Initialize the authenticated client
client = Ottimate(
base_url=base_url,
api_key=api_key,
api_version="1.0.0",
headers={"Authorization": f"Bearer {access_token}"},
httpx_client=httpx.Client(timeout=60, follow_redirects=True)
)
Full Example
import os
import httpx
from dotenv import load_dotenv
from ottimate import Ottimate
load_dotenv()
base_url = os.environ["OTTIMATE_BASE_URL"]
api_key = os.environ["OTTIMATE_API_KEY"]
client_id = os.environ["OTTIMATE_CLIENT_ID"]
client_secret = os.environ["OTTIMATE_CLIENT_SECRET"]
# Obtain access token
auth_client = Ottimate(
base_url=base_url,
api_key=api_key,
httpx_client=httpx.Client(timeout=60, follow_redirects=True)
)
token_response = auth_client.oauth.post_oauth_token(
client_id=client_id,
client_secret=client_secret,
scope="accounts.can_access_dashboard"
)
# Create authenticated client
client = Ottimate(
base_url=base_url,
api_key=api_key,
api_version="1.0.0",
headers={"Authorization": f"Bearer {token_response.access_token}"},
httpx_client=httpx.Client(timeout=60, follow_redirects=True)
)
Version
1.0.0
Support
For API documentation and guides, visit the Ottimate Developer Docs.
Metadata
Release files for ottimate-sdk 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 | |
|---|---|---|---|
| ottimate_sdk-1.0.0.tar.gz | 237.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ottimate_sdk-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 697.8 kB
Release files / ottimate_sdk-1.0.0.tar.gz
| Download URL | ottimate_sdk-1.0.0.tar.gz |
|---|---|
| Size | 237.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c74ac27be84bfadc415ed0bcc2d2d6dbc76022f1da18e3a5cab191fd3455da2
|
|
BLAKE2b-256 checksum How to use checksums |
db6de9926f3e0f62893a661e0789fcee6909c2c5e3bff5e9ff7b36719542d868
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / ottimate_sdk-1.0.0-py3-none-any.whl
| Download URL | ottimate_sdk-1.0.0-py3-none-any.whl |
|---|---|
| Size | 460.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bde2c26a0103dd65dd0d77b6790aecd4951330d3ef7f1c4953a598f715b1af42
|
|
BLAKE2b-256 checksum How to use checksums |
262a2924c1c6bf3498dfd7fedb2dd33042f3149f4fa06910478f86a72e7d405e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency log