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.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

mot_history_api_py_sdk-1.0.3-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.3.tar.gz.

File metadata

  • Download URL: mot-history-api-py-sdk-1.0.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.8

File hashes

Hashes for mot-history-api-py-sdk-1.0.3.tar.gz
Algorithm Hash digest
SHA256 3716203e9168241b07798935cfdc4dc7c4d34ffcc5b0625811d17a7716fa1209
MD5 bfc8b50b1d104edbda752337a8c8e5bd
BLAKE2b-256 197b11eff4e2dd5c596b3a46477314a6bc1944b5efadd174e2af4a2c8c7e6bf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mot_history_api_py_sdk-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f836072c080db09eecccb473db8c8af05ce32d50f23df49d8e393965ca6c5a3a
MD5 b3a7dac2d8be5800bc020438f9df46ab
BLAKE2b-256 3246eda91d535a165fd7ccb6bcae7db0c15b4817941605e6995c7d3702d4b83b

See more details on using hashes here.

Supported by

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