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.

Filter results

Package django-mptt django-treebeard django-treenode django-admin2 django-tree-queries django-neomodel django-postgresql-dag django-admirarchy django-ltree django-fast-treenode django-polymorphic-tree
Package django-mptt django-treebeard django-treenode django-admin2 django-tree-queries django-neomodel django-postgresql-dag django-admirarchy django-ltree django-fast-treenode django-polymorphic-tree
Description Utilities for implementing a
modified pre-order traversal
tree in django.
Efficient tree implementations
for Django
:deciduous_tree: probably the
best abstract model/admin for
your tree based stuff.
Extendable, adaptable rewrite
of django.contrib.admin
Adjacency-list trees for
Django using recursive common
table expressions. Supports
PostgreSQL, sqlite, MySQL and
MariaDB.
Neomodel plugin for Django 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.
An ltree extension
implementation to support
hierarchical tree-like data
using the native Postgres
extension ltree in django
models
Polymorphic MPTT tree support
for models
Category App App App App Other App App App App App App
# Using This 111 26 2 8 2 1 1 2 0 1 4
Python 3?
Development Status Production/Stable Production/Stable Production/Stable Alpha Unknown Beta Alpha Production/Stable Beta Unknown Production/Stable
Last updated Sept. 27, 2023, 4:15 a.m. Oct. 4, 2023, 4:05 a.m. Oct. 2, 2023, 4:15 p.m. Oct. 22, 2021, 11:46 a.m. Sept. 19, 2023, 2:06 a.m. Aug. 21, 2023, 8:33 a.m. July 9, 2022, 12:58 p.m. June 26, 2022, 8:23 a.m. Aug. 16, 2021, 2:53 a.m. July 4, 2023, 5:38 p.m. Nov. 18, 2021, 6 a.m.
Version 0.15.0 4.7 0.20.1 0.7.1 0.15.0 0.1.1 0.4.0 1.2.2 0.5.3 1.1.1 2.1
Repo GitHub GitHub GitHub GitHub GitHub GitHub GitHub GitHub GitHub GitHub GitHub
Commits
Stars 2,776 1,002 496 1,177 309 247 34 25 55 7 170
Repo Forks 460 208 26 153 20 50 5 8 15 2 45
Participants craigds
matthiask
claudep
jdufresne
BertrandBordage
musashiXXX
michael-k
felixxm
karabijavad
olivierdalang
more...
tabo
jrief
solarissmoke
johanneswilm
jjdelc
maiksprenger
mvantellingen
jaap3
JamesMaroney
fladi
more...
fabiocaccamo
github-actions[bot]
dependabot[bot]
jvacek
pre-commit-ci[bot]
cperrin88
Nathan-Cohen
pydanny
auvipy
gregmuellegger
arthur-wsw
dbrgn
andrewsmedina
audreyfeldroy
ludw
galuszkak
AndrewIngram
more...
matthiask
SafaAlfulaij
rhomboss
olivierdalang
taobojlen
bryanculver
robinedwards
whatSocks
mariusconjeaud
MattGalvis
nossila
biwin
devinbarry
EvdH0
adriancarayol
gwagstaff
OmenApps
jinglinz
worsht
alyjak
jacklinke
idlesign
int-ua
telmobarros
mariocesar
boryszef
ramonsaraiva
ovangle
bctcvai
ThomasPinna
opentyler
TimurKady vdboor
smcoll
gannettchad
vinnyrose
njamaleddine
singleton11
stasfilin
bashu
jpotterm
jorgebg
more...
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   NetworkX for exports, PostgreSQL   mptt
Type: Edge list

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&#x27;t require building models using utils provided within package.<br>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<br>node to a child node?
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