notion_kit
notion_kit is a lightweight Python SDK wrapper around notion-client. It keeps the official Client object and adds object-oriented helpers for common Notion API workflows.
中文文档是本仓库的维护源和事实基准;英文文档是展示和同步版本。中英文含义不一致时,以中文文档为准。
Documentation
Project Governance
- Security policy
- Contributing guide
- Local live-test configuration template: env.example
Install
pip install notion-kit
For local development:
pip install -e .
Quick Start
import os
from notion_kit import Kit as nkit
notion = nkit.Client(token=os.environ["NOTION_TOKEN"])
page_id = nkit.get_id("<NOTION_PAGE_URL>")
page = nkit.Page.get_data(page_id)
print(page.id)
Supported Integration Model
本 SDK 当前按 Notion internal integration 使用场景维护和验证。推荐使用 Notion integration token,通过 NOTION_TOKEN 传入 nkit.Client(),并把目标页面、database 或 data source 授权给对应 integration。
OAuth helpers are thin pass-through wrappers for public integration OAuth flows. They are documented for completeness, but they are outside the internal-integration live validation scope.
Current API Boundary
This package targets notion-client >=3.1.0,<4. In the current Notion API model, a database container and a data source are different concepts:
- Database: the Notion page-level database container.
- Data source: the schema and rows inside a database.
Use the data source id when querying rows, reading schema, updating schema, or creating rows under a database.
nkit.Client() defaults to Notion API version 2026-03-11 and attaches wrappers for the current SDK endpoint families:
- Object helpers:
Page,Database,DataSource,Block,User,Gadget - Pass-through endpoint wrappers:
Search,Comment,FileUpload,View,CustomEmoji,OAuth
See 最新 SDK 操作 / Latest SDK Operations for the full mapping.
License
MIT License
Metadata
Release files for notion-kit 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| notion_kit-1.1.1.tar.gz | 44.8 kB | With provenance | Details for notion_kit-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| notion_kit-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for notion_kit-1.1.1-py3-none-any.whl |
Total release size: 89.3 kB
Release files / notion_kit-1.1.1.tar.gz
| Download URL | notion_kit-1.1.1.tar.gz |
|---|---|
| Size | 44.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c6086c77532b6373720f76d338cf9ed1e94b481ac140c1d1857ba21b0df2af6
|
|
BLAKE2b-256 checksum How to use checksums |
bb106b43702fee096d450cfbcf3f908049638d4d02882034f7fdbe6e41a1d01c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logRelease files / notion_kit-1.1.1-py3-none-any.whl
| Download URL | notion_kit-1.1.1-py3-none-any.whl |
|---|---|
| Size | 44.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
147da5b30b4329279c97a19e240682fd946a8da7957dba3c01309bd57500970f
|
|
BLAKE2b-256 checksum How to use checksums |
be31b5789eeeaa3d1fb520a1d84e17635fce5438b409b4a9e2a77fd64adfcbef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logSecurity for notion-kit 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for notion_kit-1.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.