django-treebeard
v7.0.1Efficient tree implementations for Django
78 KB Python 3.10+ py3-none-anyApache-2.01 deps
$ uv add django-treebearddjango-treebeard
django-treebeard is a library that implements efficient tree implementations for the Django Web Framework.
It was written by Gustavo Picón and licensed under the Apache License 2.0.
Status
Features
django-treebeard is:
- Flexible: Includes 3 different tree implementations with the
same API:
- Adjacency List
- Materialized Path
- Nested Sets
- PostgreSQL ltree (experimental)
- Fast: Optimized non-naive tree operations
- Easy: Uses Django Model Inheritance with abstract classes to define your own models.
- Clean: Testable and well tested code base. Code/branch test coverage is above 96%.
You can find the documentation at https://django-treebeard.readthedocs.io/en/latest/.
System requirements
django-treebeard officially supports:
- Django 5.2 and higher
- Python 3.10 and higher
- PostgreSQL, MySQL, MSSQL, SQLite database back-ends.
Supported versions
The following versions of Treebeard are actively maintained:
- v5.x: security and bugfix support until April 2030.
- v6.x: security and bugfix support until April 2028.
- v7.x: current stable release.
Version 6 of Treebeard featured an API change that moved much of Treebeard's API from the model class to the model manager. To mitigate the upgrade burden, v5.x of Treebeard will receive security and bugfix releases until April 2030.
Details
- Version
- 7.0.1
- License
- Apache-2.0
- Python
- >=3.10
- Maintainer
- Gustavo Picon <[email protected]>
Release Cadence
18
releases in the past year
avg 138 days between releases
Maintainers
- Gustavo Picon · [email protected]