notion database
1.2.2
Pythonic概念API的數據庫

由數據庫由官方概念API創建。
“概念數據庫”是概念API包裝庫。
import os
from notion_database . page import Page
from notion_database . properties import Properties
from notion_database . const . query import Direction , Timestamp
from notion_database . search import Search
S = Search ( integrations_token = os . getenv ( 'NOTION_KEY' ))
S . search_database ( query = "" , sort = { "direction" : Direction . ascending , "timestamp" : Timestamp . last_edited_time })
for i in S . result :
PROPERTY = Properties ()
PROPERTY . set_title ( "title" , "title" )
PROPERTY . set_rich_text ( "Description" , "description text" )
P = Page ( integrations_token = os . getenv ( 'NOTION_KEY' ))
P . create_page ( database_id = i [ "id" ], properties = PROPERTY )請參閱此處的詳細示例。
希望許多人使用此軟件包,也從1.0更改為LGPL 3。
以前的版本是GPL,使用此版本時請小心。
1.0.0
2022.08.01
2022.03.27
2021.09.01
pip install notion-databasehttps://notion-database.readthedocs.io
python setup.py install如果您想做出貢獻,請提供存儲庫並使用功能分支。拉力請求非常歡迎。
該項目中的代碼已根據LGPL許可獲得許可。