safety

Check Python dependencies for known security vulnerabilities

brewmacoslinux
Try with needOr install directly
Source

About

Checks Python dependencies for known vulnerabilities and suggests remediations

Commands

safety

Examples

scan project for vulnerable python packages$ safety check
check requirements file for security issues$ safety check --file requirements.txt
scan installed packages in current environment$ safety check --stdin < requirements.txt
find vulnerabilities and show fixes for dependencies$ safety check --json
check specific python package versions for exploits$ safety check --db https://safetycli.com/json