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='テスト')
]
)
Use Original Prop and Database page.
Available Class
- Checkbox
- Date
- MultiSelect
- Number
- PhoneNumber
- Relation
- Select
- Status
- Text
- Title
- Url
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.8.6.tar.gz
(35.2 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.8.6-py3-none-any.whl
(59.6 kB
view details)
File details
Details for the file lotion-0.8.6.tar.gz.
File metadata
- Download URL: lotion-0.8.6.tar.gz
- Upload date:
- Size: 35.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d14b58339c51cc4d50001a20a6ac4df570c4c24d635f8f78601e8f75d5f3a5d0
|
|
| MD5 |
8b9eae2d812cb999449d805f4984fa15
|
|
| BLAKE2b-256 |
e366bdbd8b16a885a1b5a43cc7bf08e43e5db134699892e9afb06b6b6f32903f
|
File details
Details for the file lotion-0.8.6-py3-none-any.whl.
File metadata
- Download URL: lotion-0.8.6-py3-none-any.whl
- Upload date:
- Size: 59.6 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 |
d4042e5a7652745c6b6273c3484ff230d7d6afcf782508f79b774f6dc96b9ba9
|
|
| MD5 |
9aae0740233c8d2a9a4945f7ccf48029
|
|
| BLAKE2b-256 |
76cd078b728e27cd69384887adb1e00d059fc8048b0d7f03c80c6841ef959756
|