An enhanced Python client for the Notion API, providing a more user-friendly interface and additional features.
- Simplified API calls
- Automatic handling of pagination
- Support for Notion's database queries
- Easy-to-use methods for common tasks
- Python 3.9+
- Notion API token
- Notion database ID
pip install python-notion-plus
The package uses environment variables for authentication and configuration:
# Required environment variables
NOTION_TOKEN=your_notion_api_token
import json
from python_notion_plus import NotionClient
notion_client = NotionClient(database_id='your_database_id')
notion_content = notion_client.get_database_content()
for page in notion_content:
properties = notion_client.format_notion_page(page)
formatted_data = json.dumps(properties, indent=4)
print(f'notion_page_properties: {formatted_data}')
If you have a helpful tool, pattern, or improvement to suggest:
Fork the repo
Create a new branch
Submit a pull request
I welcome additions that promote clean, productive, and maintainable development.
Thanks for exploring this repository!
Happy coding!