by caesar0301

caesar0301 /treelib

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

478 Stars 131 Forks Last release: Not found Other 273 Commits 3 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


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.