A wrapper of Notion client for Python
Project description
Lotion
Lotion is a wrapper of notion-client.
You can use Notion API easily using Lotion.
Example
By notion-client
from notion_client import Client
client = Client(auth='NOTION_SECRET')
client.pages.create(
parent={
'type': 'database_id',
'database_id': 'abcd1234-4e63-4a46-9ffe-36adeb59ab30'
},
properties={
'Name': {
'title': [
{
'type': 'text',
'text': {
'content': 'テスト'
}
}
]
}
},
)
By lotion
from lotion import Lotion
lotion = Lotion.get_instance()
created_page = lotion.create_page_in_database(
database_id='abcd1234-4e63-4a46-9ffe-36adeb59ab30',
properties=[
Title.from_plain_text(name='Name', text='テスト')
]
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lotion-0.7.1.tar.gz
(32.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
lotion-0.7.1-py3-none-any.whl
(55.7 kB
view details)
File details
Details for the file lotion-0.7.1.tar.gz.
File metadata
- Download URL: lotion-0.7.1.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd69c07d5c9fe84fce5347f4d36fa39508f534ec3db5e2d841398abf74243430
|
|
| MD5 |
5f97ba0435044a08cc9ae5210b46c54e
|
|
| BLAKE2b-256 |
bf2287806eef894d3f3937582f6edb94fe4115d191036142366540951d5f5075
|
File details
Details for the file lotion-0.7.1-py3-none-any.whl.
File metadata
- Download URL: lotion-0.7.1-py3-none-any.whl
- Upload date:
- Size: 55.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92f51e9b7f326022df50982cf9bef0e3432bf04e181d0419e5fa885cf50f52ad
|
|
| MD5 |
8f306dc0fb6effbc82ddc4b1d7e4e8cd
|
|
| BLAKE2b-256 |
c6ff58ca1fb479c42773d3d0ba19ecd19e4d0e958562ce743fd8b7d1c0686349
|