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 paramaters 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
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.2.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.2-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: git_notion-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 909057c27c60f5e5115004cd5e430269e7b4fee28914ea758a2312ecdc48049d
MD5 2cb6fea15501f58252f165f77fa83028
BLAKE2b-256 cf9b2403eb276a40c40d83716e6da02055195d47a53f307f0f782ed85265705b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: git_notion-0.2.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 88477283b0dbf01bb32aad8853e828d00f7de00bb2be42ea6ea51ac892be24b9
MD5 10887aca4be3c34f1614a927c12723bf
BLAKE2b-256 0da723b81243a6b2842685b6f23e145f810e020170414003dcb9a5d4cfdd112e

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