PyNotion

Wrapper around Notion API.


Keywords
api-wrapper, home-assistant, home-automation, notion, python-wrapper, wrapper
License
Other
Install
pip install PyNotion==0.0.2

Documentation

PyNotion

PyNotion is designed to be a simple to use Python wrapper around the Notion API.

Install From PyPI:

pip install PyNotion

Setup:

Create a Python 3 Virtual Environment

pip install -r requirements.txt

Sample Usage:

from PyNotion import PyNotion

p = PyNotion()
# First Run - Get a valid token
user = p.get_token("notion email", "password")
print(user.auth_token)
p.auth_token = user.auth_token

sensors = p.get_sensors()
for sensor in sensors:
    print(sensor.name)
from PyNotion import PyNotion

p = PyNotion()
p.auth_token = 'notion auth token'
# When Finished:
p.kill_token()

Known Issues / Limitations:

  • Python 3 Only (I have no plans on supporting Python 2)
  • The following methods have not been implemented:
    • get_thresholds
    • get_threshold
    • get_events
    • get_event
  • The wrapper currently does not support update operations.
I am in no way affiliated with Notion, nor is this an officially supported product.