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())
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file borasem-waste-0.0.15.tar.gz.
File metadata
- Download URL: borasem-waste-0.0.15.tar.gz
- Upload date:
- Size: 22.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5a6051ac8664916e2b818080e9ffbbd67d4bc50ab1fcb68ee1df85d4f6a735d
|
|
| MD5 |
47d497ddcbd2ee6ffb20c40e56e97e45
|
|
| BLAKE2b-256 |
7253c064550eca65327f9230b919d810382288b6ae9739f0941dd15b3bf6ec1b
|
File details
Details for the file borasem_waste-0.0.15-py3-none-any.whl.
File metadata
- Download URL: borasem_waste-0.0.15-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b051b41744d2c72fe979838f7c88c844a4aa1d73f955a3a73b3097753986df4
|
|
| MD5 |
49c1e44e86443252c512e93c62cb4424
|
|
| BLAKE2b-256 |
7d982d211d5f7d5b07748e5ce817d1f8aee5964e7781faab993d14e0dff561cf
|