Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/avlm/zotion

A python client for the official notion API :)
https://github.com/avlm/zotion

api notion notion-api notion-client notion-database notion-py python

Last synced: 9 days ago
JSON representation

A python client for the official notion API :)

Awesome Lists containing this project

README

        

WIP Python client for official Notion API (now in public beta)

```bash
$ pip install zotion
```

```python
>>> from zotion.client import Notion
>>> notion = Notion('YOUR_NOTION_API_KEY')
>>> database = notion.retrieve_database('YOUR_DATABASE_ID')
```

Database will be an [addict](https://github.com/mewwts/addict) object, so you can easily access info just doing this:

```python
>>> database.title[0].text.content
>>> 'My great database'
```

For now just internal integrations.

Feel free to contribute.

MIT license.