Skip to main content

Synchronize Notion pages to markdown files with frontmatter support

Project description

Notion Git 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-git-sync

Usage

from notion_git_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.2.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.2-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notion_git_sync-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ce2fbaafbe8f050be543816b752c9b9ef10c149d38d2f057a7a39d602e461e70
MD5 285435ff9f82ab514fd1191c3fda0a67
BLAKE2b-256 8c1d8fb971231d0e3594c3e00aaed7d745f041c2281dda979ae9cf84f518cdb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for notion_git_sync-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 50fd443d6b59c56819b3ff10a01e89715f27371c05e6312deb663f3efd137b95
MD5 5ef9823a3caa796ccfb02183a074d906
BLAKE2b-256 0b7b9f76f5f140bb13746276e9937971f245259fb3f279fb72d10277fc9338b4

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