Skip to main content

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

  • StorageAndHookAPIClient is replaced by CarmenCloudClient (storage, hooks and events).
  • Models are pydantic 2 models (use model_dump() instead of dict()).
  • HTTP errors raise CarmenAPIError instead of requests.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.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for carmen-cloud-client 2.1.0
File Size Uploaded Provenance Actions
carmen_cloud_client-2.1.0.tar.gz 31.2 kB With provenance Details for carmen_cloud_client-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for carmen-cloud-client 2.1.0
File Interpreter ABI Platform Actions
carmen_cloud_client-2.1.0-py3-none-any.whl Python 3 none any Details for carmen_cloud_client-2.1.0-py3-none-any.whl

Total release size: 65.2 kB

Release files / carmen_cloud_client-2.1.0.tar.gz

Download URL carmen_cloud_client-2.1.0.tar.gz
Size 31.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9102e5a44a5092b00e6b2547273adfc8f8d461de4c504f4cfbae5c77e622c8c6
BLAKE2b-256 checksum
How to use checksums
6c59f75211b5b6946b4e3e57d32cc12e00f3a088de0aba04110f7624618231c5
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 log

Release files / carmen_cloud_client-2.1.0-py3-none-any.whl

Download URL carmen_cloud_client-2.1.0-py3-none-any.whl
Size 33.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad93b2b353512ecb688a84abf4b8655700b79beee662c42d69ab9705a97969d3
BLAKE2b-256 checksum
How to use checksums
9ac1c95a4588bc06b1f08b0f8bbe15f0d9516c66f83c0ef8977122a6623319a3
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 log

Security for carmen-cloud-client 2.1.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.

Select from 2 files

Attestation for carmen_cloud_client-2.1.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 log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page