Skip to main content
MOT History API Python SDK

The SDK provides convenient access to the MOT History API functionality from applications written in the Python programming language.

Requirements

Python 2.7 and later.

Setup

You can install this package by using the pip tool and installing:

pip install mot-history-api-py-sdk

Or:

easy_install mot-history-api-py-sdk

Install from source with:

python setup.py install --user

Or, sudo python setup.py install to install the package for all users.

Tests

Export environment variables:

export MOT_CLIENT_ID=
export MOT_CLIENT_SECRET=
export MOT_API_KEY=

Now, you can execute this command: python3 -m test

Unset the environment variables after completing the tests:

unset MOT_CLIENT_ID && unset MOT_CLIENT_SECRET && unset MOT_API_KEY

Developers/Engineers can run tests in two scenarios:

  • With real credentials: They set the environment variables, and the tests use the live API connection.

  • Without credentials: The tests run using a mock client, allowing basic functionality checks without a live API connection.

The flexibility supports real integration testing and quick, credential-free checks during development.

Request MOT History API Key

You can use this support form to request an API Key.

Using the MOT History API Key

You can read the API documentation to understand what’s possible with MOT History API Key. If you need further assistance, don’t hesitate to contact the DVSA.

License

This project is licensed under the MIT License.

Metadata

Release files for mot-history-api-py-sdk 1.0.3

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

Source distribution (sdist)

Source distribution for mot-history-api-py-sdk 1.0.3
File Size Uploaded Provenance
mot-history-api-py-sdk-1.0.3.tar.gz 7.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mot-history-api-py-sdk 1.0.3
File Interpreter ABI Platform
mot_history_api_py_sdk-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 kB

Release files / mot-history-api-py-sdk-1.0.3.tar.gz

Download URL mot-history-api-py-sdk-1.0.3.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3716203e9168241b07798935cfdc4dc7c4d34ffcc5b0625811d17a7716fa1209
BLAKE2b-256 checksum
How to use checksums
197b11eff4e2dd5c596b3a46477314a6bc1944b5efadd174e2af4a2c8c7e6bf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.8

Release files / mot_history_api_py_sdk-1.0.3-py3-none-any.whl

Download URL mot_history_api_py_sdk-1.0.3-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f836072c080db09eecccb473db8c8af05ce32d50f23df49d8e393965ca6c5a3a
BLAKE2b-256 checksum
How to use checksums
3246eda91d535a165fd7ccb6bcae7db0c15b4817941605e6995c7d3702d4b83b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.8

Security for mot-history-api-py-sdk 1.0.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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