Lotion simplifies interaction with the Notion API through a Python wrapper, allowing for both synchronous and asynchronous operations. Easily retrieve and manipulate Notion databases with minimal setup. Ideal for developers looking to integrate Notion’s capabilities into their Python applications.
Lotion is a powerful wrapper around the notion-client
library, specifically designed for enhancing the user experience with the Notion API. Developed as an alternative to the official Notion API client library, Lotion is tailored for seamless integration with Python, supporting both synchronous and asynchronous operations.
Key Features
- Easy Integration: With Lotion, integrating the Notion API into Python applications is straightforward, allowing for rapid development.
- Flexible Usage: Retrieve and manipulate Notion database data effortlessly. For example:
from lotion import Lotion
lotion = Lotion.get_instance("NOTION_API_SECRET")
# or `lotion = Lotion.get_instance()` if you have set it as `NOTION_SECRET`
pages = lotion.retrieve_database("1696567a3bbf803e9817c7ae1e398b71")
for page in pages:
print(page.get_title().text)
Getting Started
Begin by installing Lotion with the command:
pip install python-lotion
Before using Lotion, it's necessary to create an integration within Notion, obtain your Notion API secret, and ensure your integration has the necessary page permissions. For detailed guidance, consult the official Notion documentation.
Additional Resources
For further information on how to effectively utilize Lotion, please refer to the How to use Lotion documentation. If questions arise, consider opening an issue for support.
No comments yet.
Sign in to be the first to comment.