# c0fec0de/anytree

Python tree data library

Repository: https://github.com/c0fec0de/anytree
Canonical: https://ross.abutalabs.com/products/anytree
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2025-04-08T21:04:04+00:00

## Health v2 (maintenance only)
Score: 30/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 15, release rhythm 8, longevity 100
- inputs: {"age_days": 3658, "days_push": 512, "days_rel": 512, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1090, forks 135 (observed 2026-08-28T04:03:32.879873+00:00)

## What it is
Anytree is a lightweight Python library providing powerful tree data structures with nodes, mixins, walkers, renderers, and importers/exporters. It supports building, traversing, and visualizing hierarchical data, including Graphviz dot export.

## Use cases
- build a tree data structure in python
- walk and traverse tree nodes
- render a tree as ascii text
- export tree to graphviz dot file
- represent hierarchical data like org charts or file systems
- add parent-child relationships to existing python classes

## When to choose
- you need a simple, pure-python tree structure without heavy dependencies
- you want to mix tree behavior into your own classes via NodeMixin
- you need tree rendering, walking, or dot export out of the box

## When to avoid
- you need high-performance trees for millions of nodes
- you need specialized trees like red-black or B-trees
- you work outside the Python ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools, data-science
- domain: developer-tools, data-science
- platform: python, cross-platform
- tags: tree-structure, tree-walk, node-tree, dot-exporter, hierarchical-data, algorithms

## Member repositories
- c0fec0de/anytree (main) score 30

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:32.879873+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:49:12.297454+00:00, confidence not recorded.
  - readme: https://github.com/c0fec0de/anytree (fetched 2026-08-28T04:03:32.879873+00:00, sha f931314d34f3)
  - registry_pypi: https://pypi.org/pypi/anytree/json (fetched 2026-08-29T12:51:33.713121+00:00, sha 51f1b431fbc5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
