Python wrapper for Notion API
Project description
python-notion-plus
An enhanced Python client for the Notion API, providing a more user-friendly interface and additional features.
Features
- Simplified API calls
- Automatic handling of pagination
- Support for Notion's database queries
- Easy-to-use methods for common tasks
Requirements
- Python 3.9+
- Notion API token
- Notion database ID
Installation
pip install python-notion-plus
Configuration
The package uses environment variables for authentication and configuration:
# Required environment variables
NOTION_TOKEN=your_notion_api_token
Examples
Basic Usage
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}')
🤝 Contributing
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
Thanks for exploring this repository!
Happy coding!
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 python_notion_plus-0.0.7.tar.gz.
File metadata
- Download URL: python_notion_plus-0.0.7.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6bbc2b536ed29bc20c18e01025bc104db6727282fbdf09d0b1c83d13cdbcffb
|
|
| MD5 |
aba4cdaaee01fd227e4fb1ac7dee28af
|
|
| BLAKE2b-256 |
45e443000faf1b78c9eec884ebc16bb771c70303cfeabd4d068393c39904c66a
|
File details
Details for the file python_notion_plus-0.0.7-py3-none-any.whl.
File metadata
- Download URL: python_notion_plus-0.0.7-py3-none-any.whl
- Upload date:
- Size: 5.1 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 |
2fa1e86be5c13bbd22ea44702cb24ce9c7be71c9e527c6cff9bbe0f4a74eea2a
|
|
| MD5 |
ec6f0cbd78363d4dcffdcddfc87504bd
|
|
| BLAKE2b-256 |
86e827b11162d1e6886a8b3052c4901d8fec707c3700d40463015f2351c4cbb7
|