Skip to main content

Async integration layer between Home Assistant and Dutch municipal visitor parking APIs.

Project description

pyCityVisitorParking

Async integration layer between Home Assistant and Dutch municipal visitor parking APIs.

Status

This package ships the core client, provider interface, and discovery tooling, plus the following providers:

  • DVS Portal
  • The Hague

list_providers() reads provider manifests under src/pycityvisitorparking/provider/.

Provider documentation:

Installation

pip install pycityvisitorparking

Usage

import asyncio

from pycityvisitorparking import Client


async def main() -> None:
    async with Client() as client:
        providers = await client.list_providers()
        print(providers)


asyncio.run(main())

Provider framework

Providers are discovered via manifest.json files without importing provider modules. To add a provider later, create:

src/pycityvisitorparking/provider/<provider_id>/
  manifest.json
  __init__.py
  api.py
  const.py
  README.md
  CHANGELOG.md

Only files under src/pycityvisitorparking/provider/<provider_id>/ should change in a provider PR.

Normalization rules

  • All public timestamps must be UTC ISO 8601 with Z and no microseconds.
  • License plates are normalized to uppercase A-Z0-9 without spaces/symbols.
  • zone_validity must include only chargeable windows.

Development

Run checks with Hatch:

hatch run lint:check
hatch run lint:format-check
hatch run test:run

Build artifacts:

hatch build
python -m twine check dist/*

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

pycityvisitorparking-0.2.0.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

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

pycityvisitorparking-0.2.0-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file pycityvisitorparking-0.2.0.tar.gz.

File metadata

  • Download URL: pycityvisitorparking-0.2.0.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pycityvisitorparking-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d917843d86b3a324a80e0296b820123f70dd7932dcfc9c8252ac9997b47409f0
MD5 98c12abac80a466a69a6349f41b62b8d
BLAKE2b-256 7e101952b91d78fcff33321a74bc1e4906a39c7e582afeb75f8bb6f9928a6259

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycityvisitorparking-0.2.0.tar.gz:

Publisher: release.yml on sir-Unknown/pyCityVisitorParking

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

File details

Details for the file pycityvisitorparking-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pycityvisitorparking-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 140478d526e6c76d5d6f679f5375498210fd050a1f5e447f816decbe5155f94d
MD5 5d2e6f515823db50d891d2638251222a
BLAKE2b-256 992953d594c3c65978b970f9f5060690f52a1b39d025c45e828d8712e7b0351d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycityvisitorparking-0.2.0-py3-none-any.whl:

Publisher: release.yml on sir-Unknown/pyCityVisitorParking

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