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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
disentangler-1.0.zip
(5.0 kB
view details)
disentangler-1.0.tar.gz
(3.0 kB
view details)
File details
Details for the file disentangler-1.0.zip
.
File metadata
- Download URL: disentangler-1.0.zip
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21c31fda17a2a816fc0a1dcce3f1aceb10b4f4697fec15617ae62fb9af0d330c |
|
MD5 | 9a15b41fb2982f7c80c8446c535b49fd |
|
BLAKE2b-256 | 300e8262fc8c8c1bf64d41191aae70139012ca304b2b3d99768e0fb44efcd9ee |
File details
Details for the file disentangler-1.0.tar.gz
.
File metadata
- Download URL: disentangler-1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3b94a51c5611b8207dd4328e4cb6b9119db7db7fe101e4308f14010db9d39ce |
|
MD5 | e6e0f937ca67c5ec552ab1e1721608be |
|
BLAKE2b-256 | d2209a8c0d085f7710b462636d074c9924b183ec5cb1ebbc3ab273f1b0d1de75 |