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.6.2.tar.gz
(32.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.6.2-py3-none-any.whl
(55.6 kB
view details)
File details
Details for the file lotion-0.6.2.tar.gz.
File metadata
- Download URL: lotion-0.6.2.tar.gz
- Upload date:
- Size: 32.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 |
63d1c4927071182b26eb09c0eea4a63d8a8904b135513d032e579389f7ceea1c
|
|
| MD5 |
7b51a60269e1c860f7f7be46901cd8db
|
|
| BLAKE2b-256 |
969b68165c9565ebe749b8c6c71018bb5f053f4b81f35958f02ea4b48aceaa4e
|
File details
Details for the file lotion-0.6.2-py3-none-any.whl.
File metadata
- Download URL: lotion-0.6.2-py3-none-any.whl
- Upload date:
- Size: 55.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 |
84f4a0ff82126553b8244753345a639c5ac5c7ddaf00ec91495a68f6ff4c46bc
|
|
| MD5 |
fd7ce5748616a0cae9255c3c7b63b55e
|
|
| BLAKE2b-256 |
0dcab3adcfa292a77ce96bac789319ccd7ef8b963eb8bbdedca8f0e8db02ecfe
|