Skip to main content

TreeSwift: Fast tree module for Python 2 and 3

Project description

# TreeSwift
TreeSwift: Fast tree module for Python 2 and 3

## Installation
You should be able to install TreeSwift using `pip`, e.g.:

```bash
pip install treeswift
```

## Usage
Typical usage should be as follows:

1. Import the `treeswift` package
2. Use `treeswift.read_tree_newick` to load your Newick tree
3. Use the various `Tree` class functions on the resulting object as you need

```python
import treeswift
tree = treeswift.read_tree_newick(my_newick_string)
for node in tree.traverse_postorder():
print(node)
```

Full documentation can be found at [http://treeswift.readthedocs.io/en/latest/](http://treeswift.readthedocs.io/en/latest/).

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

treeswift-1.0.10.tar.gz (18.5 kB view hashes)

Uploaded Source

Built Distribution

treeswift-1.0.10-py2.py3-none-any.whl (19.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page