Skip to main content
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

Headers:

"api-key": APIKEY

CURL example:

curl --header "api-key: APIKEY" -X GET "https://aedacar.azurewebsites.net/api/car?code=BzaCA1bdqU21cfZVn8r3KJwaoivzaOla7o6sLa-qD0elAzFulXlzyA==&username=USERNAME&regNumber=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

Metadata

Release files for aeda 2022.12.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aeda 2022.12.20
File Size Uploaded Provenance
aeda-2022.12.20.tar.gz 7.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aeda 2022.12.20
File Interpreter ABI Platform
aeda-2022.12.20-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / aeda-2022.12.20.tar.gz

Download URL aeda-2022.12.20.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
61942b1a597dcf38a4d1e85b689f7ff51094b6c6055aa826106cda74c9d15f53
BLAKE2b-256 checksum
How to use checksums
48429dd978f86202594ce4592cdf090c138b295d3a09b4faeec4221771b58029
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.14

Release files / aeda-2022.12.20-py3-none-any.whl

Download URL aeda-2022.12.20-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2497af00cf9f270c3ad9ee27644c9158c0d9ef0cf1d3839701cb1302f3a5dbeb
BLAKE2b-256 checksum
How to use checksums
b1d39c780c13103d926a907dff53ab86f9654eeb980a537acf45f465565d47c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.14

Security for aeda 2022.12.20

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page