Skip to main content

Transynq - Intelligent Transport Operations

Python SDK for the Transynq TMS API

Intelligent Transport Operations

CI Release PyPI Downloads Runtime License: MIT Docs API 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.1 (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) and typing_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

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 (correlationId on 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.1

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

Source distribution (sdist)

Source distribution for transynq 1.0.1
File Size Uploaded Provenance Actions
transynq-1.0.1.tar.gz 108.3 kB With provenance Details for transynq-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for transynq 1.0.1
File Interpreter ABI Platform Actions
transynq-1.0.1-py3-none-any.whl Python 3 none any Details for transynq-1.0.1-py3-none-any.whl

Total release size: 251.9 kB

Release files / transynq-1.0.1.tar.gz

Download URL transynq-1.0.1.tar.gz
Size 108.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a6e01cdc5071833d457c83222856f5d14f0a70f2ab95a2d7b6286b3838b8b3f3
BLAKE2b-256 checksum
How to use checksums
f0df930db59212199807530e896a1978f5c848362a349658394e9d2c7cf6387a
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 log

Release files / transynq-1.0.1-py3-none-any.whl

Download URL transynq-1.0.1-py3-none-any.whl
Size 143.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0e943524ccc69f0b7d9a534be1b036d1f7418f1dd9aad00740ea3c06da4a9cf
BLAKE2b-256 checksum
How to use checksums
45a63a71cbb9d06b875becbdd01719f193725dcdc2e61288adee0c44fb2733f0
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 log

Security for transynq 1.0.1

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 transynq-1.0.1.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 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