DepWarden for Python

The depwarden-cli PyPI package is a zero-dependency CLI (Python standard library only) that reads your lockfile, resolves the dependency graph, and streams results back from the API. It supports requirements.txt, Poetry, Pipenv and uv.

Prerequisites

Install and run

1. Install

pip install depwarden-cli

2. Set your API key

export APP_API_KEY=dw_xxxxxxxxxxxxxx

3. Run a scan

depwarden

# Specify a lockfile if auto-detection fails:
depwarden --manifest-file poetry.lock

4. Add to a tox / CI step

pip install depwarden-cli
depwarden --formats html,pdf --fail-on-error true

Configuration

Failing the build

The CLI follows the server-side gate verdict (driven by your workspace's Policy rules) rather than a client-side severity threshold: it exits 1 when the gate result is "fail". Pass --fail-on-error false to run advisory-only and never block the build.

Report formats

Every scan can also export a CycloneDX SBOM.

Other plugins and integrations