Aeda car API
Project description
Aeda API
An Aeda service for getting detailed info for cars using registration number.
Getting Started
Installation process
1. Install from PyPi using:
python -m pip install aeda
2. Add global variables
AEDA_API_CAR_USER
AEDA_API_CAR_PASSWORD
2.1 Ubuntu
- Add
~/.secrets/aeda.yaml
, a YAML file containing
aeda:
api:
car:
user: XXXXXXXX
password: XXXXXXXXXXXXXX
- Run in console or add to
~/.bashrc
or~/.zshrc
or other system command config files:
export AEDA_API_CAR_USER=$(yq -r '.aeda.api.car.user' ~/.secrets/aeda.yaml)
export AEDA_API_CAR_PASSWORD=$(yq -r '.aeda.api.car.password' ~/.secrets/aeda.yaml)
- Install yq with
apt install yq
- Reload env
. .~/.bashrc
2.2 Windows
Usage
Run either using command line or as a python library.
1. Command line
Run from command line using:
python -m aeda.car.main --regnumber XXXXXXXXX
2. API
Run in a python script using:
import aeda.car
aeda.car.get_car_from_reg_number("XXXXXXXXX")
API references
Endpoint:
https://aedacar.azurewebsites.net/api/car?code=BzaCA1bdqU21cfZVn8r3KJwaoivzaOla7o6sLa-qD0elAzFulXlzyA==
Payload:
{'payload': {'username': 'XXXXXXX'.
'apiKey': 'XXXXXXX',
'regNumber': 'XXXXXXX'
}
}
Versions
Using Calender Versioning: YYYY.MM.PATCH
- version "2022.12.14"
- December 2022
- add debug logging
- version "2022.12.13"
- December 2022
- add csv write and read
- version "2022.12.12"
- December 2022
- update README.md
- version "2022.12.11"
- December 2022
- update README.md
- fix small bugs
- version "2022.12.10"
- December 2022
- update README.md
- fix samll bugs
- imporve structure
- version "2022.12.1"
- December 2022
- first release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aeda-2022.12.15.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file aeda-2022.12.15.tar.gz
.
File metadata
- Download URL: aeda-2022.12.15.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6820edf04d19c9ead3941439e7d4c94b933888e1387794f38b3b5a6aa215b36 |
|
MD5 | 767e55229d868d7870bd91ae1e6d7d0d |
|
BLAKE2b-256 | fd388cf473ef10b2572cef06799b4eed40d12fe3cf59b007e840eb9a3d415efe |
File details
Details for the file aeda-2022.12.15-py3-none-any.whl
.
File metadata
- Download URL: aeda-2022.12.15-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ec868db1928af0a353a3c5aa77595734261d6c4d148a8835b38565457b17990 |
|
MD5 | 2d6cc41cbcc111a594aa14820a5b8f7a |
|
BLAKE2b-256 | 8db54586a7316a9c54fa05eb57fdf13b4cc0caffc04b83117aa4575510c5e38b |