A wrapper of Notion client for Python
Project description
Lotion
Lotion is a wrapper for notion-client by ramnes/notion-sdk-py: The official Notion API client library, but rewritten in Python! (sync + async).
With Lotion, you can easily use the Notion API.
from lotion import Lotion
lotion = Lotion.get_instance("NOTION_API_SECRET")
# or `lotion = Lotion.get_instance()` if you set it as `NOTION_SECRET`
pages = lotion.retrieve_database("1696567a3bbf803e9817c7ae1e398b71")
for page in pages:
print(page.get_title().text)
Install
pip install python-lotion
You must also create your integration, obtain a Notion API secret, and give your integration page permissions.
Reference: Build your first integration
Usage
Refer to How to use Lotion.
If you have any questions, please create an issue.
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
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.9.5.tar.gz.
File metadata
- Download URL: lotion-0.9.5.tar.gz
- Upload date:
- Size: 36.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b83721b6487b0880ddb61d96cc54c16c2c992f0bd0239812dfefe0dfb3e06e99
|
|
| MD5 |
6237a38fb9ae8f1dc5b7e6e06184e810
|
|
| BLAKE2b-256 |
cb2fd1626d4b870378a9dc840335ed60ac2cacbf83cf8b8a682c1b83fd19814d
|
File details
Details for the file lotion-0.9.5-py3-none-any.whl.
File metadata
- Download URL: lotion-0.9.5-py3-none-any.whl
- Upload date:
- Size: 61.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24521ee8a750f3bb45f86d5227f9772acf98ce03791b7581ed0b52030516f94c
|
|
| MD5 |
171c580443aed405bab837e8b27500cc
|
|
| BLAKE2b-256 |
22770b431bbd6427f5dc65481b8651fb714de42f030874c9bbe246d8bae96f1e
|