Metadata-Version: 2.1
Name: notion-params
Version: 0.0.1
Summary: Helper to build Notion API params, parse markdown text into Notion API blocks
Home-page: https://github.com/zhaowb/notion-params.git
Author: Wenbo Zhao
Author-email: zhaowb@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# notion-params
Helper to build Notion API params, parse markdown text into Notion API blocks

![](https://raw.githubusercontent.com/zhaowb/notion-params/main/screenshots/Demo-README.png)

```
import notion_client
from notion_params import NotionParams as NP


def demo():
    notion = notion_client.client.Client(auth=os.environ['NOTION_TOKEN'])
    page_id = '7458781ba20644e0b850452095000000'
    sub_page = notion.pages.create(**NP.create_page(
        page_id,
        title='title text',
        emoji='😀',
        text="""# H1 title
Text text text

> quote
>
>> sub quote
>> more text

!!callout
custom markdown syntax to write callout

- list item abc
- another list item

1. ordered list sample
1. second item

...
"""))
```



