Skip to main content

Aeda car API

Project description

mypic

PyPi

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

  1. Add ~/.secrets/aeda.yaml, a YAML file containing:
aeda:
    api:
        car:
            user: XXXXXXXX
            password: XXXXXXXXXXXXXX
  1. 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)
  1. Install yq with:
apt install yq
  1. 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

Header

"x-functions-key": APIKEY
curl --header "x-functions-key: APIKEY" -X GET "https://aedacar.azurewebsites.net/api/car?code=BzaCA1bdqU21cfZVn8r3KJwaoivzaOla7o6sLa-qD0elAzFulXlzyA==&username=USERNAME&apiKey=APIKEY&regNumber=REGNUMBER"

Versions

Using Calender Versioning: YYYY.MM.PATCH

  • 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


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.19.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

aeda-2022.12.19-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file aeda-2022.12.19.tar.gz.

File metadata

  • Download URL: aeda-2022.12.19.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

Hashes for aeda-2022.12.19.tar.gz
Algorithm Hash digest
SHA256 38ef64cc874b414552761d809322ab31707ee47e7ab713f246d7882f4895ddfc
MD5 ecaa929bb83fcef7c2878ce7ee5a8218
BLAKE2b-256 20378bf6224df9e9b679ddd52a35f4c188603b1e7fc0c588215aa66f3ccc496d

See more details on using hashes here.

File details

Details for the file aeda-2022.12.19-py3-none-any.whl.

File metadata

  • Download URL: aeda-2022.12.19-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

Hashes for aeda-2022.12.19-py3-none-any.whl
Algorithm Hash digest
SHA256 4345175a798721938846dd367a0cd1f68450ff41a44a3f9ff054f2d7c4297024
MD5 05227a925fc46f890a4776314233f192
BLAKE2b-256 a8fafe3614f25bf091e8c66b6cda2677833880aa8115ef0fb6166736fc3b8bd6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page