Tree libraries in python [closed] Tree libraries in python [closed] python python

Tree libraries in python [closed]


I'm happy with treelib. It addresses my problem. Could use a bit more documentation though. But the code is clear.


pypi, the Python Package Index, suggests tinytree, treedict, caxes, pyavl... these are just the top few after filtering away the many accidental hits (which point to specific tree such as XML ones, AST ones, etc, etc;-). If you clarify what you want to do with your trees it may be easier to suggest a specific package.


Although the ETE library seems to be originally developed to work with Phylogenetic trees, it implements many general features to work with any type of hierarchical tree structures, including programmatic tree drawing and visualization.

There is a comprehensive tutorial and a reference guide, in case you want to explore it.