Carmen Cloud Client by Adaptive Recognition
Python client for Carmen Cloud by Adaptive Recognition. This unified library provides you with access to the Vehicle API, the Transportation & Cargo API and the Carmen Cloud API (workspaces, API keys, billing, usage, stored events, storage and hooks).
Supported API Versions
- Vehicle API: v1.4.2
- Transportation & Cargo API: v1.0.1
- Carmen Cloud API: current latest version
🛠️ How to Install
pip install carmen-cloud-client
🚀 Usage
You can utilize either the Vehicle API or the Transportation & Cargo API based on your needs.
🚗 Vehicle API
from carmen_cloud_client import VehicleAPIClient, VehicleAPIOptions, SelectedServices, Locations
options = VehicleAPIOptions(
api_key="<YOUR_API_KEY>",
services=SelectedServices(anpr=True, mmr=True),
input_image_location=Locations.Europe.Hungary,
cloud_service_region="EU"
)
client = VehicleAPIClient(options)
response = client.send("./car.jpg")
print(response)
🚚 Transportation & Cargo API
from carmen_cloud_client import TransportAPIClient, TransportAPIOptions, CodeType
options = TransportAPIOptions(
api_key="<YOUR_API_KEY>",
type=CodeType.ISO,
cloud_service_region="EU"
)
client = TransportAPIClient(options)
response = client.send("./container.jpg")
print(response)
☁️ Carmen Cloud API
Manage your workspace programmatically: members, API keys, billing, usage
reports, stored events, event storage and webhooks. Use an API key with a
workspace role (ADMIN, EDITOR or ACCOUNTANT); the client exchanges it for
short-lived bearer tokens and renews them automatically.
from carmen_cloud_client import CarmenCloudClient, CarmenCloudClientOptions
client = CarmenCloudClient(CarmenCloudClientOptions(api_key="<YOUR_API_KEY>"))
workspace = client.workspace.get()
print(workspace.name, workspace.subscriptions)
# API keys
key = client.api_keys.create({"name": "ci", "role": "EDITOR"})
for k in client.api_keys.list_all():
print(k.name)
client.api_keys.rotate(key.apiKeyId)
# Usage (YYYY-MM-DD)
usage = client.usage.get_workspace_usage(from_="2026-10-01", to="2026-10-31")
print(usage.totalQuantity)
# Members
client.members.invite("colleague@example.com", role="ACCOUNTANT")
# Event storage and webhooks
client.storage.update_status({"vehicle": True})
client.hooks.create("https://example.com/carmen-hook", {"vehicle": True})
page = client.events.list("vehicle", limit=10, order="desc")
print(len(page.events))
| Attribute | Operations |
|---|---|
workspace |
get, rename, delete*, transfer_ownership* |
members |
list, invite, get, update_role, remove |
api_keys |
list, list_all, create, get, update, rotate, delete |
billing |
update_subscription, update_billing_profile, create_auth_session, create_portal_session, preview_invoice, update_usage_cap* |
usage |
get_workspace_usage, get_api_key_usage |
events |
list |
storage |
get_status, update_status |
hooks |
list, create, get, update, delete |
* Requires a signed-in user's session token instead of an API key: pass
access_token (a string or a function returning one) and workspace_id
instead of api_key.
Responses are pydantic models (carmen_cloud_client.carmen_cloud.models).
Failed calls raise CarmenAPIError with the HTTP status and the API's error
message. To get a bearer token for your own HTTP client, use
AuthClient(AuthClientOptions(api_key=...)).get_access_token().
Upgrading from 1.x
StorageAndHookAPIClientis replaced byCarmenCloudClient(storage,hooksandevents).- Models are pydantic 2 models (use
model_dump()instead ofdict()). - HTTP errors raise
CarmenAPIErrorinstead ofrequests.HTTPError. - Python 3.10 or newer is required.
🔧 Development
For more information about developing and contributing to this project, see DEVELOPMENT.md.
Metadata
Release files for carmen-cloud-client 2.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 |
|---|---|---|---|---|
| carmen_cloud_client-2.0.0.tar.gz | 30.7 kB | With provenance | Details for carmen_cloud_client-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| carmen_cloud_client-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for carmen_cloud_client-2.0.0-py3-none-any.whl |
Total release size: 64.2 kB
Release files / carmen_cloud_client-2.0.0.tar.gz
| Download URL | carmen_cloud_client-2.0.0.tar.gz |
|---|---|
| Size | 30.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
efe25b5b44bcffe7e7cc065bee5a6d304cc85f6b054c082991ccc81ad816a3e8
|
|
BLAKE2b-256 checksum How to use checksums |
18b9d93f4d4f0ef6adde54f66d462f313f95152e7bf2d6e3cda9455b9df7ab59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logRelease files / carmen_cloud_client-2.0.0-py3-none-any.whl
| Download URL | carmen_cloud_client-2.0.0-py3-none-any.whl |
|---|---|
| Size | 33.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c71a943e39a857cb1955d93eced7dda5a61593bad994705fdb849f3ad82d9d0
|
|
BLAKE2b-256 checksum How to use checksums |
9d0959bf762df587b1cfeb5545adbe91ef126c5c69b6443f3c03a4189b37f3d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logSecurity for carmen-cloud-client 2.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for carmen_cloud_client-2.0.0.tar.gz
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 Nov 24, 2026.
Transparency logA 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.