Skip to content

Latest commit

 

History

History
102 lines (57 loc) · 2.62 KB

LONG_DESCRIPTION.rst

File metadata and controls

102 lines (57 loc) · 2.62 KB

mot-history-api-py-sdk

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.

Copyright

Copyright © 2023 - 2025 Finbarrs Oketunji.

The MOT History API Python SDK is Licensed under the Open Government Licence v3.0