Metadata-Version: 2.1
Name: mot-history-api-py-sdk
Version: 0.0.2
Summary: The SDK provides convenient access to the MOT History API for applications written in the Python programming language.
Home-page: https://dvsa.github.io/mot-history-api-documentation/
Author: Finbarrs Oketunji
Author-email: f@finbarrs.eu
License: MIT
Project-URL: Bug Tracker, https://github.com/0xnu/mot-history-api-sdk/issues
Project-URL: Changes, https://github.com/0xnu/mot-history-api-sdk/blob/main/CHANGELOG.md
Project-URL: Documentation, https://dvsa.github.io/mot-history-api-documentation/
Project-URL: Source Code, https://github.com/0xnu/mot-history-api-sdk
Description: mot-history-api-py-sdk
        ======================
        
        .. image:: https://badge.fury.io/py/mot-history-api-py-sdk.svg
            :target: https://badge.fury.io/py/mot-history-api-py-sdk
            :alt: MOT History API Python SDK
        
        The SDK provides convenient access to the `MOT History API`_ functionality from applications written in the Python programming language.
        
        .. _MOT History API: https://dvsa.github.io/mot-history-api-documentation/
        
        
        Requirements
        ------------
        
        Python 2.7 and later.
        
        
        Setup
        ------
        
        You can install this package by using the pip tool and installing:
        
        .. code-block:: bash
        
        	$ pip install mot-history-api-py-sdk
        
        Or:
        
        .. code-block:: bash
        
        	$ easy_install mot-history-api-py-sdk
        
        
        Usage Example
        -------------
        
        .. code-block:: python
        
            from motapi.motdata import *
        
            api_key = "<your-api-key>" # your api key
            registration = "ML58FOU" # example of a vehicle registration
            page = 1 # pagination
            date = "20230201" # date must be five weeks from the current date
            vehicle_id = "<enter your vehicle id here>" # unique vehicle id for vehicles that have had an MOT test
        
            reg = Registration(api_key)
            reg_data = reg.get_data(registration)
            if reg_data is not None:
                print(reg_data)
            else:
                print("Failed to retrieve data!")
        
            p = Page(api_key)
            page_data = p.get_data(page)
            if page_data is not None:
                print(page_data)
            else:
                print("Failed to retrieve data!")
        
            d = Date(api_key)
            date_data = d.get_data(date, page)
            if date_data is not None:
                print(date_data)
            else:
                print("Failed to retrieve data!")
        
            v = VehicleID(api_key)
            vehicle_data = v.get_data(vehicle_id)
            if vehicle_data is not None:
                print(vehicle_data)
            else:
                print("Failed to retrieve data!")
        
        
        Request MOT History API Key
        ---------------------------
        
        You can use this support form to request an `API Key`_.
        
        .. _API Key: https://www.smartsurvey.co.uk/s/MOT_History_TradeAPI_Access_and_Support?
        
        
        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`_.
        
        .. _API documentation: https://dvsa.github.io/mot-history-api-documentation/
        .. _contact the DVSA: https://www.smartsurvey.co.uk/s/MOT_History_TradeAPI_Access_and_Support?
        
        License
        --------
        
        This project is licensed under the `MIT License`_.  
        
        .. _MIT License: https://gist.github.com/0xnu/d11da49c85eeb7272517a9010bbdf1ab
        
        
        Copyright
        ---------
        
        Copyright |copy| 2023 `Finbarrs Oketunji`_.
        
        The MOT History API Python SDK is Licensed under the `Open Government Licence v3.0`_
        
        .. |copy| unicode:: 0xA9 .. copyright sign
        .. _Finbarrs Oketunji: https://www.gov.uk/dvsa
        .. _Open Government Licence v3.0: https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/
Keywords: dvsa,gov,uk,mot,hgv,psv,vehicle,registration,results
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Description-Content-Type: text/x-rst
