Treeswift

Latest version: v1.1.45

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 8

1.1.33

* Fixed bug where `Tree.deroot` forgot to set the `Tree.is_rooted` flag to `False`

1.1.32

* Fixed `Tree.deroot` (https://github.com/niemasd/TreeSwift/issues/20); thanks balabanmetin and ekmolloy!

1.1.31

* Refactored code for small performance gains (https://github.com/niemasd/TreeSwift/pull/26); thanks Uzaaft!
* Added support for escaping labels using `'` just like in [`skbio`](http://scikit-bio.org/docs/0.2.2/generated/skbio.io.newick.html#module-skbio.io.newick) (https://github.com/niemasd/TreeSwift/issues/27); thanks valevalorin!
* Also added support for spaces after commas, e.g. `((D, E)B, (F, G)C)A;`

1.1.30

* Fixed bug in `reroot` (https://github.com/niemasd/TreeSwift/issues/24); thanks smirarab!

1.1.29

* Added weighted vs. unweighted option to `Tree.distances_from_root()` and `Tree.height()`
* Used to only support weighted distances

1.1.28

* Fixed bug when writing an output Newick tree that has node/edge params
* Newick writing seems to now work in all of the following scenarios for any node in the tree:
* With/without node labels
* With/without edge lengths
* With/without node params
* With/without edge params

Page 3 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.