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
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
Close
Hashes for dep-graph-analytics-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8da80c85ef8e35cd6cb7e347c9ba70d82d7857c3d95d07e0654ec8b953a4dfd |
|
MD5 | 456f017e1d81e284f11811decbc8d695 |
|
BLAKE2b-256 | feaf1181d7b77b6c403ac6c3fde0dace79e413317dd93e77594dcb51727c6729 |
Close
Hashes for dep_graph_analytics-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6803fc7573303ba070de71e581e67a595a3a3357df4549b9cdaed27faf99b471 |
|
MD5 | ae3a961c51d2c0ef9d8435468388d194 |
|
BLAKE2b-256 | df86be14080e12b0b4cba9ab4f80a0be22bd934825e7e59d1d518e8bcdb525ab |