Skip to main content

Async Python client for the UK DVLA Vehicle Enquiry Service

Project description

aio-dvla-vehicle-enquiry

Async Python client for the UK DVLA Vehicle Enquiry Service.

This package handles the DVLA Vehicle Enquiry Service transport, request construction, response parsing, and protocol-level errors. It is intended to be used by integrations such as Home Assistant while keeping application code as a thin wrapper.

Installation

pip install aio-dvla-vehicle-enquiry

Usage

from aiohttp import ClientSession
from aio_dvla_vehicle_enquiry import DVLAClient, DVLAError

async with ClientSession() as session:
    client = DVLAClient(session, "your-api-key")

    try:
        vehicle = await client.async_get_vehicle("AB12CDE")
    except DVLAError as err:
        print(f"DVLA lookup failed: {err}")
    else:
        print(vehicle)

Notes

This package does not include an API key. Consumers must provide their own DVLA Vehicle Enquiry Service API key.

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

aio_dvla_vehicle_enquiry-0.1.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aio_dvla_vehicle_enquiry-0.1.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file aio_dvla_vehicle_enquiry-0.1.2.tar.gz.

File metadata

  • Download URL: aio_dvla_vehicle_enquiry-0.1.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aio_dvla_vehicle_enquiry-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3e1f7e3b3df8d589250195e0b034f1b3909905e407736b1e87fa7f54db63cb48
MD5 e167d2fb2ef79fcb3064f7fd1eb7e7ca
BLAKE2b-256 9b014cf0423aa78c6bdfe4aec6624c91035dd382cb9e88fccfd585a675d24f0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for aio_dvla_vehicle_enquiry-0.1.2.tar.gz:

Publisher: publish.yml on jampez77/aio-dvla-vehicle-enquiry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aio_dvla_vehicle_enquiry-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for aio_dvla_vehicle_enquiry-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 21c2724d329cacc116e46b8f7177b95275f937f158fb131c1cb54472d445ca9f
MD5 97416600813b0ea63a41b48cbafa5df6
BLAKE2b-256 24eb05d48c53bc8717286fe6ffc293bea88b29a783a9ed125402bbfb7cf124f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for aio_dvla_vehicle_enquiry-0.1.2-py3-none-any.whl:

Publisher: publish.yml on jampez77/aio-dvla-vehicle-enquiry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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