https://github.com/othreecodes/pymvrd
Motor Vehicle Registration Information Search Portal Library for python
https://github.com/othreecodes/pymvrd
api mvrd mvrd-library nigerian-vehicles vehicle-registration vehicles
Last synced: 9 months ago
JSON representation
Motor Vehicle Registration Information Search Portal Library for python
- Host: GitHub
- URL: https://github.com/othreecodes/pymvrd
- Owner: othreecodes
- License: mit
- Created: 2016-12-16T13:22:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-14T13:59:55.000Z (over 8 years ago)
- Last Synced: 2025-04-23T11:42:29.070Z (10 months ago)
- Topics: api, mvrd, mvrd-library, nigerian-vehicles, vehicle-registration, vehicles
- Language: Python
- Size: 6.84 KB
- Stars: 14
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pymvrd  [](https://saythanks.io/to/othreecodes)
## Mvrd library - Grab all the Nigerian Vehicles Data!!!
> Mvrd Library for Python
## Installation
Requires
- Python > 2.7
```shell
pip install pymvrd #install pymvrd
```
## Usage
```python
from pymvrd.app import Mvrd
if __name__ == '__main__':
plate_num = Mvrd('')
details = plate_num.get_data()
# get_data() returns a dict
print(details)
# get indiviual Details
print('Raw data ' + str(data))
print("Number :" + data.number())
print("Owner :" + data.owner_name())
print("Issue date :" + str(data.issue_date()))
print("Vehicle Status :" + data.vehicle_status())
print("Chasis Number :" + data.chasis_number())
print("color :" + data.color())
print("Expiry :" + str(data.expiry_date()))
print("Chasis Number :" + data.chasis_number())
# Raises InvalidPlateError If the plate number does not exist
```
```python
#sample output
{'Isssue Date': '2011-11-24T13:26:31.630', 'Chasis Number': 'XXXXXXXXXXXX', 'Color': 'Ash', 'Plate Number': 'XXXXXXX', 'Model': 'Toyota Rav4', 'Expiry Date': '2012-11-23T13:26:31.630', 'Owner Name': 'Mr. . XXXXXXXX', 'Vehicle Status': 'Default'}
Raw data {'Plate Number': 'XXXXXX', 'Model': 'Toyota Camry', 'Expiry Date': '2012-11-16T14:36:09.183', 'Color': 'Ash', 'Isssue Date': '2011-11-17T14:36:09.183', 'Chasis Number': 'XXXXXXXXX', 'Vehicle Status': 'Default', 'Owner Name': 'Mr. XXX XXXX .'}
Number :XXXXX
Owner :Mr. XXX XXX XX .
Issue date :2011-11-17 14:36:09
Vehicle Status :Default
Chasis Number :XXXXXXXXXXXXXXX
color :Ash
Expiry :2012-11-16 14:36:09
Chasis Number : XXXXXXXXXXX
```
Inspiration https://github.com/unicodeveloper/mvrd by @unicodeveloper
## Liscence
MIT