A package to gather waste collection details for UK addresses served by Cardiff Council.
Project description
cardiffwaste
About
This is a simple package to collect upcoming waste collections for an addresses served by Cardiff Council.
Installation
pip install cardiffwaste
Usage
Currently you are required to know your Unique Property Reference Number (UPRN), this can easily be found on https://www.findmyaddress.co.uk/search. The example below uses 123456789012
from cardiffwaste import WasteCollections
address = WasteCollections(123456789012)
collections = address.get_next_collections()
print(collections["general"]["collection_date"])
# 2022-01-15
Five collection types are currently handled, which are general
, recycling
, food
, garden
and hygiene
. These keys will only be present if a collection is scheduled in the next 4 weeks. For scheduled collections, each collection will have the following keys:
Attribute | Value Type | Description |
---|---|---|
type |
str |
The collection type (general , recycling , food , or garden ) |
collection_date |
datetime.date |
Date of next collection |
collection_type |
str |
scheduled or rescheduled depending on if planned has been missed |
image |
str |
URL of a representation of the collection type |
Contributing
My current plans are to get this to what might actually be called a stable state and sort out CI.
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
Built Distribution
Hashes for cardiffwaste-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 637382a8cb5430271fea902aa15db6da016d5830d2a19a63cb13804c2895ec26 |
|
MD5 | 8f2dd4f79beab81ccd1d105e9cca199c |
|
BLAKE2b-256 | 0b3279c8ca087bf7f27b76713c1a467d3eb926ea68ecd9172ea7f88c47c0914f |