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.2.tar.gz
(33.9 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.2-py3-none-any.whl
(57.7 kB
view details)
File details
Details for the file lotion-0.8.2.tar.gz.
File metadata
- Download URL: lotion-0.8.2.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5caabe7b110f32d12677f8d5a777c5d2fec170bcfe10185d5dea7a1fb418691c
|
|
| MD5 |
abcc77cd3aee8a0ed34bd8fc579c3076
|
|
| BLAKE2b-256 |
cca898f2b8bb6a784458199f792576e4d69d561a61bb618fe583364ee320cc82
|
File details
Details for the file lotion-0.8.2-py3-none-any.whl.
File metadata
- Download URL: lotion-0.8.2-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.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31a31c590d75981ea30c92a7c44c169cb5bc40769ef1ddfb5f2a84e9c3212b95
|
|
| MD5 |
1a41fe0fa4aa31e55e23a02c68b62a92
|
|
| BLAKE2b-256 |
8fdc1aa12c5d60d22e61178549f4560e2a74316f6acad077f2f78607aeceaa5b
|