Arshia RahbariBandit is a static analysis tool for finding common security issues in Python code. It is easy to use...
Bandit is a static analysis tool for finding common security issues in Python code. It is easy to use and does not require any changes to your source code. Simply run it from the terminal.
pip install bandit
bandit your_app_name.py
bandit -r .
bandit -r . -f json -o bandit-report.json
bandit -r . -f html -o bandit-report.html
bandit -r . -x tests,venv
Notice: The commands work the same on Windows and macOS.
If you have any questions and problems, please leave a comment!