Skip to main content

Efficient tree implementations for Django

Project description


django-treebeard is a library that implements efficient tree implementations for the Django Web Framework 2.2 and later.

It is written by Gustavo Picón and licensed under the Apache License 2.0.


Documentation Status Tests App Veyor PyPI PyPI version


django-treebeard is:

  • Flexible: Includes 3 different tree implementations with the same API:
    1. Adjacency List
    2. Materialized Path
    3. Nested Sets
  • 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 in

Supported versions

django-treebeard officially supports

  • Django 3.2, 4.1, 4.2, 5.0
  • Python 3.8 - 3.12
  • PostgreSQL, MySQL, MSSQL, SQLite database back-ends.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-treebeard-4.7.1.tar.gz (294.1 kB view hashes)

Uploaded source

Built Distribution

django_treebeard-4.7.1-py3-none-any.whl (93.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page