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.1.tar.gz
(10.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file notion_git_sync-0.1.1.tar.gz.
File metadata
- Download URL: notion_git_sync-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1b3730eb7308857401c2e2c3b86665ec9935bde283805a7d6fcf6d0a7733247
|
|
| MD5 |
d8ba4b731cafe6a523d55eb235f8741e
|
|
| BLAKE2b-256 |
7df666a01fcdf021573e363539ed82c352c988168669a704cb28d84a132b6921
|
File details
Details for the file notion_git_sync-0.1.1-py3-none-any.whl.
File metadata
- Download URL: notion_git_sync-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f21d396d6cd8b8134fa326da4ca6fd460f7850f99d9cfcd42479b0aba24ce79e
|
|
| MD5 |
0f13bf4e3857a25d71660abe6d2fb435
|
|
| BLAKE2b-256 |
c4902317facafd21ec9fce8a618cc8d7f2cd942db190eac2f41465a958d47aa3
|