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.5.tar.gz
(34.8 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.5-py3-none-any.whl
(59.1 kB
view details)
File details
Details for the file lotion-0.8.5.tar.gz.
File metadata
- Download URL: lotion-0.8.5.tar.gz
- Upload date:
- Size: 34.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dffc6c3d905fda4f77a278679bf1f8050984ac90d5623d0d88febd35677a0221
|
|
| MD5 |
2cb5179d65cd43d499823326780a515b
|
|
| BLAKE2b-256 |
925f6d0500d7d7095932766a59bc15157bd666ec3fd63e7d4c1a5e6a0cea2457
|
File details
Details for the file lotion-0.8.5-py3-none-any.whl.
File metadata
- Download URL: lotion-0.8.5-py3-none-any.whl
- Upload date:
- Size: 59.1 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 |
54a504ff516c08592b269f1c43557732bfbebd5e55790fa60b3482c133855217
|
|
| MD5 |
3efd1d4fcf40c26d2a66d24053d10cc2
|
|
| BLAKE2b-256 |
3547041428c14d02aa2acec7e12af31fe0c6c1b59a361193b0cc4796de1f5f24
|