Skip to main content

Django-dag is a small reusable app which implements a Directed Acyclic Graph.

Usage

Django-dag uses abstract base classes, to use it you must create your own concrete classes that inherit from Django-dag classes.

The dag_test app contains a simple example and a unit test to show you its usage.

Example:

class ConcreteNode(node_factory('ConcreteEdge')):
    """
    Test node, adds just one field
    """
    name = models.CharField(max_length = 32)

class ConcreteEdge(edge_factory(ConcreteNode, concrete = False)):
    """
    Test edge, adds just one field
    """
    name = models.CharField(max_length = 32, blank = True, null = True)

Tests

Unit tests can be run with just django installed at the base directory by running

python manage.py test

Release files for django-dag 1.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-dag 1.4.3
File Size Uploaded
django-dag-1.4.3.tar.gz 6.1 kB Details

Release files / django-dag-1.4.3.tar.gz

Download URL django-dag-1.4.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e5b003c2352be3ec80f983efde4a848533685a4039d0f5ce2e558553a8109e81
BLAKE2b-256 checksum
How to use checksums
c97426cb5bcc6235f68e9792684e441874cd4d9dbc90bf0db7f78bc932bbeaac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

1.4.3 This release

1 release file

1.4.2

1 release file

1.4.1

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page