{"id":15486045,"url":"https://github.com/bradleyhurley/pynotion","last_synced_at":"2025-04-22T16:37:40.271Z","repository":{"id":47308155,"uuid":"112423309","full_name":"bradleyhurley/PyNotion","owner":"bradleyhurley","description":"PyNotion is a Python 3 wrapper around the Notion API.","archived":false,"fork":false,"pushed_at":"2021-09-03T16:29:50.000Z","size":9,"stargazers_count":13,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T16:33:01.645Z","etag":null,"topics":["api-wrapper","home-assistant","home-automation","notion","python-wrapper","wrapper"],"latest_commit_sha":null,"homepage":"https://docs.getnotion.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradleyhurley.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-29T03:46:42.000Z","updated_at":"2024-01-19T19:30:40.000Z","dependencies_parsed_at":"2022-09-08T16:00:59.085Z","dependency_job_id":null,"html_url":"https://github.com/bradleyhurley/PyNotion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleyhurley%2FPyNotion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleyhurley%2FPyNotion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleyhurley%2FPyNotion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleyhurley%2FPyNotion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradleyhurley","download_url":"https://codeload.github.com/bradleyhurley/PyNotion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250278443,"owners_count":21404206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-wrapper","home-assistant","home-automation","notion","python-wrapper","wrapper"],"created_at":"2024-10-02T06:05:54.908Z","updated_at":"2025-04-22T16:37:40.225Z","avatar_url":"https://github.com/bradleyhurley.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PyNotion\n\nPyNotion is designed to be a simple to use Python wrapper around the Notion API.\n\n\n- ##### Learn More About Notion Sensors:\n    - [Notion](http://getnotion.com/)\n\n- ##### Read The Notion API Docs\n    - [Notion API Documentation](https://web.archive.org/web/20210206030056/https://docs.getnotion.com/)\n\n### Install From PyPI:\n```bash\npip install PyNotion\n```\n\n### Setup:\nCreate a Python 3 Virtual Environment\n- [Virtual Environment Reference](http://docs.python-guide.org/en/latest/dev/virtualenvs/)\n\n```bash\npip install -r requirements.txt\n```\n\n### Sample Usage:\n```python\nfrom PyNotion import PyNotion\n\np = PyNotion()\n# First Run - Get a valid token\nuser = p.get_token(\"notion email\", \"password\")\nprint(user.auth_token)\np.auth_token = user.auth_token\n\nsensors = p.get_sensors()\nfor sensor in sensors:\n    print(sensor.name)\n```\n\n```python\nfrom PyNotion import PyNotion\n\np = PyNotion()\np.auth_token = 'notion auth token'\n```\n\n```python\n# When Finished:\np.kill_token()\n```\n\n### Known Issues / Limitations:\n- Python 3 Only (I have no plans on supporting Python 2)\n- The following methods have not been implemented:\n    - get_thresholds\n    - get_threshold\n    - get_events\n    - get_event\n- The wrapper currently does not support update operations.\n\n##### I am in no way affiliated with Notion, nor is this an officially supported product.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradleyhurley%2Fpynotion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradleyhurley%2Fpynotion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradleyhurley%2Fpynotion/lists"}