Skip to main content

Get the next waste pickup schedule from Borås Energi och Miljö.

Project description

Project generated with PyScaffold

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

borasem_waste-0.0.15-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

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

Hashes for borasem-waste-0.0.15.tar.gz
Algorithm Hash digest
SHA256 d5a6051ac8664916e2b818080e9ffbbd67d4bc50ab1fcb68ee1df85d4f6a735d
MD5 47d497ddcbd2ee6ffb20c40e56e97e45
BLAKE2b-256 7253c064550eca65327f9230b919d810382288b6ae9739f0941dd15b3bf6ec1b

See more details on using hashes here.

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

Hashes for borasem_waste-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 5b051b41744d2c72fe979838f7c88c844a4aa1d73f955a3a73b3097753986df4
MD5 49c1e44e86443252c512e93c62cb4424
BLAKE2b-256 7d982d211d5f7d5b07748e5ce817d1f8aee5964e7781faab993d14e0dff561cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page