Skip to main content

No project description provided

Project description


Hierarchic operations with Notion API, thanks to notion-py.



# Required as PyPI does not accept package with dependency links
$ pip install git+
$ pip install notion-tree


# Obtain the `token_v2` value by inspecting your browser cookies on a logged-in session on
$ python -m notiontree.hierarchy --dir path/to/local/root --root-parent-url

Assuming you had this hierarchy on Notion:

└── parent-root  # URL:

And that you have this local structure:

└── root
    ├── dir1
    │   ├──
    │   └──
    └── dir2

After running the command above, you will get this structure on your Notion workspace:

└── parent-root           # URL:
    └── root              # Includes links to dir1 and dir2 + content of root/
        ├── dir1          # Includes links to dir1/ + content of root/dir1/
        │   └──
        └── dir2          # Includes links to dir2/


  • Split 'notiontree/' to multiple modules.
  • Use 'click' for CLI.
  • Document --github-wiki-root in README.
  • Create stub pages in another page than 'root' to be able to import root index.html w/o removing other stub pages.
  • Accept other filenames for index files (currently limited to '').
  • Improve link resolver configuration.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

notion_tree-0.0.1a4-py3-none-any.whl (6.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page