afvaldienst


Nameafvaldienst JSON
Version 1.0.5 PyPI version JSON
download
home_pagehttps://github.com/xirixiz/afvaldienst
SummaryGetting information on trash for the Netherlands for mijnafvalwijzer.nl and afvalstoffendienstkalender.nl
upload_time2020-09-16 18:44:55
maintainer
docs_urlNone
authorBram van Dartel
requires_python
licenseMIT
keywords afval afvaldienst afvalwijzer garbage trash mijnafvalwijzer afvalstoffendienstkalender dutch
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Afvaldienst library
===================

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


Installation
------------

.. code:: bash

    pip install afvaldienst


Uninstallation
--------------

.. code:: bash

    pip uninstall afvaldienst


Usage
-----

.. code:: python

    >>> from Afvaldienst import Afvaldienst
    >>> provider = 'mijnafvalwijzer'
    >>> api_token = ''
    >>> zipcode = '1111AA'
    >>> housenumber = '1'
    >>> suffix = ''
    >>> start_date = 'True or False'     (start counting wihth Today's date or with Tomorrow's date)
    >>> trash = Afvaldienst(provider, api_token, zipcode, housenumber, suffix)

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

    >>> trash.trash_schedule
    [{'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_custom
    [{'key': 'first_next_in_days', 'value': 8}, {'key': 'today', 'value': 'None'}, {'key': 'tomorrow', 'value': 'None'},

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


Contributors are most welcome
-----------------------------
* I'm still learning how to code properly.


.. :changelog:

Release History
---------------
1.0.4 (2020-09-16)
++++++++++++++++
**Bugfix release**
- Add trash None value on no data

---------------
1.0.3 (2020-09-16)
++++++++++++++++
**Bugfix release**
- add trash_schedule and trash_schedule_custom trash type list overview

---------------
1.0.2 (2020-09-16)
++++++++++++++++
**Bugfix release**
- add trash_schedule and trash_schedule_custom trash type list overview

---------------
1.0.1 (2020-09-16)
++++++++++++++++
**Bugfix release**
- remove api tokens (as requested by the provider(s))

---------------
1.0.0 (2020-09-15)
++++++++++++++++
**Bugfix release**
- complete rewrite of the logic for parsing json data

---------------
0.8.0 (2020-09-13)
++++++++++++++++
**Bugfix release**
- moved from json.<provider>.nl to api.<provider>.nl
- added additional error handling
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/xirixiz/afvaldienst",
    "name": "afvaldienst",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "afval afvaldienst afvalwijzer garbage trash mijnafvalwijzer afvalstoffendienstkalender dutch",
    "author": "Bram van Dartel",
    "author_email": "spam@rootrulez.com",
    "download_url": "https://files.pythonhosted.org/packages/43/69/1f3de87a946e92e555f99587c0a6f35889398425822a5e809f54e12e662b/afvaldienst-1.0.5.tar.gz",
    "platform": "",
    "description": "Afvaldienst library\n===================\n\nThis library is meant to interface with mijnafvalwijzer.nl and/or afvalstoffendienstkalender.nl\nIt is meant to use with home automation projects like Home Assistant.\n\n\nInstallation\n------------\n\n.. code:: bash\n\n    pip install afvaldienst\n\n\nUninstallation\n--------------\n\n.. code:: bash\n\n    pip uninstall afvaldienst\n\n\nUsage\n-----\n\n.. code:: python\n\n    >>> from Afvaldienst import Afvaldienst\n    >>> provider = 'mijnafvalwijzer'\n    >>> api_token = ''\n    >>> zipcode = '1111AA'\n    >>> housenumber = '1'\n    >>> suffix = ''\n    >>> start_date = 'True or False'     (start counting wihth Today's date or with Tomorrow's date)\n    >>> trash = Afvaldienst(provider, api_token, zipcode, housenumber, suffix)\n\n    >>> trash.trash_json\n    [{'nameType': 'gft', 'type': 'gft', 'date': '2019-12-20'}, {'nameType': 'pmd', 'type': 'pmd', 'date': '2019-12-28'}]\n\n    >>> trash.trash_schedule\n    [{'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}]\n\n    >>> trash.trash_schedule_custom\n    [{'key': 'first_next_in_days', 'value': 8}, {'key': 'today', 'value': 'None'}, {'key': 'tomorrow', 'value': 'None'},\n\n    >>> trash.trash_types\n    ['gft', 'kerstbomen', 'pmd', 'restafval', 'papier']\n\n\nContributors are most welcome\n-----------------------------\n* I'm still learning how to code properly.\n\n\n.. :changelog:\n\nRelease History\n---------------\n1.0.4 (2020-09-16)\n++++++++++++++++\n**Bugfix release**\n- Add trash None value on no data\n\n---------------\n1.0.3 (2020-09-16)\n++++++++++++++++\n**Bugfix release**\n- add trash_schedule and trash_schedule_custom trash type list overview\n\n---------------\n1.0.2 (2020-09-16)\n++++++++++++++++\n**Bugfix release**\n- add trash_schedule and trash_schedule_custom trash type list overview\n\n---------------\n1.0.1 (2020-09-16)\n++++++++++++++++\n**Bugfix release**\n- remove api tokens (as requested by the provider(s))\n\n---------------\n1.0.0 (2020-09-15)\n++++++++++++++++\n**Bugfix release**\n- complete rewrite of the logic for parsing json data\n\n---------------\n0.8.0 (2020-09-13)\n++++++++++++++++\n**Bugfix release**\n- moved from json.<provider>.nl to api.<provider>.nl\n- added additional error handling",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Getting information on trash for the Netherlands for mijnafvalwijzer.nl and afvalstoffendienstkalender.nl",
    "version": "1.0.5",
    "split_keywords": [
        "afval",
        "afvaldienst",
        "afvalwijzer",
        "garbage",
        "trash",
        "mijnafvalwijzer",
        "afvalstoffendienstkalender",
        "dutch"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "da986f48cc2c2a10499174db5a881e18",
                "sha256": "3f8027174d30bd1ac31f52c54d5e4791379c1583387205a0fad3179c4b4e380e"
            },
            "downloads": -1,
            "filename": "afvaldienst-1.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "da986f48cc2c2a10499174db5a881e18",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5704,
            "upload_time": "2020-09-16T18:44:55",
            "upload_time_iso_8601": "2020-09-16T18:44:55.546708Z",
            "url": "https://files.pythonhosted.org/packages/43/69/1f3de87a946e92e555f99587c0a6f35889398425822a5e809f54e12e662b/afvaldienst-1.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-09-16 18:44:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "xirixiz",
    "error": "Could not fetch GitHub repository",
    "lcname": "afvaldienst"
}
        
Elapsed time: 0.18090s