Skip to main content

Pants plugin to export repository dependency graph.

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

pants-plugin-dep-graph-1.0.3.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

pants_plugin_dep_graph-1.0.3-py3-none-any.whl (5.4 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