PyNotion is designed to be a simple to use Python wrapper around the Notion API.
pip install PyNotion
Create a Python 3 Virtual Environment
pip install -r requirements.txt
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()
- 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.