django-treebeard/django-treebeard
Efficient tree implementations for Django observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 98
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5990
- days_rel: n/a
- days_push: 13
- n_releases_24m: 0
Adoption not part of the score
1218 stars · 221 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
django-treebeard is a Python library providing efficient tree data structure implementations for Django models. It offers multiple tree algorithms (adjacency list, materialized path, nested sets, and PostgreSQL ltree) behind a single consistent API via abstract model classes.
Use cases
- store hierarchical categories in Django
- model nested comments with parent-child relationships
- manage organizational charts in a Django app
- query subtrees and descendants efficiently
- implement menu or taxonomy trees in Django
- migrate between different tree storage strategies
When to choose
- you use Django and need hierarchical data with fast tree operations
- you want a well-tested library with multiple tree implementations and a shared API
- you need PostgreSQL ltree support or broad database backend compatibility
When to avoid
- you are not using Django or an ORM with Django-style models
- you only need shallow one-level parent-child relations without tree queries
- you need graph (many-to-many) rather than tree structures
Facets
library · maturity stable
orm database web-development databases backend python cross-platform django tree-structure hierarchical-data adjacency-list nested-sets materialized-path ltree
2 sources
- readme: https://github.com/django-treebeard/django-treebeard · fetched 2026-08-28 · 0cebd36deba6
- registry_pypi: https://pypi.org/pypi/django-treebeard/json · fetched 2026-08-29 · 2f94c4ba2a53
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| django-treebeard/django-treebeard | main | 76 |
For agents
markdown · JSON · MCP: product_card(name="django-treebeard/django-treebeard")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem