Simple dependency graph resolver with JSON input
Project description
Simple dependency graph resolver
Description
This is a simple graph dependency resolver.
It can parse dependencies in json files from the provided or default system-specific location
(/tmp/deps.json or C:\tmp\deps.json).
Parsed dependencies can be transformed into a fully resolved dedicated DependencyGraph object
that later may be converted into a string representation.
Installation
pip install dep_graph_vh
Usage
Print graph from default location:
python -m dep_graph_vh
Obtain a fully resolved dependency graph object from the provided or default location:
import dep_graph_vh as dg
dg.get_graph(file_location) # from specific location
dg.get_graph() # from default system-dependent
Print dependency graph object:
import dep_graph_vh as dg
graph = dg.get_graph()
dg.print_dep_graph(graph)
Development
git clone https://gitlab.com/hyhyniak.victor/dep_graph.git
cd dep_graph
pip install -e .
pip install -r dev_requirements.txt
Tests and Quality Assurance
python -m unittest
mypy .
pylint dep_graph_vh test
Build, deploy to PyPI and GitLab release
Will be done as part of the CI pipeline after (and only after) new tag creation:
- Bump up the library version in
pyproject.toml - create a new tag (e.g.
3.0.1)
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dep_graph_vh-1.0.0.tar.gz.
File metadata
- Download URL: dep_graph_vh-1.0.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88e7cc0cbe51ad29bb0c71918d2f930ab0a869a3a8851bf762c7205c9f286e09
|
|
| MD5 |
f9e1c7e7e49e00af6063f41fc967d9af
|
|
| BLAKE2b-256 |
b82b56801d3665041c7f471517c45de7ef4f6b96807842e1f3f8f954fe9617ce
|
File details
Details for the file dep_graph_vh-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dep_graph_vh-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b99498eb300df199cb16a8ad83cd0a9f0f81e79bb5292b37f7b5532446f1be2
|
|
| MD5 |
ec0fa3337fb79a3a6e71047de2689855
|
|
| BLAKE2b-256 |
b95f902d9811c2213d310fb1da4e3d6d4746946835383d0e0d0e7c49342ada1f
|