python-dependency-resolver
Install
From PyPI
pip install python-dependency-resolver
From source
rm build/ python_dependency_resolver.egg-info dist -Rf
python3 setup.py bdist_wheel
pip3 install -I dist/python_dependency_resolver-*-py3-none-any.whl
How to use
Use case 1
flowchart TD
B --> A
C --> A
C --> B
D --> C
D --> A
E --> C
E --> B
F --> G
from python_dependency_resolver import DependencyResolver
tree = {
'A': [],
'B': ['A'],
'C': ['B', 'A'],
'D': ['C', 'A'],
'E': ['C', 'B'],
'F': ['G'],
'G': []
}
dependency_resolver = DependencyResolver()
dependency_resolver.resolve(tree)
# ['A', 'B', 'C', 'D', 'E', 'G', 'F']
Use case 2
flowchart TD
B --> A
A --> B
from python_dependency_resolver import DependencyResolver
tree = {
'A': ['B'],
'B': ['A']
}
dependency_resolver = DependencyResolver()
dependency_resolver.resolve(tree)
# CircularReferenceException: Circular reference detected: B -> A
Use case 3
flowchart TD
B --> A
C --> A
from python_dependency_resolver import DependencyResolver
tree = {
'B': ['A'],
'C': ['A'],
#'A': ()
}
dependency_resolver = DependencyResolver()
dependency_resolver.resolve(tree)
# MissingReferenceException: Missing reference detected: A
Documentation
- https://www.electricmonk.nl/log/2008/08/07/dependency-resolving-algorithm/
- http://mamchenkov.net/wordpress/2016/11/22/dependency-resolution-with-graphs-in-php/
Contributors
Anthony K GROSS
Joshua Behrens
Copyright and license
Code and documentation copyright 2024. Code released under the MIT license.
Metadata
Release files for python-dependency-resolver 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_dependency_resolver-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for python_dependency_resolver-1.0.4-py3-none-any.whl |
Release files / python_dependency_resolver-1.0.4-py3-none-any.whl
| Download URL | python_dependency_resolver-1.0.4-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfc42431ca3bd1362c9cee13b40e1b974042a4a850b4724ffa89313f87b938a7
|
|
BLAKE2b-256 checksum How to use checksums |
4722f22794c76d5c4b8edf020dedd9b5854eb254ea3acd2df37d864467efc266
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 17, 2024.
Transparency logSecurity for python-dependency-resolver 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 1 file in this release has been uploaded with provenance metadata.
Attestation for python_dependency_resolver-1.0.4-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 17, 2024.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.