Skip to main content

Syncs Github Mmarkdown files to Notion

Project description

Git Notion

Syncs Github markdown files in your repository to Notion. See example Notion page.

Installation

pip install git-notion

or for local installation:

git clone https://github.com/NarekA/git-notion.git
cd git-notion
pip install -e .

Configuring

NOTION_TOKEN_V2 - Can be found in your browser cookies for Notion's website. NOTION_ROOT_PAGE - URL for notion page. Repo docs will be a new page under this page. NOTION_IGNORE_REGEX - Regex for paths to ignore.

These environment variables can be set.

export NOTION_TOKEN_V2=<YOUR_TOKEN>
export NOTION_ROOT_PAGE="https://www.notion.so/..."  # Can be in setup.cfg as well
export NOTION_IGNORE_REGEX="models/.*"               # Can be in setup.cfg as well

These parameters can be set in the setup.cfg for the repo.

[git-notion]
ignore_regex = models/.*
notion_root_page = https://www.notion.so/...

Usage

# To upload your current directory
git-notion

# To upload another directory
git-notion --path path/to/your/repo

Pushing to PYPI

bumpversion patch   # Look-up bumpversion
rm -rf dist/
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*

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

git_notion-0.2.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

git_notion-0.2.4-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file git_notion-0.2.4.tar.gz.

File metadata

  • Download URL: git_notion-0.2.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.4

File hashes

Hashes for git_notion-0.2.4.tar.gz
Algorithm Hash digest
SHA256 fa678b2085b8a5ae466e7e3f8d08dc9261996da7954447c18498d913dc68dd29
MD5 ef51572dde819ef00731f3e73fbf6f6e
BLAKE2b-256 74cf8126f0e28209b7bcf09e280206ac160b7052dd14ff179ccaa6c95f6b8c08

See more details on using hashes here.

File details

Details for the file git_notion-0.2.4-py2.py3-none-any.whl.

File metadata

  • Download URL: git_notion-0.2.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.4

File hashes

Hashes for git_notion-0.2.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 81d85fcab8a66934d2e273ceb9787fa302af172f19009862c0467c2540d52969
MD5 572cffcef34917c5693506b9c2804bd2
BLAKE2b-256 98b88e5a77b5b7d5b96f9a9fdc5bc1851c5daa3a0c28edbe66ff096c4609ab4a

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