A Python wrapper around the OpenERZ API.
Project description
OpenERZ Python API
This wrapper allows you to interact with the OpenERZ API using Python code.
For more information about the API itself see: http://openerz.metaodi.ch/documentation and https://github.com/metaodi/openerz
Usage example
A ready-to-run example can also be found in the examples
directory.
from openerz_api.main import OpenERZConnector
ZIP = 8001
WASTE = "paper"
# initialize the connector given zip code and waste type
connector = OpenERZConnector(zip_code=ZIP, waste_type=WASTE)
# retrieve the next pick-up date within a period of choice
next_pickup = connector.find_next_pickup(day_offset=15)
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
openerz-api-0.1.0.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file openerz-api-0.1.0.tar.gz
.
File metadata
- Download URL: openerz-api-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c2dbe09610235c61317ffecdd67b3be4dac26c12a14b8acea4bb4a18415db6e |
|
MD5 | 624e19fa37a1d526730191ba2e08be56 |
|
BLAKE2b-256 | 6d79b71eda1e6d11b93bc334ccc5594f42e4a3019d9bfe5fe8ea1730e2adfb59 |
File details
Details for the file openerz_api-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: openerz_api-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0239117c0e3fac5fb6df7d13fba6e237959132f717d4b30bbe079c4a8864e93 |
|
MD5 | 5f0261e04050283f52f002d2d7ba8109 |
|
BLAKE2b-256 | b1c43117835120beaa8b44d0c2d284afd250f2e425a6d9f083d86d484f01e4f9 |