Comparison
django-mptt vs django-tree-queries vs django-treebeard
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Utilities for implementing Modified Preorder Tree Traversal with your Django Models and working with trees of Model instances.
Actively maintained. Last release 11 days ago, commits in 5 of the last 26 weeks. A safe choice.
$
pip install django-mpttTree queries with explicit opt-in, without configurability
Actively maintained. Last release 6 days ago, commits in 22 of the last 26 weeks. A safe choice.
$
pip install django-tree-queriesEfficient tree implementations for Django
Actively maintained. Last release 6 weeks ago, commits in 14 of the last 26 weeks. A safe choice.
$
pip install django-treebeardIn short
- django-treebeard is the most used: 1.4M downloads a month.
- Maintenance is comparable: django-treebeard 91, django-tree-queries 85, django-mptt 71 on Pythie’s Index.
- django-tree-queries is growing fastest: downloads +19% over the last month.
- Safe default for a new project: django-treebeard.
Side by side
| Metric | django-mptt | django-tree-queries | django-treebeard |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 71 | 85 |