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.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dep_graph_hassan-1.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file dep_graph_hassan-1.0.1.tar.gz.

File metadata

  • Download URL: dep_graph_hassan-1.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for dep_graph_hassan-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d1a1d0fc4b6c398f5ec1d2c12cafec7f9ea88e0c3fcf6a661be99cdaff2e7304
MD5 2077f47030f5a9890bb309e5149eac60
BLAKE2b-256 071d62aea85e7de5bc809705f4f0e4569cac2550bc1617adfb394f32f45228a3

See more details on using hashes here.

File details

Details for the file dep_graph_hassan-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dep_graph_hassan-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc6eae0cc158354f05b4eb5fe4c16a10a1c6369361daeb468d503e33fed2fd89
MD5 bc523d0da153fd2ef7e6c70722f6c532
BLAKE2b-256 0eb6193301eb2e4a7b2e308c303f514b3463d071fa3834a330908227ed81a4b8

See more details on using hashes here.

Supported by

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