Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 :)
- Host: GitHub
- URL: https://github.com/avlm/zotion
- Owner: avlm
- Created: 2021-05-19T19:02:07.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-19T20:06:48.000Z (over 3 years ago)
- Last Synced: 2024-10-17T22:40:49.907Z (19 days ago)
- Topics: api, notion, notion-api, notion-client, notion-database, notion-py, python
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.