Skip to main content

Dependency Graph Resolution Package

Project description

dep_graph

PyPI version

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:

  1. Create a virtual environment:

     poetry install
    
  2. 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


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_hassan-1.0.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

dep_graph_hassan-1.0.0-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page