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
~/.bashrcor~/.zshrcor 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 with:
. .~/.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
Get help and show all command options:
python -m aeda.car.main --help
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
Params:
"code": "BzaCA1bdqU21cfZVn8r3KJwaoivzaOla7o6sLa-qD0elAzFulXlzyA=="
"username": USERNAME
"regNumber": REGNUMBER
Headers:
"api-key": APIKEY
CURL example:
curl --header "api-key: APIKEY" -X GET "https://aedacar.azurewebsites.net/api/car?code=BzaCA1bdqU21cfZVn8r3KJwaoivzaOla7o6sLa-qD0elAzFulXlzyA==&username=USERNAME®Number=REGNUMBER"
Versions
Using Calender Versioning: YYYY.MM.PATCH
- version "2022.12.20"
- December 2022
- Update README.md
- Change header key name
- version "2022.12.19"
- December 2022
- Update README.md
- version "2022.12.18"
- December 2022
- Key moved to header
- version "2022.12.17"
- December 2022
- Update error catching
- version "2022.12.17"
- December 2022
- Change request structure
- version "2022.12.16"
- December 2022
- add help descriptions
- clean up code
- version "2022.12.15"
- December 2022
- extend debug logging
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aeda-2022.12.20.tar.gz.
File metadata
- Download URL: aeda-2022.12.20.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61942b1a597dcf38a4d1e85b689f7ff51094b6c6055aa826106cda74c9d15f53
|
|
| MD5 |
0f0851f78c3ef4aa8b52c94e536ddea7
|
|
| BLAKE2b-256 |
48429dd978f86202594ce4592cdf090c138b295d3a09b4faeec4221771b58029
|
File details
Details for the file aeda-2022.12.20-py3-none-any.whl.
File metadata
- Download URL: aeda-2022.12.20-py3-none-any.whl
- Upload date:
- Size: 3.6 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 |
2497af00cf9f270c3ad9ee27644c9158c0d9ef0cf1d3839701cb1302f3a5dbeb
|
|
| MD5 |
b1aab4c92e8af1e7795c0f731bbcc668
|
|
| BLAKE2b-256 |
b1d39c780c13103d926a907dff53ab86f9654eeb980a537acf45f465565d47c1
|