Skip to main content

Python Application

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

Contributors

Anthony K GROSS

Joshua Behrens

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)

Table of built distributions (wheels) for python-dependency-resolver 1.0.4
File Interpreter ABI Platform Actions
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 log

Security 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 log

A 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.

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 release file Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page