Trees and Graphs

Even in relational databases, Django can easily do hierarchical data models. http://science.nasa.gov/ is a good example of what can be done.

Features currently being evaluated

Feature Description
Type: Adjacency list
Type: Nested set
Type: Materialized path
Uses native graph storage
Admin contrib support Django Admin contrib integration.
Drop-in Doesn't require building models using utils provided within package.
Works with previously created models.
Type: Directed Acyclic Graph
Type: Closure Table
Dependency Free Thirdparty depedency required for package.
Type: Edge list Is the graph or tree stored in the database as a list of edges from a parent
node to a child node?

Filter results

Package django-mptt django-admin2 django-treebeard django-treenode django-tree-queries django-neomodel django-polymorphic-tree django-ltree django-postgresql-dag django-admirarchy
Package django-mptt django-admin2 django-treebeard django-treenode django-tree-queries django-neomodel django-polymorphic-tree django-ltree django-postgresql-dag django-admirarchy
Description Utilities for implementing a
modified pre-order traversal
tree in django.
Extendable, adaptable rewrite
of django.contrib.admin
Efficient tree implementations
for Django
:deciduous_tree: probably the
best abstract model/admin for
your tree based stuff.
Adjacency-list trees for
Django using recursive common
table expressions. Supports
PostgreSQL, sqlite, MySQL and
MariaDB.
Neomodel plugin for Django Polymorphic MPTT tree support
for models
An ltree extension
implementation to support
hierarchical tree-like data
using the native Postgres
extension ltree in django
models
Directed Acyclic Graphs with a
variety of methods for both
Nodes and Edges, and multiple
exports (NetworkX, Pandas,
etc). Thi...
Django Admin addon to navigate
through hierarchies.
Category App App App App Other App App App App App
# Using This 109 8 26 2 1 1 4 0 1 2
Python 3?
Development Status Production/Stable Alpha Production/Stable Production/Stable Unknown Beta Production/Stable Beta Alpha Production/Stable
Last updated Sept. 27, 2022, 2:15 p.m. Oct. 22, 2021, 11:46 a.m. April 20, 2022, 1:49 a.m. Nov. 25, 2022, 1:20 a.m. Nov. 23, 2022, 5:26 a.m. July 27, 2021, 2:41 p.m. Nov. 18, 2021, 6 a.m. Aug. 16, 2021, 2:53 a.m. July 9, 2022, 12:58 p.m. June 26, 2022, 8:23 a.m.
Version 0.13.4 0.7.1 4.5.1 0.18.2 0.11.0 0.0.7 2.1 0.5.3 0.3.2 1.2.2
Repo GitHub GitHub GitHub GitHub GitHub GitHub GitHub GitHub GitHub GitHub
Commits
Stars 2,695 1,173 915 334 209 212 165 53 27 24
Repo Forks 451 155 197 21 14 36 45 16 4 7
Participants craigds
matthiask
claudep
jdufresne
BertrandBordage
musashiXXX
michael-k
felixxm
karabijavad
olivierdalang
more...
pydanny
auvipy
gregmuellegger
arthur-wsw
audreyfeldroy
dbrgn
andrewsmedina
ludw
galuszkak
AndrewIngram
more...
tabo
jrief
johanneswilm
solarissmoke
jjdelc
maiksprenger
mvantellingen
jaap3
JamesMaroney
fladi
more...
fabiocaccamo
jvacek
dependabot[bot]
cperrin88
github-actions[bot]
pre-commit-ci[bot]
matthiask
SafaAlfulaij
rhomboss
jameelhamdan
robinedwards
whatSocks
MattGalvis
nossila
biwin
devinbarry
EvdH0
adriancarayol
vdboor
smcoll
gannettchad
vinnyrose
njamaleddine
singleton11
stasfilin
bashu
jpotterm
jorgebg
more...
mariocesar
boryszef
ramonsaraiva
ovangle
bctcvai
ThomasPinna
opentyler
OmenApps
jinglinz
worsht
alyjak
jacklinke
idlesign
int-ua
telmobarros
Documentation n/a n/a n/a
Type: Adjacency list   (based on django-mptt)
Type: Nested set
Type: Materialized path   (based on django-mptt)
Uses native graph storage   (based on django-mptt)
Admin contrib support
Drop-in
Type: Directed Acyclic Graph
Type: Closure Table
Dependency Free   mptt   NetworkX for exports, PostgreSQL
Type: Edge list
Search Weight Package Description Last PyPI release: Repo Forks Stars
{{ item.weight / max_weight * 100 | number:0 }}% {{ item.title }} Grid: {{ item.description }} {{ item.last_released | date: 'mediumDate' }} N/A {{ item.repo_forks }} N/A {{ item.repo_watchers }} N/A