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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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