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
  • 📐 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 path/to/file.md --token YOUR_NOTION_TOKEN --parent-page-id YOUR_PAGE_ID

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

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 example.md \
  --page-title "My Notes" \
  --duplicate-strategy timestamp \
  --debug

🧠 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.0.tar.gz (26.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.0-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for notionit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 954689de6bde4657ae97260b0db8a78904bd30ecc071d8b0c5af96795cbeea75
MD5 3b00aa9d106504970b2a60f4fbcc71bb
BLAKE2b-256 bc19e645c01a91551bc482951fae73c06eb8deb03e968b65b71a87357656db98

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for notionit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0667b6e111f1ed2b4ff2ac82d40c22bff03478a3524469a4cb4b5bba6244dd02
MD5 e20887aa6439abca4ce584b8cbca6363
BLAKE2b-256 db44d6348d6df923ef51fca1cab27b21219419cc05e468003ff4864ca08a30ae

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