Skip to main content

Syncs Github Mmarkdown files to Notion

Project description

Git Notion

Syncs Github markdown files to Notion. 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

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

*The V2 Token can be found in the cookies when you open notion in your browser

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.3.tar.gz (3.4 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.3-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: git_notion-0.2.3.tar.gz
  • Upload date:
  • Size: 3.4 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.3.tar.gz
Algorithm Hash digest
SHA256 843fab10597a0782572897f89abd1fb3cb5bbe0817096a557539045e6b62a2ae
MD5 c93e53dc657eecb92696d26469dba657
BLAKE2b-256 118cb540b0fd2f84fd135bcb8ee8517732ab134166433f4eed8e63ba1cd71540

See more details on using hashes here.

File details

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

File metadata

  • Download URL: git_notion-0.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a56a4eec8aa869f079fa6be582355a43891abad6c43023e72cc35888b812f703
MD5 a5f77ed9251d63ed6ffaa9d7ca0f5bfa
BLAKE2b-256 20c79f5dc4dd40bb0a8fdecde846e87f2e872701f2af599cb4b072734b99dbe0

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