$npx skillfedfor your agent

notion-to-md-py

A package to convert Notion content into Markdown format

Worth itPyPI MarkupReleased May 2026133.1K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — notion_to_md_py-0.1.5-py3-none-any.whl
v0.1.5 · released 2026-05-11 · Python >=3.7 · 3 runtime deps: httpx, pytablewriter, notion-client

Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a specific problem—exporting Notion content to Markdown—that has no obvious built-in alternative. The MIT license is permissive. Install it if you regularly need to extract Notion pages as Markdown; skip it if you only export occasionally or need features the Notion API doesn't support.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a Notion API key and appropriate permissions; the Notion API limits what content types and features can be exported.
  • Low install friction with a pure-Python wheel distribution.
  • Actively maintained with recent commits; last release was 95 days ago.

License · maintenance · safety

permissive license (permissive) — Licensed under MIT (permissive), imposing no restrictions on use, modification, or distribution in your own projects.

last release 2026-05-11 (95 days) · last repo commit 2026-05-11 · 28 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 133,144 downloads/mo, #11,527 on PyPI

Verify before relying

pip install notion-to-md-py

from notion_client import Client
from notion_to_md import NotionToMarkdown

notion = Client(auth="your-auth-token")
n2m = NotionToMarkdown(notion)
md_blocks = n2m.page_to_markdown("page-id")
md_str = n2m.to_markdown_string(md_blocks).get('parent')
with open("output.md", "w") as f:
    f.write(md_str)
  • Whether embedded content types beyond images are handled or silently dropped during conversion.
  • Performance characteristics when exporting large Notion workspaces or deeply nested page hierarchies.
  • Fidelity of Markdown output for complex Notion formatting (e.g., database properties, synced blocks, advanced layouts).
Same gist for agents: .md · .json

What it is and what it does

notion-to-md-py is a Python wrapper around the Notion API that extracts page content and converts it to Markdown format. It provides both synchronous and asynchronous interfaces, allowing you to export individual Notion pages or build batch export workflows. The package handles the translation of Notion's block-based content model into standard Markdown, making it useful for archiving, backing up, or migrating Notion content to Markdown-based systems.

The package depends on notion-client for API communication, httpx for HTTP requests, and pytablewriter for rendering Notion tables as Markdown. It requires a valid Notion API token and appropriate sharing permissions on the pages you want to export. The tool is limited by what the Notion API exposes—file downloads other than images are not supported, and complex Notion features may not translate perfectly to Markdown.

Use it for

  • Back up Notion pages as Markdown files for version control or offline storage.
  • Migrate Notion documentation to a static site generator or Markdown-based wiki.
  • Batch export database records from Notion into individual Markdown files for processing.
  • Automate Notion-to-Markdown workflows in CI/CD pipelines using the async interface.
  • Convert Notion meeting notes or project pages into shareable Markdown documents.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, low install friction, and solves a specific problem—exporting Notion content to Markdown—that has no obvious built-in alternative. The MIT license is permissive. Install it if you regularly need to extract Notion pages as Markdown; skip it if you only export occasionally or need features the Notion API doesn't support.

Install

notion-to-md-py on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained with recent commits; last release was 95 days ago. Depends on httpx, pytablewriter, and notion-client, all standard packages.

Requires a Notion API key and appropriate permissions; the Notion API limits what content types and features can be exported.

License in practice

Licensed under MIT (permissive), imposing no restrictions on use, modification, or distribution in your own projects.

Quickstart

pip install notion-to-md-py

from notion_client import Client
from notion_to_md import NotionToMarkdown

notion = Client(auth="your-auth-token")
n2m = NotionToMarkdown(notion)
md_blocks = n2m.page_to_markdown("page-id")
md_str = n2m.to_markdown_string(md_blocks).get('parent')
with open("output.md", "w") as f:
    f.write(md_str)

Verify before relying

  • Whether embedded content types beyond images are handled or silently dropped during conversion.
  • Performance characteristics when exporting large Notion workspaces or deeply nested page hierarchies.
  • Fidelity of Markdown output for complex Notion formatting (e.g., database properties, synced blocks, advanced layouts).

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
httpxpytablewriternotion-client
MaintenanceActively maintained 95 days since the last release
Last repo commit
First released
Downloads133,144 / month, #11,527 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: notion_to_md_py-0.1.5-py3-none-any.whl

Tags

Capabilities
notion to markdown converterexport notion pages markdownnotion api markdownnotion content extractionnotion page to mdnotion markdown export tool
Topics
notion-integrationmarkdown-exportasync-support
PyPI keywords
notionmarkdownconverterpython

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “notion to markdown converter”

  • notion-to-md-pyConverts Notion pages to Markdown files via the Notion API,…
  • notion2mdExports Notion pages and blocks to Markdown files or strings using…
  • html-to-markdownConverts real-world HTML—including malformed tags, broken entities,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Markup packages

PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
markdown-it-py Worth it
PyPI · Python Modules · released May 2026

A Python markdown parser that converts markdown to HTML following the CommonMark specification, with support for plugins and custom syntax rules.

Install it if you need reliable markdown-to-HTML conversion.

MITpure Python · 3.10+
613.8Mdownloads / mo
beautifulsoup4 Worth it
PyPI · Python Modules · released Jun 2026

Beautiful Soup parses HTML and XML documents into a navigable tree, providing Pythonic methods to search, iterate, and modify the parsed content.

Install it if you need to parse or extract data from markup documents.

MITpure Python · 3.7.0+
432.1Mdownloads / mo
et-xmlfile With conditions
PyPI · Markup · released Oct 2024

et_xmlfile writes large XML files with minimal memory overhead by serializing elements to disk as they are created, rather than holding the entire tree in memory.

Install it if incremental XML writing fits your use case; skip it if your XML documents are small or you already use lxml.

MITpure Python · 3.8+dormant
343.3Mdownloads / mo
tomlkit Worth it
PyPI · Markup · released Jul 2026

Parses and edits TOML files while preserving formatting, comments, and structure, then serializes them back with layout intact.

Install it if you're building tools that touch TOML files and user readability of the source matters.

MITpure Python · 3.9+
338.0Mdownloads / mo
docstring-parser Worth it
PyPI · Python Modules · released Apr 2026

Parses Python docstrings in ReST, Google, Numpydoc, and Epydoc formats, extracting structured information like descriptions, parameters, return types, and exceptions.

Install it if you need to programmatically read and extract structured data from Python docstrings.

MITpure Python · 3.8+
274.9Mdownloads / mo

See also notion-client · notion2md · notion · md2pdf · markdownify · md2Slack · sphinx_mdinclude · mdformat-black · markdown2 · strip-markdown