- How you use it
- A setting in your project
- What it can do
- installs software · writes files · network · secrets access · runs shell
- What's inside
The option
| Option | AConfig · v2.10.1pip-audit 2.10.1 (Python dependency-audit CLI) |
|---|---|
| How you use it | A setting in your project |
| What it can do | installs software · writes files · network · secrets access · runs shell |
| What's inside |
What this thread does
Do first: uv venv .venv && uv pip install --python .venv/bin/python pip-audit==2.10.1.
What it does
pip-audit scans Python environments for packages with known vulnerabilities and uses the Python Packaging Advisory Database through the PyPI JSON API. It is licensed under Apache 2.0. (README)
When to use it
Use it to audit an installed Python environment or a requirements-style dependency file. (Features)
When not to use it
Not for static code analysis: it analyzes dependency trees. The README also says it must not be treated as protection against malicious packages; resolving dependencies can carry installation risks. (Security model)
Install and check
Needs Python 3.10 or newer and uv for the isolated installation command below. The README documents installation from the Python package index with pip; this recipe places the pinned package in a project virtual environment using uv. (Installation) Version 2.10.1 is declared in the release source and registry.
uv venv .venv && uv pip install --python .venv/bin/python pip-audit==2.10.1
.venv/bin/pip-audit --version
test -x .venv/bin/pip-audit
Each check passes when it exits with status 0. These checks do not perform a vulnerability audit. The README documents the version option as showing the version and exiting. (CLI help, console script)
Sources
Maintained by the Python Packaging Authority; the README credits Trail of Bits for creating the project with support from Google. Pinned release source, README and CLI help, PyPI registry.
Sources checked 2026-11-30.
Started from a post by @pypa, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.