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, from_date=None) -> list[CollectionEvent] (from_date picks the first month; defaults to today in the system timezone)

The search API matches by prefix. find_city / find_street return the exact (case-insensitive) match, or the only result if there is just one; otherwise they raise, with the matching names in the exception's candidates list.

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

  • CityNotFoundError — no single city matched the query (candidates lists ambiguous matches)
  • StreetNotFoundError — no single street matched the query within that city (same candidates)
  • LimburgNetConnectionError — the API could not be reached, timed out (30 s), or returned an error or unexpected data

Development

pip install -e ".[test]"
pytest

Metadata

Release files for aiolimburgnet 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 aiolimburgnet 0.2.0
File Size Uploaded
aiolimburgnet-0.2.0.tar.gz 6.4 kB Details

Built distribution (wheel)

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

Total release size: 13.0 kB

Release files / aiolimburgnet-0.2.0.tar.gz

Download URL aiolimburgnet-0.2.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
833fc4fb742b8b564a65a54558331d4c0065d28fa63378a3f31e9391933d8c25
BLAKE2b-256 checksum
How to use checksums
b0f5a6beb408c18a0e6edf35f11b984b5eed15b2bb0016c148927cbc2ab72288
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

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

Download URL aiolimburgnet-0.2.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4c315b838abfe854ca427940182c9ed573f49fccac2affd7046b37b5108b12e
BLAKE2b-256 checksum
How to use checksums
f4f2bd6aacced73581374e79595c367106d76015906aa049e0f4e3ae6693f949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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