Skip to main content

Add your description here

Project description

NotionIt

PyPI PyPI - Downloads

Markdown to Notion uploader with full-featured support powered by Mistune.

Upload rich, formatted Markdown files—including equations, code, tables, and attachments—directly to Notion with ease.


✨ Features

  • Full Markdown Support via Mistune
  • 📤 Upload to Notion using official API
  • 📎 File & Image Attachment Support
  • 🔗 Skips invalid links like anchors
  • 📐 LaTeX Math Block Rendering
  • 🧩 Plugin-based Parsing (supports strikethrough, footnotes, task lists, etc.)
  • 📄 Table-to-Block Conversion
  • 🧠 Smart Title Conflict Handling (timestamp, counter, ask, skip)
  • 🛠️ Debug Mode for Development

🚀 Quick Start

pip install notionit

Then run:

notionit upload path/to/file.md --token YOUR_NOTION_TOKEN --parent-page-id YOUR_PAGE_ID

You'll see an animated progress bar showing upload percentage and remaining time.

Or use the convenience function in Python:

from notionit import quick_upload

quick_upload(
    file_path="example.md",
    token="secret_abc123",
    parent_page_id="notion_page_id",
)

🧩 Plugin Support

Default enabled plugins:

  • strikethrough
  • mark
  • insert
  • subscript
  • superscript
  • footnotes
  • table
  • task_lists
  • def_list
  • abbr
  • ruby
  • math (via notionit.math_plugin.notion_math for single-line $$ and list support)

Customize them via --plugins or programmatically.


🛡️ Environment Variables

Optionally configure via environment variables:

Variable Description
NOTION_TOKEN Notion integration token
NOTION_PARENT_PAGE_ID Parent page ID
NOTION_BASE_URL API base (default: https://api.notion.com/v1)
NOTION_API_VERSION API version (default: 2022-06-28)
NOTION_PARSER_PLUGINS Comma-separated plugin list

📦 CLI Options

Run notionit --help for full options:

notionit upload example.md \
  --page-title "My Notes" \
  --duplicate-strategy timestamp \
  --debug

During uploads, the CLI reports progress with a spinner and estimated remaining time.


🧠 Use Case Ideas

  • Publish lecture notes with math equations
  • Upload tech blogs with code snippets
  • Back up documentation in Notion
  • Convert Markdown meeting notes into Notion pages

📃 License

MIT

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

notionit-0.1.1.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

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

notionit-0.1.1-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file notionit-0.1.1.tar.gz.

File metadata

  • Download URL: notionit-0.1.1.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for notionit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bf0fad282bfc5b78d3b1e3b99fc1439b091f248698dbeefbcf7d278128b069a7
MD5 a13784b99b8e1f5f09ede130a931ef77
BLAKE2b-256 6b3d70a077517bae9d0c96b86e0e20aa961b469e7a5a63b77b698f237a268c15

See more details on using hashes here.

File details

Details for the file notionit-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: notionit-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for notionit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d92d7f054e57725163ddc1c5f4271d27e263b0d7502f74c659fd99905876bf48
MD5 dbff6fe9fe344a3176b96ef8bad5f75f
BLAKE2b-256 d0768646a06eec1c1047d9701bff52a008ba6b762acd523ffa8ad11a252afd0a

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