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.1a1.tar.gz
(34.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.1a1-py3-none-any.whl
(57.7 kB
view details)
File details
Details for the file lotion-0.8.1a1.tar.gz.
File metadata
- Download URL: lotion-0.8.1a1.tar.gz
- Upload date:
- Size: 34.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5fd2c8a0914d5e25bc792556c80ad31c98033c562a1eb889877ebf5ed3a8cfd
|
|
| MD5 |
bc63de0e780b136a1d4be3beab98ec60
|
|
| BLAKE2b-256 |
1a05d95a8cc548badab9336bade6fcaf58a69a9161bc666465eda67a33ae16e3
|
File details
Details for the file lotion-0.8.1a1-py3-none-any.whl.
File metadata
- Download URL: lotion-0.8.1a1-py3-none-any.whl
- Upload date:
- Size: 57.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f27925a2fc508a9f5f7ca4c43808bc2b80a4464da8314232d9ee770acd535b95
|
|
| MD5 |
5d6abb5d4b39a9f80ce66da32b327cf3
|
|
| BLAKE2b-256 |
55983d122320f49631c5223f795a43e210e529513174f1873a5f3f9ba873ca1b
|