Skip to main content

A package to convert Markdown text to Notion data structure and publish a new page under the parent page

Project description

md2notionpage

A Python package to convert Markdown text into Notion pages. This module provides functionality to create Notion pages from Markdown text, parse Markdown into Notion blocks, and process inline formatting.

Installation

You can install the package using pip:

pip install md2notionpage

Usage

Here's a basic example of how to use the md2notionpage function:

from md2notionpage import md2notionpage
markdown_text = """
# My Page
This is a Notion page created from Markdown.
"""
title = 'My Notion Page'
parent_page_id = 'YOUR_PARENT_PAGE_ID'
notion_page_url = md2notionpage(markdown_text, title, parent_page_id)

Dependencies

  • notion-client

Environment Variables

You must set the NOTION_SECRET environment variable with your Notion API token.

Notes

This package is designed to work with the Notion API and requires proper authentication. Make sure to follow Notion's API documentation to set up your integration.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

md2notionpage-0.1.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

md2notionpage-0.1.3-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file md2notionpage-0.1.3.tar.gz.

File metadata

  • Download URL: md2notionpage-0.1.3.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for md2notionpage-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f0d1aaaa84968de5be3ec2883cb273227c26e9c80d95180e95f9392091818d18
MD5 4e52b3789925b15aff2cdbef430b4d7d
BLAKE2b-256 5cdab0304b6929bba9617f094f412a10f8a462baaa148f22d5d6fad1ad9efb36

See more details on using hashes here.

File details

Details for the file md2notionpage-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: md2notionpage-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for md2notionpage-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a128bd6bfa783bb77700bbdd18508c79cc7d27ed7ca1f101420fb9b321331d87
MD5 ec770eb04f212dd550b260ed9f815a5e
BLAKE2b-256 0f60de5cd5dc499304aea6579bcadabf450a108532d7dbd800ca3c600433c58d

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