django-dag 1.1
Directed Acyclic Graph implementation for Django 1.0+
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 hosted on github (see the "home page" link in this page) 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)
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| django-dag-1.1.tar.gz (md5) | Source | 2011-02-14 | 3KB | 404 | |
- Author: Alessandro Pasotti
- Home Page: https://github.com/elpaso/django-dag
- License: GNU Affero General Public License v3
-
Categories
- Development Status :: 4 - Beta
- Environment :: Web Environment
- Framework :: Django
- Intended Audience :: Developers
- License :: OSI Approved :: GNU Affero General Public License v3
- Operating System :: OS Independent
- Programming Language :: Python
- Topic :: Software Development :: Libraries
- Topic :: Utilities
- Package Index Owner: elpaso
- DOAP record: django-dag-1.1.xml
