notionfier


Namenotionfier JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/Yolley/notionfier
SummaryImport markdown files to Notion
upload_time2023-11-17 06:33:57
maintainer
docs_urlNone
authorYolley
requires_python>=3.11,<4.0
licenseMIT
keywords notion markdown
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://developers.notion.com/).

**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](https://developers.notion.com/docs/getting-started) 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

```python
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](https://developers.notion.com/reference/request-limits).
- [ ] More tests on markdown extensions.

## LICENSE

[MIT License](https://opensource.org/licenses/MIT)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Yolley/notionfier",
    "name": "notionfier",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11,<4.0",
    "maintainer_email": "",
    "keywords": "notion,markdown",
    "author": "Yolley",
    "author_email": "Yolley@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/52/97/ac646d37b4e6bd1d55791c515df9ddef6f162a3091da1f51cabdf09f4087/notionfier-1.0.1.tar.gz",
    "platform": null,
    "description": "# Notionfier: Import Markdown Pages to Notion.so\n\nFork of https://github.com/Arsenal591/notionfier\n\n- updated dependencies\n- published to PyPi\n- reformatted, updated python version\n\nImport markdown files to Notion.so using its [official API](https://developers.notion.com/).\n\n**Requirments**: Python >= 3.11.\n\n## Features\n\n- All markdown basic syntax.\n- Some markdown extended syntax:\n  - Tables.\n  - Code blocks.\n  - Footnotes.\n  - Definition lists.\n  - Strikethrough.\n  - Task lists.\n  - Automatic URL Linking.\n\n## Usage\n\n- Firstly, follow the [instruction](https://developers.notion.com/docs/getting-started) to create an notion integration and share a page with the integration.\n\n### CLI\n\n```\nnotionfier import -t={{YOUR NOTION TOKEN}} -pid={{PAGE ID}} -f={{FILE PATH}}\n```\n\n### Programmatically\n\n```python\nfrom notionfier import NotionPageBuilder\n\ntoken = \"TOKEN\"\nbuilder = NotionPageBuilder(token)\n\nparent_page_id = \"123\"\nname = \"Import Markdown File\"\ncontent = \"##Markdown!!!\"\n\n# For sync\nbuilder.create_page(parent_page_id, name, content)\n\n# For async\nawait builder.acreate_page(parent_page_id, name, content)\n```\n\n## TODOs\n\n- [ ] Highlighting.\n- [ ] MathJax.\n- [ ] Support local image files.\n- [ ] Handle deeply (> 3 levels) nested children properly.\n- [ ] Deal with Notion API's [request limits](https://developers.notion.com/reference/request-limits).\n- [ ] More tests on markdown extensions.\n\n## LICENSE\n\n[MIT License](https://opensource.org/licenses/MIT)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Import markdown files to Notion",
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/Yolley/notionfier",
        "Repository": "https://github.com/Yolley/notionfier"
    },
    "split_keywords": [
        "notion",
        "markdown"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de47aefaa2cebc090b297f294c44b0bf8a4e824b79e3f3c9d15379fb7427eec6",
                "md5": "56e01e61ae04f248974624f3cc44c1c8",
                "sha256": "de5fc141233f58a638cb006810c2c18dd0f536c0f0d4267a4eb1e78d69abac99"
            },
            "downloads": -1,
            "filename": "notionfier-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "56e01e61ae04f248974624f3cc44c1c8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11,<4.0",
            "size": 10695,
            "upload_time": "2023-11-17T06:33:56",
            "upload_time_iso_8601": "2023-11-17T06:33:56.336973Z",
            "url": "https://files.pythonhosted.org/packages/de/47/aefaa2cebc090b297f294c44b0bf8a4e824b79e3f3c9d15379fb7427eec6/notionfier-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5297ac646d37b4e6bd1d55791c515df9ddef6f162a3091da1f51cabdf09f4087",
                "md5": "63bb9d29d2175606ceaceab3dbc6e1ca",
                "sha256": "76b640d0cc75ad78757b013858e35cf5ba662e67332b9cbc247127f72a4fe9e8"
            },
            "downloads": -1,
            "filename": "notionfier-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "63bb9d29d2175606ceaceab3dbc6e1ca",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11,<4.0",
            "size": 8448,
            "upload_time": "2023-11-17T06:33:57",
            "upload_time_iso_8601": "2023-11-17T06:33:57.795477Z",
            "url": "https://files.pythonhosted.org/packages/52/97/ac646d37b4e6bd1d55791c515df9ddef6f162a3091da1f51cabdf09f4087/notionfier-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-17 06:33:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Yolley",
    "github_project": "notionfier",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "notionfier"
}
        
Elapsed time: 0.66029s