Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mot_history_api_py_sdk-1.0.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

mot_history_api_py_sdk-1.0.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file mot_history_api_py_sdk-1.0.2.tar.gz.

File metadata

File hashes

Hashes for mot_history_api_py_sdk-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9479806a02c2a0011c30abc6b6e769a5c12fa201058c8d2f665200a1b3e154b0
MD5 ff1f2037226116486b07bb8c93b795a0
BLAKE2b-256 cc0aa305ca0b562c89aa1ab217aa312bf2b7e1f78db8c1d553b3017970bff106

See more details on using hashes here.

File details

Details for the file mot_history_api_py_sdk-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mot_history_api_py_sdk-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f7d8bedc8f7d209164e261fe87195df98bd3ce2387d6c0f55ea91e16b88021
MD5 afd03f866b550375c7dbf8749bad9c2f
BLAKE2b-256 7a1c4029f2998dbaeb15ec15c45c3b13664cc6ef5e3f51678c69a906d0ca20ea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page