Skip to main content

Synchronize Notion pages to markdown files with frontmatter support

Project description

Notion Sync

Synchronize Notion pages to markdown files with frontmatter support.

Features

  • Converts Notion pages to markdown
  • Supports YAML frontmatter
  • Handles nested content
  • Git integration
  • Rich block type support

Installation

pip install notion-sync

Usage

from notion_sync import NotionSync, Config

config = Config.from_env()
syncer = NotionSync(config)
changed_files = syncer.sync()

Configuration

Set the following environment variables:

  • NOTION_TOKEN: Your Notion integration token
  • NOTION_PARENT_IDS: Comma-separated list of parent page IDs

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

notion_git_sync-0.1.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

notion_git_sync-0.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notion_git_sync-0.1.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for notion_git_sync-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8f233e7ed9806aaf29d7774e26f2a4724af31531f38dc431e79a61912601a92e
MD5 d6ed0b564a12381f900e774b83999ea5
BLAKE2b-256 54054fde4d9a99ebfbf0e326b58e7e0bc4e9b02759158c1088f53e3c799ed970

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for notion_git_sync-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c00cd95338f268f819fc029e89dc5362976676a003c999057fced6b5d6dea22
MD5 4fc80bb206fe78b73fc6bf8c35d0f352
BLAKE2b-256 9a7c4ad3b10a3a6935936d603076d5081693b50fba10eea2ab8e4224045b68bd

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