Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Getting information on trash for the Netherlands for and

Project description

Afvaldienst library

This library is meant to interface with and/or It is meant to use with home automation projects like Home Assistant.


.. code:: bash

pip install afvaldienst


.. code:: bash

pip uninstall afvaldienst


.. code:: python

>>> from Afvaldienst import Afvaldienst
>>> provider = 'mijnafvalwijzer'
>>> zipcode = '3825AL'
>>> housenumber = '41'
>>> suffix = ''
>>> trash = Afvaldienst(provider, zipcode, housenumber, suffix)

>>> trash.trash_raw_json
[{'nameType': 'gft', 'type': 'gft', 'date': '2019-12-20'}, {'nameType': 'pmd', 'type': 'pmd', 'date': '2019-12-28'}]

>>> trash.trash_schedulefull_json
[{'key': 'pmd', 'value': '31-10-2019', 'days_remaining': 8}, {'key': 'restafval', 'value': '15-11-2019', 'days_remaining': 23}, {'key': 'papier', 'value': '20-11-2019', 'days_remaining': 28}]

>>> trash.trash_schedule_next_days_json
[{'key': 'first_next_in_days', 'value': 8}]

>>> trash.trash_schedule_today_json
[{'key': 'today', 'value': 'None'}]

>>> trash.trash_schedule_tomorrow_json
[{'key': 'tomorrow', 'value': 'None'}]

>>> trash.trash_schedule_next_item_json
[{'key': 'gft', 'value': '25-10-2019'}]

>>> trash.trash_type_list
['gft', 'kerstbomen', 'pmd', 'restafval', 'papier']

Contributors are most welcome

.. :changelog:

Release History

0.2.0 (2019-10-22) ++++++++++++++++ Bugfix release

  • fix comments

0.1.0 (2019-10-22) ++++++++++++++++ Initial release

  • first working release
  • py.tests
  • travis-ci
  • pypi

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for afvaldienst, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size afvaldienst-0.3.0.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page