bandit

Security-oriented static analyser for Python code vulnerabilities

brewmacoslinux
Try with needOr install directly
Source

About

Security-oriented static analyser for Python code

Commands

bandit

Examples

Scan a single Python file for security issues$ bandit myfile.py
Scan entire directory recursively with severity reporting$ bandit -r /path/to/project
Generate JSON report and exclude specific test directories$ bandit -r /path/to/project -f json -o report.json --exclude /tests