Skip to main content

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']

Metadata

Release files for pants-plugin-dep-graph 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pants-plugin-dep-graph 1.0.3
File Size Uploaded Provenance
pants-plugin-dep-graph-1.0.3.tar.gz 4.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pants-plugin-dep-graph 1.0.3
File Interpreter ABI Platform
pants_plugin_dep_graph-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / pants-plugin-dep-graph-1.0.3.tar.gz

Download URL pants-plugin-dep-graph-1.0.3.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6e73bd7d14b9fcbc59b6b0e3a971f836ca56715f8a169e31304a8e22ea9817d2
BLAKE2b-256 checksum
How to use checksums
a1c958e5aa78f14ef616b8a3e45d015fe3bca8b4f1fce5fa8e97847fc06589e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / pants_plugin_dep_graph-1.0.3-py3-none-any.whl

Download URL pants_plugin_dep_graph-1.0.3-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4720fbf419ff863109c85077f7db48fe8a5b9a63a278ed24901c9e7b4961bd00
BLAKE2b-256 checksum
How to use checksums
6fcc3467b6957bb897321a4839f8146c88006eb4c4c0bfd15849537e13dd84fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Security for pants-plugin-dep-graph 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page