Skip to main content

pypi-blast-radius

Estimate the downstream impact of a specific PyPI package version — how many other projects would be affected if it had a vulnerability. It combines deps.dev direct/indirect dependent counts with an optional monthly-download figure into a single, conservative impact proxy you can use to rank findings.

The proxy is ranking evidence, not a precise affected-install count. PyPI does not expose reliable reverse-dependent download totals, so any such number is an estimate.

Install

pip install pypi-blast-radius

Library usage

from pypi_blast_radius import estimate_blast_radius

result = estimate_blast_radius("requests", "2.31.0", direct_downloads=1_000_000)
print(result["direct_dependent_count"])         # from deps.dev
print(result["indirect_dependent_count"])       # from deps.dev
print(result["estimated_transitive_downloads"]) # bounded proxy
print(result["total_impact_score"])             # downloads + proxy

If deps.dev has no data for the version, or inputs are missing, an empty dict is returned (never an exception).

CLI

pypi-blast-radius requests 2.31.0 --downloads 1000000
pypi-blast-radius requests 2.31.0 --json

How the proxy works

  • direct_dependent_count and indirect_dependent_count come straight from deps.dev.
  • estimated_transitive_downloads = direct_downloads * min(10, log1p(direct + 0.2*indirect) * 0.9) — indirect dependents are weighted lower, and the multiplier is capped at 10x so a huge dependent graph can't produce an absurd number.
  • Results are cached in-process; call clear_cache() to reset.

License

MIT

Metadata

Release files for pypi-blast-radius 0.1.0

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

Built distribution (wheel)

Table of built distributions (wheels) for pypi-blast-radius 0.1.0
File Interpreter ABI Platform Actions
pypi_blast_radius-0.1.0-py3-none-any.whl Python 3 none any Details for pypi_blast_radius-0.1.0-py3-none-any.whl

Release files / pypi_blast_radius-0.1.0-py3-none-any.whl

Download URL pypi_blast_radius-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
375df3a9bee88e211f2a3676b8715e8564d2c0eec8f66b14fa84267654e65eff
BLAKE2b-256 checksum
How to use checksums
be2f000a662cf3a257ca25942aaaff23434c16f8fbc09c1907d88b4a5f3fb6d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Security for pypi-blast-radius 0.1.0

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

0.1.0 This release

1 release file 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