Skip to main content

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


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.3.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

openerz_api-0.3.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

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