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 details)

Uploaded Source

Built Distribution

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

pants_plugin_dep_graph-1.0.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file pants-plugin-dep-graph-1.0.3.tar.gz.

File metadata

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

File hashes

Hashes for pants-plugin-dep-graph-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6e73bd7d14b9fcbc59b6b0e3a971f836ca56715f8a169e31304a8e22ea9817d2
MD5 d9092b7b0b2eff9a4e19cfd272f773f2
BLAKE2b-256 a1c958e5aa78f14ef616b8a3e45d015fe3bca8b4f1fce5fa8e97847fc06589e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pants_plugin_dep_graph-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4720fbf419ff863109c85077f7db48fe8a5b9a63a278ed24901c9e7b4961bd00
MD5 ef95abb90bc12ee3a581e09922fc86ce
BLAKE2b-256 6fcc3467b6957bb897321a4839f8146c88006eb4c4c0bfd15849537e13dd84fc

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