Skip to main content

A toolset to query codebase dependency graph data using networkx.

Project description

pants-dep-graph

Pants plugin to query and export repository dependency graph.

Enable the plugin in your Pants repository:

[GLOBAL]
plugins = ["pants-plugin-dep-graph==<release-version>"]

Examples

Export dependencies

# only for Python sources
pants dep-graph --filter-target-type=python_sources --deps src::

# for every target
pants dep-graph --deps src::

# for every target of source code nature
pants dep-graph --deps --sources-only src::

Export reverse dependencies (dependents)

# for every target
pants dep-graph --rdeps src::

# include in the list of dependents only targets of source code nature
pants dep-graph --deps --sources-only src::

Debugging

pants --print-stacktrace --no-local-cache --no-pantsd dep-graph --deps src::
pants --print-stacktrace --no-local-cache --no-pantsd dep-graph --rdeps src::

Analytics

Install

$ pip install dep-graph-analytics

Usage

$ dep-graph-analytics cycles tests/cycles.json
['src/moduleC.py', 'src/moduleA.py', 'src/moduleB.py']

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-analytics-1.0.3.tar.gz (2.4 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_analytics-1.0.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file dep-graph-analytics-1.0.3.tar.gz.

File metadata

  • Download URL: dep-graph-analytics-1.0.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for dep-graph-analytics-1.0.3.tar.gz
Algorithm Hash digest
SHA256 f8da80c85ef8e35cd6cb7e347c9ba70d82d7857c3d95d07e0654ec8b953a4dfd
MD5 456f017e1d81e284f11811decbc8d695
BLAKE2b-256 feaf1181d7b77b6c403ac6c3fde0dace79e413317dd93e77594dcb51727c6729

See more details on using hashes here.

File details

Details for the file dep_graph_analytics-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for dep_graph_analytics-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6803fc7573303ba070de71e581e67a595a3a3357df4549b9cdaed27faf99b471
MD5 ae3a961c51d2c0ef9d8435468388d194
BLAKE2b-256 df86be14080e12b0b4cba9ab4f80a0be22bd934825e7e59d1d518e8bcdb525ab

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