Welcome to libtree’s documentation!

libtree is a Python library which assists you in dealing with large, hierarchical data sets. It runs on top of PostgreSQL 9.5 and is compatible with all major Python interpreters (2.7, 3.3-3.5, PyPy2 and PyPy3).

Why use libtree? Because...

But there’s even more, libtree...

  • offers thread-safety by working inside transactions
  • enforces integrity by moving tree logic to inside the database
  • provides a convenient high level API and fast low level functions
  • core is fully integration tested, the testsuite covers >90% of the code