Skip to main content

This package is a Python client for the Notion API.

Project description

Notion Python Client (NPC)

Introduction

NPC (Notion Python Client) is a Python library that simplifies interactions with the Notion API. With this library, you can effortlessly integrate your Python applications with Notion, allowing you to create, retrieve, update, and manage Notion pages, databases, and more, all within your Python code.

Features

  • Simple and Intuitive: NPC provides a user-friendly interface to interact with the Notion API. Whether you are a seasoned developer or new to Notion, you'll find it easy to get started.

  • Diverse Functionality: You can perform a wide range of actions using NPC, such as creating new pages, updating page content, retrieving database entries, and much more.

  • Authentication: NPC takes care of the authentication process, allowing you to focus on your application logic without worrying about the intricacies of the API's authentication flow.

  • Customization: The library is designed to be flexible, making it easy to adapt to your specific project requirements. You can use it to integrate Notion with your websites, productivity tools, or automate your Notion workspace.

Installation

You can install NPC using pip:

pip install notion-python-client

Getting Started

  1. Authentication Setup: To use NPC, you need to create an integration in your Notion workspace and obtain an API token. Follow our authentication guide to set this up.

  2. Import NPC: Import the library into your Python script:

from notion_python_client import NPC
  1. Create a Notion Client: Initialize a Notion client with your API token:
client = NPC("YOUR_API_TOKEN")
  1. Interact with Notion: You're ready to start using NPC to interact with Notion. Here's an example of creating a new page:
pages = client.database_handler.get_pages("YOUR_DATABASE_ID")

Documentation

For detailed documentation, please visit the NPC Documentation.

Examples

Explore our examples directory for sample Python scripts that showcase various use cases of NPC. (Coming Soon)






Thank you for choosing NPC for your Notion integration needs! We look forward to seeing what you build with it. 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

notion_python_client-0.0.1b1.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

notion_python_client-0.0.1b1-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file notion_python_client-0.0.1b1.tar.gz.

File metadata

  • Download URL: notion_python_client-0.0.1b1.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for notion_python_client-0.0.1b1.tar.gz
Algorithm Hash digest
SHA256 e88c3bf20921e63bbc9ae6c3d8657d09aae06c58d151dceea2c983e9744d789a
MD5 b123eed0cef1f5be3e1d85a7ef8cad5c
BLAKE2b-256 cce4c220e34636270a1895cb592d7b00203e27068ba7e34d0d447194e0c61ae0

See more details on using hashes here.

File details

Details for the file notion_python_client-0.0.1b1-py3-none-any.whl.

File metadata

File hashes

Hashes for notion_python_client-0.0.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 9648817e81296ebf0d6414d6d5056ad2d6ca42392e69840372ad953c10585864
MD5 574f67c254e428cf8a2022bf413cd65e
BLAKE2b-256 64c97ffc7fa20f3c1150c6e0440bc4fcd126c2193a30c0efad9996b3bfd10c37

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