Python Avri API
Unofficial wrapper around the Avri API, for automation purposes.
Usage
pip install avri-api
Initialize the client with you postal code and house number. Optionally provide a house_nr_extension and/or a country_code.
from avri.api import Avri
client = Avri('1234AB', 42)
Exposes the following functions:
client.upcoming()returns first upcoming collecting day in aGarbageobjectclient.upcoming_of_each()returns first upcoming collecting day for each garbage type in aList[Garbage]objectclient.all()returns all upcoming collecting days in aList[Garbage]object
Both upcoming and upcoming_of_each contain today's pickup.
The Garbage object
Contains
name: The name of the garbage type, e.g.plasticorgft.day: A python datetime object representing the collecting date.
In a long living process
Data is cached for 6 days before it's refreshed to reduce the number of API calls made.
Metadata
Release files for avri-api 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| avri_api-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for avri_api-0.1.8-py3-none-any.whl |
Release files / avri_api-0.1.8-py3-none-any.whl
| Download URL | avri_api-0.1.8-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40274bfacd140895a7f2c6c5f27478b0a31c21aa1a6e8767fdbc77f05a186c31
|
|
BLAKE2b-256 checksum How to use checksums |
6b13a7241513b392dd41398668f1ede5968151a06cd97e3a2169e4a10286dc1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.9
|
Security for avri-api 0.1.8
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.