Dependency Graph Resolution Package
Project description
dep_graph
A simple Python package for generating resolved dependency graphs from JSON files.
Running the Module
To run the module, use the following command:
python -m dep_graph
By default, the module will read the dependencies from /tmp/deps.json
.
To specify a different path to the dependencies, use the following command:
python -m dep_graph --path ./some_fir/deps.json
Creating a Dummy Dependency JSON File
To create a dummy dependency JSON file, use the following command:
python dep_graph/helper/create_dummy_file.py --path ./tests test_file.json
By default it outputs to /tmp/deps.json
Running Tests
To run the tests, use the following command:
python -m unittest discover tests/
Building the Package
You can build the package using either poetry or setup.py.
Method 1: Using Poetry
To build the package using poetry, use the following commands:
-
Create a virtual environment:
poetry install
-
Build the package:
poetry build
Method 2: Using setup.py
To build the package using setup.py, use the following command:
python setup.py sdist bdist_wheel
Installing Pre-commit Hooks
To install pre-commit hooks, use the following command:
pre-commit install
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
Hashes for dep_graph_hassan-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a73d411b73f6e061232f7438ef63b323cf2be93448810dce1e7b9c38c5b7edb |
|
MD5 | ac495734555d950b8437615582ebd36f |
|
BLAKE2b-256 | 6e132ba81c08947d67f556a7aac042a608c339ce8937d0eca1abc3ae89faab4f |