Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.5.0 instead.
Reason given by maintainers: Every vehicle lookup returns HTTP 400 (the client sends mpg=us without units=imperial). Fixed in 0.2.1, please upgrade.

motorbay-client

Python client for the Motorbay API (Danish vehicle data from Motorstyrelsen's public weekly extract). motorbay is the small wrapper you import. motorbay_client holds the models, generated by openapi-python-client from the API's OpenAPI document. Python 3.10+.

pip install motorbay-client
from motorbay import MotorbayApiError, MotorbayClient

with MotorbayClient(api_key="mbk_live_...") as motorbay:
    try:
        vehicle = motorbay.lookup_vehicle("AB12345", include=["engine", "inspection"])
        print(vehicle.make.name, vehicle.registration_number)
    except MotorbayApiError as e:
        if e.code == "VehicleNotFound":
            print("No such vehicle")
        elif e.status == 429:
            print(f"Retry in {e.retry_after}s")
        else:
            raise

Setup and tests (offline, httpx.MockTransport):

uv venv .venv && uv pip install -p .venv -r requirements-dev.txt
.venv/bin/python -m pytest -q

Metadata

Release files for motorbay-client 0.2.0

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

Source distribution (sdist)

Source distribution for motorbay-client 0.2.0
File Size Uploaded Provenance Actions
motorbay_client-0.2.0.tar.gz 65.7 kB Without provenance Details for motorbay_client-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for motorbay-client 0.2.0
File Interpreter ABI Platform Actions
motorbay_client-0.2.0-py3-none-any.whl Python 3 none any Details for motorbay_client-0.2.0-py3-none-any.whl

Total release size: 269.7 kB

Release files / motorbay_client-0.2.0.tar.gz

Download URL motorbay_client-0.2.0.tar.gz
Size 65.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ba6aadfb92ae5c014a64fceaee69a8384e89f3629bbe9042dc5f8e8b32ec1357
BLAKE2b-256 checksum
How to use checksums
2336dbe81ec7f59d30b95a9aea2a7ed347af74b640ea4ae1697ac13308c6cab1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / motorbay_client-0.2.0-py3-none-any.whl

Download URL motorbay_client-0.2.0-py3-none-any.whl
Size 204.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df4eb9f529a9d89e8ae690d697682e512ccea73e92d8d321dc14f7c9767a2e9c
BLAKE2b-256 checksum
How to use checksums
e9450681ef2064122b0bf1ea97094b67c7808018bcfc67399821349d9a9e37ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for motorbay-client 0.2.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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