Skip to main content

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

MIT License

Metadata

Release files for notionfier 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for notionfier 1.0.1
File Size Uploaded Provenance Actions
notionfier-1.0.1.tar.gz 8.4 kB Without provenance Details for notionfier-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for notionfier 1.0.1
File Interpreter ABI Platform Actions
notionfier-1.0.1-py3-none-any.whl Python 3 none any Details for notionfier-1.0.1-py3-none-any.whl

Total release size: 19.1 kB

Release files / notionfier-1.0.1.tar.gz

Download URL notionfier-1.0.1.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
76b640d0cc75ad78757b013858e35cf5ba662e67332b9cbc247127f72a4fe9e8
BLAKE2b-256 checksum
How to use checksums
5297ac646d37b4e6bd1d55791c515df9ddef6f162a3091da1f51cabdf09f4087
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.6 Darwin/22.6.0

Release files / notionfier-1.0.1-py3-none-any.whl

Download URL notionfier-1.0.1-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de5fc141233f58a638cb006810c2c18dd0f536c0f0d4267a4eb1e78d69abac99
BLAKE2b-256 checksum
How to use checksums
de47aefaa2cebc090b297f294c44b0bf8a4e824b79e3f3c9d15379fb7427eec6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.6 Darwin/22.6.0

Security for notionfier 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page