Skip to main content

aiolimburgnet

Async Python client for the public limburg.net waste collection calendar API. It has no dependency on Home Assistant — it's a plain aiohttp-based library, usable standalone or as the backing library for the limburg_net Home Assistant integration.

Installation

pip install aiolimburgnet

Usage

import asyncio

import aiohttp

from aiolimburgnet import LimburgNetClient


async def main() -> None:
    async with aiohttp.ClientSession() as session:
        client = LimburgNetClient(session)

        city = await client.find_city("Genk")
        street = await client.find_street(city, "Stationsstraat")

        events = await client.get_upcoming_events(
            city, street, house_number="12", suffix=""
        )

        for event in events:
            print(event.date, event.waste_type)


asyncio.run(main())

API

  • LimburgNetClient(session: aiohttp.ClientSession)
  • await client.find_city(query: str) -> City
  • await client.find_street(city: City, query: str) -> Street
  • await client.get_upcoming_events(city, street, house_number, suffix="", months_ahead=3) -> list[CollectionEvent]

City, Street, and CollectionEvent are frozen dataclasses. All lookup failures raise a subclass of LimburgNetError:

  • CityNotFoundError — no city matched the search query
  • StreetNotFoundError — no street matched the search query within that city
  • LimburgNetConnectionError — the API could not be reached or returned an error

Development

pip install -e ".[test]"
pytest

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiolimburgnet-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

aiolimburgnet-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file aiolimburgnet-0.1.0.tar.gz.

File metadata

  • Download URL: aiolimburgnet-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for aiolimburgnet-0.1.0.tar.gz
Algorithm Hash digest
SHA256 23bae02869437e619ee5d0d79835cf559973a16bb08cabd01bd532fa23b33afe
MD5 ceac5eac5a278ed148e53c016fc2fd3e
BLAKE2b-256 d1747fd03df7cabb57cc9447a799fa73f18cc84412f92a8e864a840e8626813e

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiolimburgnet-0.1.0.tar.gz:

Publisher: publish-aiolimburgnet.yml on marcelhoffs/ha-limburg-net

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

File details

Details for the file aiolimburgnet-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aiolimburgnet-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for aiolimburgnet-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9638159167110db176c5b348f507dcf45968f3c8317d13a7a5a0d00ff9e19269
MD5 6de14e8437e819556860fc46d094c56a
BLAKE2b-256 6ba799f680a72f3af1d898b02692ffdebf4e8b3bfe1c667c855935c6615831ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiolimburgnet-0.1.0-py3-none-any.whl:

Publisher: publish-aiolimburgnet.yml on marcelhoffs/ha-limburg-net

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 Sentry Error logging StatusPage Status page