{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4" ], "description": "Notion API Client\n=================\n.. image:: https://circleci.com/gh/notion-data/notion-python/tree/master.svg?style=shield\n :target: https://circleci.com/gh/notion-data/notion-python/tree/master\n\n.. image:: https://img.shields.io/pypi/v/notion-python.svg\n :target: https://pypi.org/project/notion-python/\n\nThis is the python client for the Notion API.\nUse this client to report on ingredients, and create new ingredients.\n\nInstall\n=======\n.. code:: sh\n\n pip install notion-python\n\nUsage\n=====\nGet your API Token, and ingredient information from here:\nhttps://app.usenotion.com/api_control_panel\n\n.. code:: python\n\n import notion\n\n # create a client\n client = notion.NotionClient('YOUR_API_KEY')\n\n # make a report\n client.report(datetime.now(), 20, ingredient_id='AN_INGREDIENT_KEY')\n\n # make many reports\n client.batch_report('AN_INGREDIENT_KEY', [\n {'date': datetime.now() - timedelta(days=1), 'value': 2},\n {'date': datetime.now(), 'value': 3},\n ])\n\n # create a new ingredient\n client.create_ingredient('Ingredient Name', [\n {'date': datetime.now() - timedelta(days=1), 'value': 2},\n {'date': datetime.now(), 'value': 3},\n ])\n\nError Handling\n--------------\nAll methods will raise a subclass of ``notion.NotionError`` in the event that\nthe request could not be made, or an error occurred.\n\n\nDevelopment\n===========\n\nInstall\n-------\n.. code:: sh\n\n git clone https://github.com/notion-data/notion-python.git\n cd notion-python\n pip install -e .\n\nTests\n-----\n.. code:: sh\n\n env NOTION_TOKEN=FOOBAR NOTION_API_ROOT=https://app.usenotion.com python -m unittest discover\n pylint --output-format parseable --disable C0111 notion tests\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "notion api client", "license": "", "maintainer": "", "maintainer_email": "", "name": "notion-python", "package_url": "https://pypi.org/project/notion-python/", "platform": "", "project_url": "https://pypi.org/project/notion-python/", "project_urls": { "Source": "https://github.com/notion-data/notion-python" }, "release_url": "https://pypi.org/project/notion-python/1.0.2/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "API Client for Notion", "version": "1.0.2" }, "last_serial": 3800557, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "efac7c3e4c1d8f9baaaa571a05a598bb", "sha256": "1daabd0db15d9a45ea071a769e29de5c12b2f3a00d4dc403bcca4b9f73447730" }, "downloads": -1, "filename": "notion_python-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "efac7c3e4c1d8f9baaaa571a05a598bb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5616, "upload_time": "2018-03-07T20:12:44", "url": "https://files.pythonhosted.org/packages/96/9c/ca49703449c469e0a0a729298d02a0db72b63c6cc77fcf6c9edc38dc1520/notion_python-1.0.0-py2.py3-none-any.whl" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "77793fca909f5c344ff6b3cca38ab8e8", "sha256": "06946ad521c5448f57b2232f652fb1793b0fcb24c10904fcbd9516c64e451220" }, "downloads": -1, "filename": "notion_python-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "77793fca909f5c344ff6b3cca38ab8e8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7043, "upload_time": "2018-03-07T22:01:30", "url": "https://files.pythonhosted.org/packages/6f/8a/06433b661c336dc56ba02ecb9e9847f5d9dcd936099eddeb8677783ff7a9/notion_python-1.0.1-py2.py3-none-any.whl" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "c8a01d8ae662857473e0dff14486f5d5", "sha256": "1de15b3a1bbcc4abdf3b2d173e22ae29f63d8ce5157decba7597d6c8b435c5ca" }, "downloads": -1, "filename": "notion_python-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c8a01d8ae662857473e0dff14486f5d5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7077, "upload_time": "2018-04-23T21:31:36", "url": "https://files.pythonhosted.org/packages/69/3a/f20eea4eac7df383371c73ed96561000139fd3e22bb73d31551e882feb56/notion_python-1.0.2-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c8a01d8ae662857473e0dff14486f5d5", "sha256": "1de15b3a1bbcc4abdf3b2d173e22ae29f63d8ce5157decba7597d6c8b435c5ca" }, "downloads": -1, "filename": "notion_python-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c8a01d8ae662857473e0dff14486f5d5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7077, "upload_time": "2018-04-23T21:31:36", "url": "https://files.pythonhosted.org/packages/69/3a/f20eea4eac7df383371c73ed96561000139fd3e22bb73d31551e882feb56/notion_python-1.0.2-py2.py3-none-any.whl" } ] }