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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc6eae0cc158354f05b4eb5fe4c16a10a1c6369361daeb468d503e33fed2fd89 |
|
MD5 | bc523d0da153fd2ef7e6c70722f6c532 |
|
BLAKE2b-256 | 0eb6193301eb2e4a7b2e308c303f514b3463d071fa3834a330908227ed81a4b8 |