Comparison
django-mptt vs django-tree-queries vs django-treebeard vs django-treenode
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-treebeardprobably the best abstract model/admin for your tree based stuff.
Maintained. Last release 3 months ago, commits in 5 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install django-treenodeIn 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, django-treenode 59 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 | django-treenode |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 71 | 85 |