Skip to main content

treezy

Tests License: MIT PyPI PyPI - Python Version

treezy is a simple Python library for manipulating phylogenetic trees, including reading from and writing to files.

Features

  • Parse and manipulate phylogenetic trees
  • Read and write trees with branch annotations and comments
  • Lightweight and easy to integrate into existing Python projects

Installation

pip install treezy

To build treezy from source you can run

git clone https://github.com/4ment/treezy
pip install treezy/

Usage

from treezy.tree import Tree

newick = '((A:[&rate=0.1,cat=0]1,B:[&rate=0.1,cat=0]2):[&rate=0.2,cat=1]3,C:[&rate=0.2,cat=1]4);'
tree = Tree.from_newick(newick)
tree.parse_branch_comment({'rate': lambda rate: float(rate)})
for node in tree:
    if not node.is_root:
        node.distance *= node.branch_annotations['rate']
print(tree)
# ((A:0.1,B:0.2):0.6,C:0.8);

Contributing

Contributions are welcome! Please open issues or submit pull requests.

License

This project is licensed under the MIT License. See LICENSE for details.

Metadata

Release files for treezy 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for treezy 0.0.2
File Size Uploaded Provenance Actions
treezy-0.0.2.tar.gz 27.2 kB With provenance Details for treezy-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for treezy 0.0.2
File Interpreter ABI Platform Actions
treezy-0.0.2-py3-none-any.whl Python 3 none any Details for treezy-0.0.2-py3-none-any.whl

Total release size: 52.6 kB

Release files / treezy-0.0.2.tar.gz

Download URL treezy-0.0.2.tar.gz
Size 27.2 kB
Tags Source
SHA-256 checksum
How to use checksums
86a1521376a579d37c3888b844ebdc906247d6060bcbf2b35215d20ed1da1a67
BLAKE2b-256 checksum
How to use checksums
1baf428fd543bcfe6381e53ffbd8bc1fc3a168d3c2d61e36bc3a23972b0d682a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 15, 2026.

Transparency log

Release files / treezy-0.0.2-py3-none-any.whl

Download URL treezy-0.0.2-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d270853382160bf9b8b64bb378e0982265846066d673445f1aff982ab51cae1
BLAKE2b-256 checksum
How to use checksums
41387a384083e34860d045c865542b60370b2adb8cca9939280a565ababcceec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 15, 2026.

Transparency log

Security for treezy 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for treezy-0.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page