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
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)
Where ~/.secrets/aeda.yaml
is a YAML file containing
aeda:
api:
car:
user: XXXXXXXX
password: XXXXXXXXXXXXXX
Remember to install yq with
apt install yq
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.11"
- December 2022
- update README.md
- 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.13.tar.gz
(6.1 kB
view details)
Built Distribution
File details
Details for the file aeda-2022.12.13.tar.gz
.
File metadata
- Download URL: aeda-2022.12.13.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebf6ed379dabb397cfd3252685a82d6ffa0420f4273263c4d6e1d38fcdf6e8d2 |
|
MD5 | 535f610f07f0855addfb3a76f17ea218 |
|
BLAKE2b-256 | 067a361aab8dd4ee96350668df5b96d7d1a4d7c493f54c85341040d040be6d8e |
File details
Details for the file aeda-2022.12.13-py3-none-any.whl
.
File metadata
- Download URL: aeda-2022.12.13-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6db8c995afd090fa22ae2965979816b422cce23a61f026f7fb6fc10410342778 |
|
MD5 | 6bd4e6affe8f0c7782c922edad7f2616 |
|
BLAKE2b-256 | 50c1c3a901f4941d692adf3b6f8f19196cc1bb4572cf1d32944bb010c2e437d1 |