{"id":18977498,"url":"https://github.com/mariocesar/django-ltree","last_synced_at":"2025-04-04T07:03:44.094Z","repository":{"id":33102206,"uuid":"151846403","full_name":"mariocesar/django-ltree","owner":"mariocesar","description":"An ltree extension implementation to support hierarchical tree-like data using the native Postgres extension ltree in django models","archived":false,"fork":false,"pushed_at":"2025-02-24T14:53:59.000Z","size":100,"stargazers_count":60,"open_issues_count":8,"forks_count":17,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T06:02:50.107Z","etag":null,"topics":["django","ltree","postgresql-extension"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/django-ltree/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mariocesar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-06T14:12:09.000Z","updated_at":"2025-02-24T14:54:09.000Z","dependencies_parsed_at":"2024-06-19T17:34:54.645Z","dependency_job_id":"882b71f1-22c6-4ba7-aa4f-32219ff1df36","html_url":"https://github.com/mariocesar/django-ltree","commit_stats":{"total_commits":128,"total_committers":11,"mean_commits":"11.636363636363637","dds":0.28125,"last_synced_commit":"30f32b9aac99260e98363319c6d1202c0739783a"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariocesar%2Fdjango-ltree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariocesar%2Fdjango-ltree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariocesar%2Fdjango-ltree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariocesar%2Fdjango-ltree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mariocesar","download_url":"https://codeload.github.com/mariocesar/django-ltree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135108,"owners_count":20889419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","ltree","postgresql-extension"],"created_at":"2024-11-08T15:29:23.571Z","updated_at":"2025-04-04T07:03:44.066Z","avatar_url":"https://github.com/mariocesar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-ltree\n\nA tree extension implementation to support hierarchical tree-like data in Django models,\nusing the native Postgres extension `ltree`.\n\nPostgresql has already a optimized and very useful tree implementation for data.\nThe extension is [ltree](https://www.postgresql.org/docs/9.6/static/ltree.html)\n\nThis fork contains a backport to Django 1.11 and Python 3.6.\n\n[![Test](https://github.com/mariocesar/django-ltree/actions/workflows/test.yml/badge.svg)](https://github.com/mariocesar/django-ltree/actions/workflows/test.yml)\n\n\n## Links\n\n - Pypi https://pypi.org/project/django-ltree/\n - Source code https://github.com/mariocesar/django-ltree\n - Bugs https://github.com/mariocesar/django-ltree/issues\n - Contribute https://github.com/mariocesar/django-ltree/pulls\n - Documentation `TODO`\n\n## Install\n\n```\npip install django-ltree\n```\n\nThen add `django_ltree` to `INSTALLED_APPS` in your Django project settings.\n\nAnd make sure to run `django_ltree` migrations before you added the `PathField`\n\n```\npython manage.py migrate django_ltree\n```\n\n`django_ltree` migrations will install the `ltree` extension if not exist.\n\nYou can alternatively specify the `django_ltree` dependency in the migrations of\nyour applications that requires `PathField`, and run migrations smoothly.\n\n```\nclass Migration(migrations.Migration):\n    dependencies = [\n            ('django_ltree', '__latest__'),\n    ]\n```\n\n## Requires\n\n- Django 1.11 or superior\n- Python 2\n\n## Testing\n\nMake sure you have Postgres installed. Then simply run `tox` in the root directory of the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariocesar%2Fdjango-ltree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariocesar%2Fdjango-ltree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariocesar%2Fdjango-ltree/lists"}