Skip to main content

Official Python SDK for the VIN Decoder Vehicle API

Project description

VIN Decoder Vehicle — Python SDK

CI PyPI License: MIT

Official Python SDK for the VIN Decoder Vehicle API.

Features

  • Zero runtime dependencies (stdlib only)
  • Python 3.9+
  • Typed dataclass models
  • All API endpoints supported

Installation

pip install vindecodervehicle

Quick Start

from vindecodervehicle import VinDecoderClient

client = VinDecoderClient.create(user="YOUR_USER", api_key="YOUR_API_KEY")

vehicle = client.decode_vin("WF0GXXGAJ69C71882")
print(vehicle.full_name)  # BMW 3 Coupe (E92) 316 i
print(vehicle.make)       # BMW
print(vehicle.car_id)     # 55565

API Reference

VIN

vehicle = client.decode_vin("WF0GXXGAJ69C71882")
vehicles = client.decode_vin_all("WF0GXXGAJ69C71882")
engines = client.get_engines("WF0GXXGAJ69C71882")

Vehicle by carId

vehicle = client.get_vehicle(55565)
fluids = client.get_fluid_capacities(55565)
parts = client.get_oem_parts(55565)
repairs = client.get_repair_times(55565)

Catalog

brands = client.list_brands()
models = client.list_models("bmw")
variants = client.list_variants("bmw", "3-series")

Error Handling

from vindecodervehicle import (
    ApiError,
    AuthenticationError,
    InvalidArgumentError,
)

try:
    vehicle = client.decode_vin("INVALID")
except InvalidArgumentError:
    pass
except AuthenticationError:
    pass
except ApiError as exc:
    print(exc.status_code, exc.response_body)

Links

License

MIT

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

vindecodervehicle-1.0.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

vindecodervehicle-1.0.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file vindecodervehicle-1.0.0.tar.gz.

File metadata

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

File hashes

Hashes for vindecodervehicle-1.0.0.tar.gz
Algorithm Hash digest
SHA256 58566d7579c4dce1efff0c8a1b983cda9204c8dc601abcceb1db14bcf91f9005
MD5 2f83f594fa5be9ef2a00403b473bbd66
BLAKE2b-256 c3f3fa83bbcf2c0ad4b04e83b634a9832f75501cd98c3561380d712c8bebd877

See more details on using hashes here.

Provenance

The following attestation bundles were made for vindecodervehicle-1.0.0.tar.gz:

Publisher: publish.yml on JoxMarkes/vindecodervehicle-python-sdk

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

File details

Details for the file vindecodervehicle-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vindecodervehicle-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33ec85b1c0397b21cb5ca105e92f96b6e9292cd0a2ad9190608a1f6105490445
MD5 12370a6e9b605a679acca149996398e3
BLAKE2b-256 120a8f92ab332a59da3a1c1ef946c35f7f25a733936cf824bea6899e1e006d5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for vindecodervehicle-1.0.0-py3-none-any.whl:

Publisher: publish.yml on JoxMarkes/vindecodervehicle-python-sdk

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