Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

UNKNOWN

Project description

Simple dependency tree builder, handles forward and reverse dependencies, returning an ordered tree with its nodes ordered from root towards leafs.

Example:

>>> from disentangler import Disentangler
>>> inst = Disentangler.new()
>>> inst.add('a', {})
>>> inst.add('b', {'depends_on': ['d', 'c']})
>>> inst.add('c', {})
>>> inst.add('d', {'depends_on': ['a']})
>>> ordered = inst.solve()
>>> print(ordered)
OrderedDict([('a', {}),
             ('c', {}),
             ('d', {'depends_on': ['a']}),
             ('b', {'depends_on': ['d', 'c']})])

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for disentangler, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size disentangler-1.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View
Filename, size disentangler-1.0.zip (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page