bandit
Security oriented static analyser for python code.
Install
bandit on PyPI
pip
pip install bandituv
uv add banditpoetry
poetry add banditPackage facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — PyYAML, stevedore, rich, colorama |
| Maintenance | actively maintained — 169 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: bandit-1.9.4-py3-none-any.whl
About bandit
from the package's own PyPI description — quoted content, verbatim
.. image:: https://raw.githubusercontent.com/pycqa/bandit/main/logo/logotype-sm.png :alt: Bandit
======
.. image:: https://github.com/PyCQA/bandit/actions/workflows/pythonpackage.yml/badge.svg?branch=main :target: https://github.com/PyCQA/bandit/actions?query=workflow%3A%22Build+and+Test+Bandit%22+branch%3Amain :alt: Build Status
.. image:: https://readthedocs.org/projects/bandit/badge/?version=latest :target: https://readthedocs.org/projects/bandit/ :alt: Docs Status
.. image:: https://img.shields.io/pypi/v/bandit.svg :target: https://pypi.org/project/bandit/ :alt: Latest Version
.. image:: https://img.shields.io/pypi/pyversions/bandit.svg :target: https://pypi.org/project/bandit/ :alt: Python Versions
.. image:: https://img.shields.io/pypi/format/bandit.svg :target: https://pypi.org/project/bandit/ :alt: Format
.. image:: https://img.shields.io/badge/license-Apache%202-blue.svg :target: https://github.com/PyCQA/bandit/blob/main/LICENSE :alt: License
.. image:: https://img.shields.io/discord/825463413634891776.svg :target: https://discord.gg/qYxpadCgkx :alt: Discord
A security linter from PyCQA
- Free...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Bandit is a security-focused static analyzer that scans Python code for common vulnerabilities by parsing the AST and running security-check plugins against it.
Low friction install with four stable runtime dependencies (PyYAML, stevedore, rich, colorama). Active maintenance with recent release and strong repository engagement indicate solid community backing.
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most organizational security workflows.
Usage
pip install bandit
python -m bandit -r /path/to/code
Requires Python 3.10 or later; bandit is a CLI tool primarily, not a library for programmatic import.
Verdict: Bandit is a mature, actively maintained security linter with no known vulnerabilities, permissive licensing, and low install friction. It is well-suited for teams seeking automated detection of common Python security issues in CI/CD pipelines or local development workflows.
Needs verification
- Whether the tool's plugin ecosystem and coverage of security checks meets your specific threat model.
- Performance characteristics on large codebases or whether AST parsing introduces unacceptable latency.
Similar packages
copyleft · top 1,000 on PyPI
flake8permissive · top 1,000 on PyPI
pycodestylepermissive · top 1,000 on PyPI
semgrepcopyleft · top 1,000 on PyPI
libcstpermissive · top 1,000 on PyPI
isortpermissive · top 1,000 on PyPI
pip-auditpermissive · top 1,000 on PyPI
asttokenspermissive · top 1,000 on PyPI
snowflake-snowpark-pythonpermissive · top 1,000 on PyPI
astroidcopyleft · top 1,000 on PyPI