A Python library for phylogenetics and phylogenetic computing: reading, writing, simulation, processing and manipulation of phylogenetic trees (phylogenies) and characters.

phylogenetics, phylogeny, phylogenies, phylogeography, evolution, evolutionary, biology, systematics, coalescent, population, genetics, phyloinformatics, bioinformatics
pip install DendroPy==5.0.1


DendroPy wordmark

automated tests:

Continuous Integration build

package version:

PyPI version


Documentation Status

test coverage:

codecov coverage

DendroPy is a Python library for phylogenetic computing. It provides classes and functions for the simulation, processing, and manipulation of phylogenetic trees and character matrices, and supports the reading and writing of phylogenetic data in a range of formats, such as NEXUS, NEWICK, NeXML, Phylip, FASTA, etc. Application scripts for performing some useful phylogenetic operations, such as data conversion and tree posterior distribution summarization, are also distributed and installed as part of the libary. DendroPy can thus function as a stand-alone library for phylogenetics, a component of more complex multi-library phyloinformatic pipelines, or as a scripting "glue" that assembles and drives such pipelines.

The primary home page for DendroPy, with detailed tutorials and documentation, is at:


DendroPy is also hosted in the official Python repository:


Requirements and Installation

The current version of DendroPy requires Python 3:

You can install DendroPy by running:

$ sudo pip install dendropy

More information is available here:



Full documentation is available here:


This includes:

and more.


If you use this library or any portion thereof in published work, please cite it as:

Sukumaran, J. and M. T. Holder. 2010. DendroPy: a Python library for phylogenetic computing. Bioinformatics 26: 1569-1571.

License and Warranty

Please see the file "LICENSE.rst" for details.