Unofficial wrapper around Avri endpoints
Project description
Python Avri API
Unofficial wrapper around the Avri API, for automation purposes.
Usage
pip install avri-api==0.1.0
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 aGarbage
objectclient.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
The Garbage
object
Contains
name
: The name of the garbage type, e.g.plastic
orgft
.day
: A python datetime object representing the collecting date.
In a long living process
Data is cached for 14
days before it's refreshed to reduce the number of API calls made.
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
avri-api-0.1.1.tar.gz
(2.6 kB
view hashes)