Get the next waste pickup schedule from Borås Energi och Miljö.
Project description
Borås Energi och Miljö Waste Collection
Simple package to get the schedule for upcoming waste pickups.
Example
import asyncio
import aiohttp
from borasem_waste import auth,borasem
valid_address = 'Validated address from async_get_address()'
search_address = 'Any address to search on.'
async def main():
async with aiohttp.ClientSession() as session:
authObj = auth.Auth(session)
api = borasem.BorasEM(authObj)
# Get Waste Schedule
schedule = await api.async_get_schedule(valid_address)
# Print states
for scheduleEntry in schedule:
print(f"The entry {scheduleEntry.containerId} is being picked up at {scheduleEntry.NextWastePickup}")
# Get Waste Schedule
addressList = await api.async_get_address(search_address)
# Print states
for address in addressList:
print(address)
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
borasem-waste-0.0.15.tar.gz
(22.9 kB
view hashes)
Built Distribution
Close
Hashes for borasem_waste-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b051b41744d2c72fe979838f7c88c844a4aa1d73f955a3a73b3097753986df4 |
|
MD5 | 49c1e44e86443252c512e93c62cb4424 |
|
BLAKE2b-256 | 7d982d211d5f7d5b07748e5ce817d1f8aee5964e7781faab993d14e0dff561cf |