No project description provided
Project description
Notionfier: Import Markdown Pages to Notion.so
Fork of https://github.com/Arsenal591/notionfier
- updated dependencies
- published to PyPi
- reformatted, updated python version
Import markdown files to Notion.so using its official API.
Requirments: Python >= 3.11.
Features
- All markdown basic syntax.
- Some markdown extended syntax:
- Tables.
- Code blocks.
- Footnotes.
- Definition lists.
- Strikethrough.
- Task lists.
- Automatic URL Linking.
Usage
- Firstly, follow the instruction to create an notion integration and share a page with the integration.
CLI
notionfier import -t={{YOUR NOTION TOKEN}} -pid={{PAGE ID}} -f={{FILE PATH}}
Programmatically
from notionfier import NotionPageBuilder
token = "TOKEN"
builder = NotionPageBuilder(token)
parent_page_id = "123"
name = "Import Markdown File"
content = "##Markdown!!!"
# For sync
builder.create_page(parent_page_id, name, content)
# For async
await builder.acreate_page(parent_page_id, name, content)
TODOs
- Highlighting.
- MathJax.
- Support local image files.
- Handle deeply (> 3 levels) nested children properly.
- Deal with Notion API's request limits.
- More tests on markdown extensions.
LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
notionfier-1.0.0.tar.gz
(8.4 kB
view hashes)
Built Distribution
notionfier-1.0.0-py3-none-any.whl
(10.6 kB
view hashes)
Close
Hashes for notionfier-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9635d6df8407401ac273195f79ddb5a5a9a2414cbf8d0d4f36e1c6980e05dfd0 |
|
MD5 | faa816a59fef9448abb7e3bcdb8f76ee |
|
BLAKE2b-256 | 6b9b8c40df0bc5d5bedde05e3a93d80be23d489ba3ecc22e6c880780f7bc90ea |