Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

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.2 (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.2

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

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

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

Built distribution (wheel)

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

Total release size: 252.0 kB

Release files / transynq-1.0.2.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL transynq-1.0.2.tar.gz
Size 108.4 kB
Tags Source
SHA-256 checksum
How to use checksums
100994443e477df3bee959786561f5442c4357996ee6c11c6727cae58d17d302
BLAKE2b-256 checksum
How to use checksums
fc29c0c91717d410a3b4cd4919ae5217f5554098a9535b7f77aa661a85f17773
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.2-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL transynq-1.0.2-py3-none-any.whl
Size 143.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9141e41403ea8fe1ce4e42295f9ef841a8c421facd416fb896e43c9f72b7fd0
BLAKE2b-256 checksum
How to use checksums
143e0c3c9a8cf0d7de2306d028cc57ea559145f33dc08003de75cc9a9a6ad5aa
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.2

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.

Change of provenance

The repository and configuration that created this release differ from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 2 files

Attestation for transynq-1.0.2.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