Skip to main content

A common dependencies checker/resolver.

Project description

dependency-inspector

Release Build status codecov Commit activity License

A common dependencies checker/resolver.

Installation

pip install dependency-inspector

Getting started

Assuming you have two interdependent services, write the dependencies into artifact.yaml in the following format:

name: app-frontend
version: "1.1.2"
dependencies:
  - name: app-backend
    version: "1.x.x"
---
name: app-backend
version: "1.0.1"
dependencies:
  - name: app-frontend
    version: ">1.0"
---
name: app-backend
version: "1.0.10"
dependencies:
  - name: app-frontend
    version: ">1.1"

Run this command to resolve the dependencies:

dependency_inspector --artifacts artifact.yaml      

The output is:

--- Dependency Graph ---
* --> app-frontend, app-backend
app-frontend --> app-backend
app-backend --> app-frontend

--- Resolution ---
app-frontend==1.1.2
app-backend==1.0.10

--- Artifacts ---
dependencies:
- enabled: true
  name: app-backend
  version: ~=1.0.10
name: app-frontend
version: 1.1.2
---
dependencies:
- enabled: true
  name: app-frontend
  version: ~=1.1.2
name: app-backend
version: 1.0.10

Project details


Download files

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

Source Distribution

dependency_inspector-0.2.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

dependency_inspector-0.2.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file dependency_inspector-0.2.2.tar.gz.

File metadata

  • Download URL: dependency_inspector-0.2.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.3 Darwin/23.0.0

File hashes

Hashes for dependency_inspector-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c7c435d29a7b9164f34dfdbf84bf7bd92c772cc0e4f447a9ee480069d2898671
MD5 a69aa30dfea9bd779ccf2ffc89b1a83d
BLAKE2b-256 d5492bcc651bed9518b2826e80bc109266bbfcdda64eebae47017b3e785b7be6

See more details on using hashes here.

File details

Details for the file dependency_inspector-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dependency_inspector-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e45a26fa3ce81d77764d36a6cca0f7f1716ee644f63d08f607750d3702022254
MD5 582dcd3523147559fff308627ce125bb
BLAKE2b-256 262a2e725e68ffdeeeb5edb6a5958a4e16ab72205adca990b0bfd23f3547dda7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page