Skip to main content

assurance-deps

PyPI Tests Python License

What will pip install / npm install execute on your machine — read without running it?

Install

pip install assurance-deps
# or: pip install assurance   # every tool

Quick start

Point at a requirements file with no local wheels (real output):

$ assurance deps /tmp/deps-demo/requirements.txt
requirements.txt — 1 requirement, 0 read in full

Could not be examined at all (1):
  · requests               no archive for it under /tmp/deps-demo, /tmp/deps-demo/wheels and the network was never opened

Nothing was read, so nothing is reported about install-time code. This is silence, not a pass.

No lockfile beside the manifest, so the transitive tree was not compared.

This says what an install will run, not whether running it is acceptable — that is your call. Nothing here was executed, no advisory database was consulted, and the network was never opened.

Not looked for: how new any of this is. A package name an AI invented and somebody then
registered is new by definition, and nothing here reads a publish date — so a name that
appeared last week and one that has been on the index for a decade look identical to
these four checks.

As a library:

from pathlib import Path
import tempfile

from assurance_deps.scan import scan_manifest
from assurance_deps.report import format_report, report_to_dict

folder = Path(tempfile.mkdtemp())
(folder / "requirements.txt").write_text(
    "requests==2.31.0\n"
    "git+https://github.com/example/thing@main#egg=thing\n",
    encoding="utf-8",
)

report = scan_manifest(folder / "requirements.txt")

assert report.total == 2
assert report.examined == 0
assert report.complete is False
assert [u.name for u in report.unexamined] == ["requests", "thing"]
assert [r.name for r in report.off_index] == ["thing"]
assert "not pinned to a commit" in report.off_index[0].note

text = format_report(report)
assert "Could not be examined at all (2)" in text
assert "This is silence, not a pass." in text

payload = report_to_dict(report)
assert payload["claims"] == {
    "executed_anything": False,
    "consulted_an_advisory_database": False,
    "opened_the_network": False,
    "says_whether_this_is_safe": False,
}

What it checks

  • Install hooks (setup.py, PEP 517 backend, npm preinstall/install/postinstall/prepare)
  • Native binaries inside archives (.so, .dylib, .dll, .node, .pyd)
  • Non-registry sources (git URLs, direct archives, local paths)
  • Transitive delta vs a lockfile
  • What it could not examine, at the same weight as findings

In CI

exit means
0 scanned; no install-hook / binary / off-index findings
1 hooks, startup hooks, off-index sources, or unexamined requirements
2 manifest could not be read

Limits

  • Offline. No network, no advisory DB — publish-date / typosquat age is invisible here and the report says so.
  • Never executes what it reads (AST / listing only).
  • Unknown file shapes are refused, not line-parsed into fake package counts.
  • npm prepare on a registry tarball is not counted as install-time code (npm does not run it there).

See the root README and CHANGELOG.md.

Metadata

Release files for assurance-deps 0.2.5

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

Source distribution (sdist)

Source distribution for assurance-deps 0.2.5
File Size Uploaded Provenance Actions
assurance_deps-0.2.5.tar.gz 54.4 kB With provenance Details for assurance_deps-0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for assurance-deps 0.2.5
File Interpreter ABI Platform Actions
assurance_deps-0.2.5-py3-none-any.whl Python 3 none any Details for assurance_deps-0.2.5-py3-none-any.whl

Total release size: 91.2 kB

Release files / assurance_deps-0.2.5.tar.gz

Download URL assurance_deps-0.2.5.tar.gz
Size 54.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cd518cce32953af210f0b2541a00feb7d2edcf13074f023a8f4b4322f302b546
BLAKE2b-256 checksum
How to use checksums
008056e898a8ee3a1f73a449917fa703c051af48c7134fd053f87bdc8de09e8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / assurance_deps-0.2.5-py3-none-any.whl

Download URL assurance_deps-0.2.5-py3-none-any.whl
Size 36.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2a7eed8b12196f10c24fe0553f4986264694fe0eaca75a93311ca4039e67b13
BLAKE2b-256 checksum
How to use checksums
84359d38ea3d7c2f621e3228f28086a82782323b1cd4bc337e649b27e9ab90f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for assurance-deps 0.2.5

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for assurance_deps-0.2.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

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.

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