Skip to main content

Continual of django-ltree with additional goodies

Project description

django-ltree-2

Downloads Documentation Status CI Pypi Badge pre-commit.ci status

A tree extension implementation to support hierarchical tree-like data in Django models, using the native Postgres extension ltree.

Postgresql has already a optimized and very useful tree implementation for data. The extension is ltree

This fork contains is a continuation of the work done by mariocesar on django-ltree and merges the work done by simkimsia on greendeploy-django-ltree

Install

Please remember to uninstall django-ltree before installing django-ltree-2, since both uses django_ltree namespace.


pip install django-ltree-2

Then add django_ltree to INSTALLED_APPS in your Django project settings.

INSTALLED_APPS = [
    ...,
    'django_ltree',
    ...
]

Then use it like this:

from django_ltree.models import TreeModel


class CustomTree(TreeModel):
    ...

Requires

  • Django 3.2 or superior
  • Python 3.9 or higher

Project details


Download files

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

Source Distribution

django_ltree_2-0.1.13.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_ltree_2-0.1.13-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file django_ltree_2-0.1.13.tar.gz.

File metadata

  • Download URL: django_ltree_2-0.1.13.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_ltree_2-0.1.13.tar.gz
Algorithm Hash digest
SHA256 7f994ca1ec00dfd1aefac6980db33692fefa23a410ad02a94d5a3327718e3104
MD5 24d817485ec0107011765540ed1edd32
BLAKE2b-256 c04779e539dd8410479ce3feecfa7bc6f16d4d3839d68efdc9e8d2c93f2b303f

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_ltree_2-0.1.13.tar.gz:

Publisher: CI.yml on baseplate-admin/django-ltree-2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_ltree_2-0.1.13-py3-none-any.whl.

File metadata

File hashes

Hashes for django_ltree_2-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a5094c2f07921fcb1fba0b474159c10c422f9da4325d9d137911f2cd3c5b5c27
MD5 900dd2ced8e2baa306f49df30ece5ee0
BLAKE2b-256 a3d4e4adf5cf8bede8e376ccd1e1a811fe911523d32fbed172f6756c36048773

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_ltree_2-0.1.13-py3-none-any.whl:

Publisher: CI.yml on baseplate-admin/django-ltree-2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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