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.0.1a1.tar.gz
(48.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
File details
Details for the file lotion-0.0.1a1.tar.gz.
File metadata
- Download URL: lotion-0.0.1a1.tar.gz
- Upload date:
- Size: 48.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
648ecb2587d55b8ada554b8115f11f53a6d9a03dcff394042c7be71f25e29010
|
|
| MD5 |
8180110ed06acdfc602c5798fd47eec9
|
|
| BLAKE2b-256 |
956d14cb8ad9a5defd2303a31b06f8c08078444db1eb37339d16a8fc27f9b21e
|
File details
Details for the file lotion-0.0.1a1-py3-none-any.whl.
File metadata
- Download URL: lotion-0.0.1a1-py3-none-any.whl
- Upload date:
- Size: 5.5 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 |
e16b02746fd30b8f822578975538b4edbfc9fe9204cf5a7a850b44c57974468a
|
|
| MD5 |
a232841724f6cb2131be2d421dea4305
|
|
| BLAKE2b-256 |
e8b082c467b43cf12ab854aa3c4332fcd0c3f5d26291138672b17cc89451bac8
|