Need help with treelib?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

600 Stars 154 Forks Other 273 Commits 67 Opened issues


An efficient implementation of tree data structure in python 2/3.

Services available


Need anything else?

Contributors list


Tree implementation in python: simple for you to use.

Build Status Documentation Status Status Latest PyV PyPI download month GitHub contributors

PRs Welcome GitHub pull-requests GitHub pull-requests closed

Quick Start

sudo easy_install -U treelib


For installation, APIs and examples, see


  • 2017-08-10: Abandon supporting Python 3.2 since v1.4.0.
  • 2012-07-07: First published.


Brett Alistair Kromkamp ([email protected]): Post basic idea online.

Xiaming Chen ([email protected]): Finished primary parts and made the library freely public.

Holger Bast ([email protected]): Replaced list with

for fast node index and optimized the performance.

Ilya Kuprik ([email protected]): Added ZIGZAG tree-walk algorithm to tree traversal.

ForTheBadge built-with-love

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.