An efficient implementation of tree data structure in python 2/3.
Branch: master
Clone or download
Xiaming Chen
Xiaming Chen Enable uploading doc
Latest commit 375b9c4 Dec 20, 2018


Tree implementation in python: simple for you to use.

Build Status Documentation Status Latest Status PyV

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 ( Post basic idea online.

Xiaming Chen ( Finished primary parts and made the library freely public.

Holger Bast ( Replaced list with dict for fast node index and optimized the performance.

Ilya Kuprik ( Added ZIGZAG tree-walk algorithm to tree traversal.