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
git clone https://gitlab.com/hyhyniak.victor/dep_graph.git
cd dep_graph
pip install .
WIP approach: 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)
Unit Tests
Run tests
$ python -m unittest discover
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
dep_graph_vh-0.0.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for dep_graph_vh-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f190f7d114f7ea6d132ca019b7b2e1ecf30039f93249fde8b2c386c596312cd |
|
MD5 | 54240e1608dd20e53a1285dc4d02551a |
|
BLAKE2b-256 | 7fb63369427e5e7f86d1b6b44fa724a3c6d216180a866eeb58a146e3d38e86ac |