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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
909057c27c60f5e5115004cd5e430269e7b4fee28914ea758a2312ecdc48049d
|
|
| MD5 |
2cb6fea15501f58252f165f77fa83028
|
|
| BLAKE2b-256 |
cf9b2403eb276a40c40d83716e6da02055195d47a53f307f0f782ed85265705b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88477283b0dbf01bb32aad8853e828d00f7de00bb2be42ea6ea51ac892be24b9
|
|
| MD5 |
10887aca4be3c34f1614a927c12723bf
|
|
| BLAKE2b-256 |
0da723b81243a6b2842685b6f23e145f810e020170414003dcb9a5d4cfdd112e
|