Skip to main content

Python wrapper for Notion API

Project description

PyPI version Python Development Status Maintenance PyPI License


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_notion_plus-1.0.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_notion_plus-1.0.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file python_notion_plus-1.0.0.tar.gz.

File metadata

  • Download URL: python_notion_plus-1.0.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for python_notion_plus-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bc09cf23cb55303388cfad4ec2c233ce8b8352ba49bfc1a9de0bee7352764932
MD5 e6d7c315bceeeda69f159f13bafed4f4
BLAKE2b-256 57c7503736b62b7a9e4d9e834d2c5749fc7e75192c05abff53bdd171f9ea4129

See more details on using hashes here.

File details

Details for the file python_notion_plus-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_notion_plus-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e85748808ee6ef46a70448e364c07a4b38abd0e9382a77714137bbb39fd31fa
MD5 8a95d9c9b78452239d2c5052a83f3a82
BLAKE2b-256 55b23d4b4874c5c0bb96359ec1f93042fe501905d4c2ad54472595db343362d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page