Skip to main content

Directed Acyclic Graph implementation for Django & Postgresql

Project description

Django & Postgresql-based Directed Acyclic Graphs

The main distinguishing factor for this project is that it can retrieve entire sections of a graph with far fewer queries than most other packages. The trade off is portability: it uses Postgres' Common Table Expressions (CTE) to achieve this and is therefore not compatible with other databases.

NOTE: Not all methods which would benefit from CTEs use them yet.

NOTE: This project is a work in progress. Again, this project is a work in progress. While functional, it is not optimized and not yet stable. Lots of changes are happening weekly. Expect it to stabilize by the end of 2020.

Currently, it provides numerous methods for retrieving nodes, and a few for retrieving edges within the graph. In progress are filters within the in order to limit the area of the graph to be searched, ability to easily export to NetworkX, and other improvements and utilities.

Demo

Quickstart example

ToDo

  • Describe methods of filtering nodes and edges within the CTE.
  • Finish creating proper docs.

Credits:

  1. This excellent blog post
  2. django-dag
  3. django-dag-postgresql
  4. django-treebeard-dag

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-postgresql-dag-0.0.22.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

django_postgresql_dag-0.0.22-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file django-postgresql-dag-0.0.22.tar.gz.

File metadata

  • Download URL: django-postgresql-dag-0.0.22.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

File hashes

Hashes for django-postgresql-dag-0.0.22.tar.gz
Algorithm Hash digest
SHA256 20fe37fbb6fceed0a08e09e04c27ddea539c6d61a5114d7835f5a3ad48eefaa8
MD5 37873c88cd3d21ed9f4778e504b32a81
BLAKE2b-256 130d12ea03ad837b23d6459c5f873648340ddf6a508628d4bf97344162be01c5

See more details on using hashes here.

Provenance

File details

Details for the file django_postgresql_dag-0.0.22-py3-none-any.whl.

File metadata

  • Download URL: django_postgresql_dag-0.0.22-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

File hashes

Hashes for django_postgresql_dag-0.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 1dba508b1edcd7e5052171fa89ada09c0c9118b13732e682a3721bfbd8cb009d
MD5 9f63334c3ca7b884cbc9e46a6fa54a64
BLAKE2b-256 bc7ada356342879c473aa97149c062fec5ebb0af02c87210be7c7dada636ef2f

See more details on using hashes here.

Provenance

Supported by

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