Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/watchakorn-18k/flet-notion-with-python
- Owner: watchakorn-18k
- Created: 2023-02-24T06:52:44.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-05T18:17:37.000Z (8 months ago)
- Last Synced: 2024-03-05T19:36:34.698Z (8 months ago)
- Topics: api, flet, gui, notion-api, notion-database, python, python-script, python3
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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