The ultimate Python client for Notion!
Project description
Ultimate Notion is the ultimate Python client for Notion!
| CI/CD | |
| Package | |
| Details |
✨ Features
- 🐍 Pythonic API — Clean, intuitive Python interfaces with robust type annotations.
- 🗂️ CRUD operations — Create, read, update, and delete Notion pages, databases, and blocks.
- 🔎 Rich querying capabilities — Support for filters, sorting, pagination, and searching.
- 🪄 Flexible exports — Convert Notion pages to Markdown, HTML, and databases to pandas, Polars.
- ⬆️ File upload support — Easily upload and manage files in Notion pages and databases.
- 🧩 Built atop notion-sdk-py — Enhancing the functionality of the popular low-level client.
- 💯 100% feature parity — Full compatibility with all notion-sdk-py capabilities and more.
- 🖥️ Command line interface — Convenient CLI for quick operations and automation scripts.
- 🔒 Token-based authentication — Secure access using Notion integration tokens.
- 🚀 One-step setup — Getting up to speed with a simple setup guide.
- 📜 MIT licensed — Released under the permissive MIT license for maximum flexibility.
👉 Want to learn more? Explore the full feature breakdown.
📦 Installation
Install the most recent release using PyPI with:
pip install ultimate-notion
or to install all additional dependencies, use:
pip install 'ultimate-notion[all]'
🧪 Installing the Development Version
To install the latest (potentially unstable) version directly from the main branch on GitHub:
pip install git+https://github.com/ultimate-notion/ultimate-notion.git@main
or with all optional dependencies:
pip install 'ultimate-notion[all] @ git+https://github.com/ultimate-notion/ultimate-notion.git@main'
🚀 Usage
Make sure you have set the environment variable NOTION_TOKEN to your Notion
integration token. Then it's as simple as:
import ultimate_notion as uno
PAGE_TITLE = 'Getting Started'
with uno.Session() as notion:
page = notion.search_page(PAGE_TITLE).item()
page.show()
# Alternatively, without a context manager:
notion = uno.Session()
page = notion.search_page(PAGE_TITLE).item()
page.show()
notion.close()
Check out the official Ultimate Notion documentation for more details. Especially the page about creating a Notion integration to get the token.
💬 Getting help
If you are stuck with a problem and need help or just want to brag about what you did, the Discussion area is the right place for you. Here, you can ask questions, provide suggesions and discuss with other users.
🤝 Contributing
After having cloned this repository:
- make sure hatch is installed globally, e.g.
pipx install hatch, - make sure pre-commit is installed globally, e.g. with
pipx install pre-commit,
and then you are already set up to start hacking. Use hatch run test to run the unit tests or hatch run vcr-only
to run the offline unit tests using VCR.py. Regenerate the cassettes with hatch run vcr-rewrite.
Check out the environment setup of hatch in pyproject.toml for many more commands.
If you are using VS Code, it's quite convenient to create a file .vscode/.env with
NOTION_TOKEN=TOKEN_TO_YOUR_TEST_NOTION_ACCOUNT
ULTIMATE_NOTION_CONFIG=/path/to/repo/.ultimate-notion/config.toml
Check out this page about contributing for more details.
📄 License & Credits
Ultimate Notion is released under the terms of the MIT license. It is built on top of notion-sdk-py and was initially inspired by notional, with the overall project structure adapted from hatch. Documentation is created using Material for MkDocs and hosted on GitHub Pages.
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 ultimate_notion-0.9.6.tar.gz.
File metadata
- Download URL: ultimate_notion-0.9.6.tar.gz
- Upload date:
- Size: 121.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79841a72e53ebda53fb757ae23b63aa69df773b3bbbfda8d4aeb11fdd4343e8e
|
|
| MD5 |
0732002c96e88cd64cbc2a2caa44f5c8
|
|
| BLAKE2b-256 |
4485e06406d23ccc85197cbe4473d7aa0f6b38b700c4af02070f630fcf1b34c6
|
Provenance
The following attestation bundles were made for ultimate_notion-0.9.6.tar.gz:
Publisher:
publish-pkg.yml on ultimate-notion/ultimate-notion
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ultimate_notion-0.9.6.tar.gz -
Subject digest:
79841a72e53ebda53fb757ae23b63aa69df773b3bbbfda8d4aeb11fdd4343e8e - Sigstore transparency entry: 718700227
- Sigstore integration time:
-
Permalink:
ultimate-notion/ultimate-notion@cde37c03480153a632dce41b16a94560659c07b3 -
Branch / Tag:
refs/tags/v0.9.6 - Owner: https://github.com/ultimate-notion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pkg.yml@cde37c03480153a632dce41b16a94560659c07b3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ultimate_notion-0.9.6-py3-none-any.whl.
File metadata
- Download URL: ultimate_notion-0.9.6-py3-none-any.whl
- Upload date:
- Size: 139.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41b09141b1bd20c60f1a210bbe101563d4d9d694376fc6fa84770b129fef7b8e
|
|
| MD5 |
0237568214f950e72e8b8b5053e79490
|
|
| BLAKE2b-256 |
9d34af693349d3ddf5829849b7358cb17c860c4880441ec04ec2a74eb8679b12
|
Provenance
The following attestation bundles were made for ultimate_notion-0.9.6-py3-none-any.whl:
Publisher:
publish-pkg.yml on ultimate-notion/ultimate-notion
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ultimate_notion-0.9.6-py3-none-any.whl -
Subject digest:
41b09141b1bd20c60f1a210bbe101563d4d9d694376fc6fa84770b129fef7b8e - Sigstore transparency entry: 718700231
- Sigstore integration time:
-
Permalink:
ultimate-notion/ultimate-notion@cde37c03480153a632dce41b16a94560659c07b3 -
Branch / Tag:
refs/tags/v0.9.6 - Owner: https://github.com/ultimate-notion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pkg.yml@cde37c03480153a632dce41b16a94560659c07b3 -
Trigger Event:
push
-
Statement type: