Python SDK for the Transynq TMS API
Intelligent Transport Operations
The official Python client for Transynq TMS (/api/v1): all 705 operations of the API, grouped by area (jobs,
bookings, dispatch, invoicing, customers, driver app...), with typed models, authentication, retries, typed errors, paging,
optimistic concurrency, file transfer and long-running operations handled for you.
- Package:
transynq- version 1.0.0 (semantic versioning, independent of the API version) - Generated from the Transynq API OpenAPI 3.1 contract v1.0.0 plus a hand-written core
- Licence: MIT
Requirements
- Python 3.10 or later
httpx,pydantic(v2) andtyping_extensions(installed automatically)
Install
pip install transynq
Quick start
import os
from transynq import ApiKeyCredential, TransynqClient
with TransynqClient("https://api.example.com", credential=ApiKeyCredential(os.environ["TRANSYNQ_API_KEY"])) as client:
countries = client.reference_data.list_countries()
for country in countries.data:
print(country.name)
print(f"Answered by API {countries.api_version}, correlation id {countries.correlation_id}")
One attribute per OpenAPI tag (client.jobs, client.reference_data, client.driver_app...), one method per operation named after its operationId in snake case (get_job, list_countries). Path parameters are positional, then the body; query parameters and upload parts are keyword arguments (a name that is a Python keyword gets a trailing underscore: from_); options= takes RequestOptions. AsyncTransynqClient has the same surface with async methods.
Every call returns an ApiResponse: ApiResponse[T] exposes data, status_code, headers, etag, api_version (X-Api-Version), correlation_id (X-Correlation-Id), location and is_accepted.
Authentication
The API accepts three non-browser credentials; pick the one that matches your integration.
| Credential | When | Wire |
|---|---|---|
ApiKeyCredential |
server-to-server integrations | X-Transynq-APIKey: <key> |
SessionCredential |
tools acting as a named user | POST /api/v1/auth/login, then the session cookie + X-CSRF-Token |
DriverLoginCredential / DriverTokenCredential |
driver / POD apps (/api/v1/driver/*) |
Authorization: Bearer <token> |
client = TransynqClient("https://api.example.com", credential=ApiKeyCredential("tq_example_key_123")) # sent as X-Transynq-APIKey
who = client.authentication.get_api_client() # {"companyId": ..., "description": ...}
print(who.data.json())
See docs/authentication.md for sessions, CSRF and driver tokens.
Documentation
- Getting started
- Authentication
- Configuration
- Error handling
- Pagination and grid queries
- Concurrency (ETag / If-Match)
- Idempotency
- Long-running operations
- File upload and download
- Logging and observability
- Dates, money and enums (type mapping)
- Testing your integration
- Versioning and compatibility
- Troubleshooting and FAQ
- Resource index (every operation, generated)
Runnable samples of real flows (sign in, list and page grid rows, create a booking idempotently, update with If-Match, list
invoices, upload a POD, wait on a long operation) are in examples/flows.py.
The API reference is built from the docstrings with MkDocs Material + mkdocstrings (mkdocs.yml in this repository):
pip install -e ".[docs]"
mkdocs build --strict # writes site/ (not checked in)
Support
- Bugs and feature requests: GitHub issues (use the templates; never paste real keys, passwords or customer data).
- Security problems: see SECURITY.md - do not open a public issue.
- When the API answers with an error, quote its correlation id (
correlationIdon the error).
Contributing
See CONTRIBUTING.md and the code of conduct.
Licence
MIT - Copyright (c) 2026 Transynq.
The Transynq name and logos are trademarks of Transynq and are not covered by the MIT licence; you may use them only to refer to Transynq.
Metadata
Release files for transynq 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 |
|---|---|---|---|---|
| transynq-1.0.0.tar.gz | 108.2 kB | With provenance | Details for transynq-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| transynq-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for transynq-1.0.0-py3-none-any.whl |
Total release size: 251.8 kB
Release files / transynq-1.0.0.tar.gz
| Download URL | transynq-1.0.0.tar.gz |
|---|---|
| Size | 108.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
546142f5819a77e04a52d266326c57d1ec7987aa792691b7810b299e0e2c3e20
|
|
BLAKE2b-256 checksum How to use checksums |
ebd3b3171a64397e6765d3e685330a90a5fee84755e1d41fe8df17cebb0258ef
|
| 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 16, 2026.
Transparency logRelease files / transynq-1.0.0-py3-none-any.whl
| Download URL | transynq-1.0.0-py3-none-any.whl |
|---|---|
| Size | 143.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d694f672f3ebfa70f254a118de457e17ab568943849ff2bdc66f3d5fc97fe14
|
|
BLAKE2b-256 checksum How to use checksums |
4d6543b471e625bd2823ffa9c43767d653a77e65bfa2e4d9c8cd479544d81c69
|
| 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 16, 2026.
Transparency logSecurity for transynq 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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for transynq-1.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 16, 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.