The newick
package adheres to Semantic Versioning.
Dropped Python 3.7 compatibility.
Support round-tripping Newick with two annotations per node, one before and one after the length separator.
Bugfix: Make unquoted_name
property work for nodes without names, too.
- Added
rename
method - since that seems to be most common kind of node visitor. - Added
strip_comments
method to remove comments from aNode
. While it is already possible to remove comments upon parsing, this method makes this possible for parsed trees.
Bugfix: Quote node names containing whitespace, if auto_quote
is set.
Big performance improvement of parser by switching to accumulated tokens.
Support reading key-value data from node comments.
Full support for quoted labels and (nested) comments.
- Drop py3.6 compatibility
- Run tests on py3.11
- Added type hints.
- Backwards incompatibility through bug-fix: newick will not (incorrectly) parse
invalid newick trees anymore, but raise
ValueError
. - Run tests on py 3.10 as well.
Fixed support for node annotations for the case when annotations are between :
and length.
Added support for reading and writing of node annotations (in comments).