Skip to main content


Project description

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


>>> from disentangler import Disentangler
>>> inst =
>>> 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

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
disentangler-1.0.tar.gz (3.0 kB) Copy SHA256 hash SHA256 Source None (5.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page