A common dependencies checker/resolver.
Project description
dependency-inspector
A common dependencies checker/resolver.
- Github repository: https://github.com/MrLYC/DependencyInspector/
- Documentation https://mrlyc.github.io/DependencyInspector/
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7c435d29a7b9164f34dfdbf84bf7bd92c772cc0e4f447a9ee480069d2898671 |
|
MD5 | a69aa30dfea9bd779ccf2ffc89b1a83d |
|
BLAKE2b-256 | d5492bcc651bed9518b2826e80bc109266bbfcdda64eebae47017b3e785b7be6 |
File details
Details for the file dependency_inspector-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: dependency_inspector-0.2.2-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.3 Darwin/23.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e45a26fa3ce81d77764d36a6cca0f7f1716ee644f63d08f607750d3702022254 |
|
MD5 | 582dcd3523147559fff308627ce125bb |
|
BLAKE2b-256 | 262a2e725e68ffdeeeb5edb6a5958a4e16ab72205adca990b0bfd23f3547dda7 |