PySentry - Scan your Python dependencies for known vulnerabilities. Built in Rust for performance, PySentry is fast, easy to use, and supports flexible output formats (Markdown, JSON, etc.).
Here are some examples π
# Install pysentry-rs using uv (or use pip install pysentry-rs)
$ uv add pysentry-rs
# Run a security scan on the current environment
$ pysentry-rs
# PYSENTRY SECURITY AUDIT
# =======================
#
# SUMMARY: 142 packages scanned β’ 11 vulnerable β’ 18 vulnerabilities found
#
# SEVERITY: 1 CRITICAL 17 LOW
#
# FIXABLE: 17 vulnerabilities can be fixed by upgrading packages
# UNFIXABLE: 1 vulnerabilities cannot be fixed
#
# VULNERABILITIES
# ---------------
#
# 1. PYSEC-2022-42992 gitpython v3.1.24 [CRITICAL] [source: pypa-zip]
# All versions of package gitpython are vulnerable to Remote Code Execution (RCE) due to improper user input validation...
# β Fix: Upgrade to 3.1.30+~
# ...
# Export the scan results in markdown format to security-report.md
$ pysentry-rs --format markdown --output security-report.md