Skip to main content

Directed Acyclic Graph implementation for Django & Postgresql

Project description

codecov PyPI last commit Documentation Status made-with-python

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.1.9.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

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

django_postgresql_dag-0.1.9-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-postgresql-dag-0.1.9.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for django-postgresql-dag-0.1.9.tar.gz
Algorithm Hash digest
SHA256 59b44dc1df95693806ff3a7cb36aba13d78bed99d221cd7cbc8604e04a95b088
MD5 d258f87d9c636ea27bd753c87612bda4
BLAKE2b-256 e6368db3b7b2d30f511964ae1e25982698152f3b1841f6ce9f92ab5f1bd6ffc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_postgresql_dag-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for django_postgresql_dag-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 977aa477d4e11549913d343a15e1c4882e29a3c63710a2d793b861c24a4bb364
MD5 507b381de0a49096ca46790cd161c4d3
BLAKE2b-256 81c8e8b79314e248699fc46d36953565a9fb9c4b1b396e681267ced23f7fde48

See more details on using hashes here.

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