Skip to main content

django-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

Documentation Status Tests PyPI PyPI - Django Version PyPI version

Features

django-treebeard is:

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

Metadata

Release files for django-treebeard 7.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-treebeard 7.0.3
File Size Uploaded Provenance
django_treebeard-7.0.3.tar.gz 234.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-treebeard 7.0.3
File Interpreter ABI Platform
django_treebeard-7.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 316.3 kB

Release files / django_treebeard-7.0.3.tar.gz

Download URL django_treebeard-7.0.3.tar.gz
Size 234.7 kB
Tags Source
SHA-256 checksum
How to use checksums
eb25678a4e79bdcc315c3cf2158c33a8ade5f51cf4df220909abc603bbd62681
BLAKE2b-256 checksum
How to use checksums
9b4b6b24126d565f360630accb6089da7cd20665d75b8510d269527d497a996d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / django_treebeard-7.0.3-py3-none-any.whl

Download URL django_treebeard-7.0.3-py3-none-any.whl
Size 81.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f1ddcad9cc4ee214c708d9496d574d9d92c155e59c1f335807ef5b0a83aad55
BLAKE2b-256 checksum
How to use checksums
ea8f8f1e02f1da570cd4fb11dbec986b55ef5a9f0310bbe6240296d8766e045d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for django-treebeard 7.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_treebeard-7.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

7.0.3 This release

2 release files Full provenance

1.2a

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page