Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/watchakorn-18k/flet-notion-with-python

🔭 Notion-Flet API demo on Github
https://github.com/watchakorn-18k/flet-notion-with-python

api flet gui notion-api notion-database python python-script python3

Last synced: 2 days ago
JSON representation

🔭 Notion-Flet API demo on Github

Awesome Lists containing this project

README

        

Flet notion python

✨ Inspiration from [Python Tutorial UI Design Using Flet - Line Indent](https://youtu.be/JJCjAUmNXBs)

I've attempted to implement Notion as a database, then use an api to connect to fetch data from Notion and display it on Flet, a Python-programmable flutter GUI module.

# Install

```
git clone https://github.com/watchakorn-18k/flet-notion-python
cd flet-notion-python
pip install -r requirements.txt
```
![](https://cdn.discordapp.com/attachments/581018943041306641/1082752531094061066/terminal.gif)

# Settings

- Add token from [notion.so/my-integrations](https://www.notion.so/my-integrations) then put to `token.json`

- Add table follow here

```
| income | client-name |
```

![](https://i.imgur.com/6gQ2anM.png)

```json
{
"token": ""
}
```

- change databaseId

```py
databaseId = "abc69f13662d4c3dbda6053da5555b8c"
```

![](https://i.imgur.com/5sFedCr.png)

# Run

```
flet ui.py
```

# Build

```
pyinstaller ui.space
```

This is merely an illustration of how to use notion's api with flet. You may attempt to fix a lot of mistakes. -- wk-18k 2023