About Notion2Md
- Notion Markdown Exporter using official notion api by notion-sdk-py
Notion2Medium
- Check out Notion2Medium that publishes a Medium post from Notion using Notion2Md.
API Key(Token)
-
Before getting started, create an integration and find the token. → Learn more about authorization.
-
Then save your api key(token) as your os environment variable
-
From version 2.9.0, you can use
--tokenor-toption to set your token key.
$ export NOTION_TOKEN="{your integration token key}"
Install
$ pip install notion2md
Usage: Shell Command
-
Notion2md requires either
idorurlof the Notion page/block. -
download option will download files/images in the
pathdirectory. -
unzipped option makes Notion2Md export unzipped output of Notion block.
notion2md --download -n post -p ~/MyBlog/content/posts -u https://notion.so/...
- This command will generate "post.zip" in your '~/MyBlog/content/posts' directory.
Usage: Python
from notion2md.exporter.block import MarkdownExporter, StringExporter
# MarkdownExporter will make markdown file on your output path
MarkdownExporter(block_id='...',output_path='...',download=True).export()
# StringExporter will return output as String type
md = StringExporter(block_id='...',output_path='...').export()
To-do
- Download file object(image and files)
- Table blocks
- Synced Block
- Page Exporter
- Child page
- Column List and Column Blocks
Contribution
Please read Contribution Guide
Donation
If you think Notion2Md is helpful to you, you can support me here:
License
Metadata
Release files for notion2md 2.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| notion2md-2.9.0.tar.gz | 11.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| notion2md-2.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.3 kB
Release files / notion2md-2.9.0.tar.gz
| Download URL | notion2md-2.9.0.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df3d3c2b907da828b744b9887353b846184898d0a4c271391ef60606139fc433
|
|
BLAKE2b-256 checksum How to use checksums |
8b0d77afbf812eae52394502d85b4c554782fc9e5f392e0880984d70e0d5d312
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1018-azure
|
Release files / notion2md-2.9.0-py3-none-any.whl
| Download URL | notion2md-2.9.0-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24708c25b7ec42cc2c0e70ecded8579e80dc0f406b8314e4751f1db45e069838
|
|
BLAKE2b-256 checksum How to use checksums |
5cf9e4e5362c6097dcba641681eb796ed0df7288801d0aabf53e58231929bd82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1018-azure
|
Security for notion2md 2.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.