{ "info": { "author": "Aur\u00e9lien Delobelle", "author_email": "aurelien.delobelle@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# notion-tree\n\nHierarchic operations with Notion API, thanks to [notion-py](https://github.com/jamalex/notion-py).\n\n## Requirements\n\n- Python \u2265 3.6\n- aureplop/notion-py, fork of https://github.com/jamalex/notion-py, with importFile feature\n\n## Installation\n\n```sh\n# Required as PyPI does not accept package with dependency links\n$ pip install git+https://github.com/aureplop/notion-py.git@feat-import-file#egg=notion-999\n$ pip install notion-tree\n```\n\n## Usage\n\n```\n# Obtain the `token_v2` value by inspecting your browser cookies on a logged-in session on Notion.so\n$ NOTION_TOKEN=...\n$ python -m notiontree.hierarchy --dir path/to/local/root --root-parent-url https://www.notion.so/id/to/parent/of/local/root\n```\n\nAssuming you had this hierarchy on Notion:\n```\nworkspace\n\u2514\u2500\u2500 parent-root # URL: https://www.notion.so/id/to/parent/of/local/root\n```\nAnd that you have this local structure:\n```\npath/to/local\n\u2514\u2500\u2500 root\n \u251c\u2500\u2500 index.md\n \u251c\u2500\u2500 dir1\n \u2502 \u251c\u2500\u2500 index.md\n \u2502 \u2514\u2500\u2500 page1.md\n \u2514\u2500\u2500 dir2\n \u2514\u2500\u2500 page2.md\n```\nAfter running the command above, you will get this structure on your Notion workspace:\n```\nworkspace\n\u2514\u2500\u2500 parent-root # URL: https://www.notion.so/id/to/parent/of/local/root\n \u2514\u2500\u2500 root # Includes links to dir1 and dir2 + content of root/index.md\n \u251c\u2500\u2500 dir1 # Includes links to dir1/page1.md + content of root/dir1/index.md\n \u2502 \u2514\u2500\u2500 page1.md\n \u2514\u2500\u2500 dir2 # Includes links to dir2/page2.md\n \u2514\u2500\u2500 page2.md\n```\n\n## Todos\n\n- Split 'notiontree/hierarchy.py' to multiple modules.\n- Use 'click' for CLI.\n- Document --github-wiki-root in README.\n- Create stub pages in another page than 'root' to be able to import root index.html w/o removing other stub pages.\n- Accept other filenames for index files (currently limited to 'index.md').\n- Improve link resolver configuration.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aureplop/notion-tree", "keywords": "notion structure hierarchy export import sync", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "notion-tree", "package_url": "https://pypi.org/project/notion-tree/", "platform": "", "project_url": "https://pypi.org/project/notion-tree/", "project_urls": { "Homepage": "https://github.com/aureplop/notion-tree", "Source": "https://github.com/aureplop/notion-tree", "Tracker": "https://github.com/aureplop/notion-tree/issues" }, "release_url": "https://pypi.org/project/notion-tree/0.0.1a4/", "requires_dist": null, "requires_python": ">=3.6", "summary": "", "version": "0.0.1a4" }, "last_serial": 5348683, "releases": { "0.0.1a1": [ { "comment_text": "", "digests": { "md5": "93eb3c2fcc16b2fa8f8a31818a21d3d4", "sha256": "d583178603f1ed0a48e425f4fc42c93e7c4987d01350e7f0f9149f2efcc55386" }, "downloads": -1, "filename": "notion_tree-0.0.1a1-py3-none-any.whl", "has_sig": false, "md5_digest": "93eb3c2fcc16b2fa8f8a31818a21d3d4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 5905, "upload_time": "2019-06-02T12:16:19", "url": "https://files.pythonhosted.org/packages/4c/c6/cddab694dbc8a111158d65f9f10dc3c4f86618be752a21a709e791dd22f5/notion_tree-0.0.1a1-py3-none-any.whl" } ], "0.0.1a2": [ { "comment_text": "", "digests": { "md5": "e6f44bdb61e9d492c87c84e98305da1c", "sha256": "2e838b06da547e3a25f42e882a9d46e2ce10162df5261e5338724c953c50369a" }, "downloads": -1, "filename": "notion_tree-0.0.1a2-py3-none-any.whl", "has_sig": false, "md5_digest": "e6f44bdb61e9d492c87c84e98305da1c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 5903, "upload_time": "2019-06-02T12:23:37", "url": "https://files.pythonhosted.org/packages/6a/4c/103d0baa9def5bc400b061e28af2b43aabe98338a21a4f9a003a704e755f/notion_tree-0.0.1a2-py3-none-any.whl" } ], "0.0.1a3": [ { "comment_text": "", "digests": { "md5": "6a07869740b6ecc3dbee6ac5726a4220", "sha256": "2d3cf258670791c91294d48d78d19ae570615fefb37acade9c9c5bba245a79e5" }, "downloads": -1, "filename": "notion_tree-0.0.1a3-py3-none-any.whl", "has_sig": false, "md5_digest": "6a07869740b6ecc3dbee6ac5726a4220", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 5908, "upload_time": "2019-06-02T12:29:13", "url": "https://files.pythonhosted.org/packages/84/89/d29d84cda4b981ef5f92f370b8d1db089c5e59a0c8b5f8ef87263a30a0ef/notion_tree-0.0.1a3-py3-none-any.whl" } ], "0.0.1a4": [ { "comment_text": "", "digests": { "md5": "cfaec7164ec134e867d775c39988659e", "sha256": "5688d0a6f344afe4a2b4d8ea058b2bc81026b0c2e921502916e944809fbe30f2" }, "downloads": -1, "filename": "notion_tree-0.0.1a4-py3-none-any.whl", "has_sig": false, "md5_digest": "cfaec7164ec134e867d775c39988659e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 5988, "upload_time": "2019-06-02T12:35:48", "url": "https://files.pythonhosted.org/packages/26/b9/1197dfc3b132fcabfd186574fa481f4de5bf3d137c6c475ef67126710b46/notion_tree-0.0.1a4-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cfaec7164ec134e867d775c39988659e", "sha256": "5688d0a6f344afe4a2b4d8ea058b2bc81026b0c2e921502916e944809fbe30f2" }, "downloads": -1, "filename": "notion_tree-0.0.1a4-py3-none-any.whl", "has_sig": false, "md5_digest": "cfaec7164ec134e867d775c39988659e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 5988, "upload_time": "2019-06-02T12:35:48", "url": "https://files.pythonhosted.org/packages/26/b9/1197dfc3b132fcabfd186574fa481f4de5bf3d137c6c475ef67126710b46/notion_tree-0.0.1a4-py3-none-any.whl" } ] }