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.3a1.tar.gz
(33.0 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.3a1-py3-none-any.whl
(55.5 kB
view details)
File details
Details for the file lotion-0.6.3a1.tar.gz.
File metadata
- Download URL: lotion-0.6.3a1.tar.gz
- Upload date:
- Size: 33.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
362dd5a1fb6c51b9682d3a6a560973eed2ecef5a644890d2a1193e1638cc937b
|
|
| MD5 |
fd91ca8e053387cbfc57b9da190e3315
|
|
| BLAKE2b-256 |
23c136e6959ba4d5d547dd528dfbf67d08ad18d9ebeec25d4fcf38c29f6a83f8
|
File details
Details for the file lotion-0.6.3a1-py3-none-any.whl.
File metadata
- Download URL: lotion-0.6.3a1-py3-none-any.whl
- Upload date:
- Size: 55.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d634f66a636a0b21907640eece716fa36a53e68576ec1440aaa4da4de52c22e1
|
|
| MD5 |
45d40278fbdb145916780ac2645f9e3b
|
|
| BLAKE2b-256 |
f1f36679f12d92e6ff489c2c318b7b07c1bf6a31838cd9d94bbba3e5ab9a5d1f
|