Installation
Python Notion API is available at PyPI under python-notion-api
.
For example, if you are using pip
, you can install it with
$ pip install python-notion-api
You can now import the project and initialise the client by passing your token. We recommend using the Async version for extra super-powers.
from python_notion_api import AsyncNotionAPI
async_api = AsyncNotionAPI(access_token='<NOTION_TOKEN>')
from python_notion_api import NotionAPI
api = NotionAPI(access_token='<NOTION_TOKEN>')
Info
If you are not sure how to get your token, check out this article