bandit 1.9.4
pip install bandit
Released:
Security oriented static analyser for python code.
Navigation
Verified details
These details have been verified by PyPIProject links
Owner
GitHub Statistics
Maintainers
π Avatar for chair6 from gravatar.comchair6 π Avatar for ericwb from gravatar.com
ericwb π Avatar for tkelsey from gravatar.com
tkelsey
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache-2.0
- Author: PyCQA
- Requires: Python >=3.10
-
Provides-Extra:
yaml,toml,baseline,sarif,test
Classifiers
- Development Status
- Environment
- Intended Audience
- Operating System
- Programming Language
- Topic
Project description
π Build Status
π Docs Status
π Latest Version
π Python Versions
π Format
π License
π Discord
A security linter from PyCQA
Free software: Apache license
Documentation: https://bandit.readthedocs.io/en/latest/
Source: https://github.com/PyCQA/bandit
Contributing: https://github.com/PyCQA/bandit/blob/main/CONTRIBUTING.md
Overview
Bandit is a tool designed to find common security issues in Python code. To do this Bandit processes each file, builds an AST from it, and runs appropriate plugins against the AST nodes. Once Bandit has finished scanning all the files it generates a report.
Bandit was originally developed within the OpenStack Security Project and later rehomed to PyCQA.
π Bandit Example Screen ShotShow Your Style
π Security StatusUse our badge in your projectβs README!
using Markdown:
[](https://github.com/PyCQA/bandit)
using RST:
.. image:: https://img.shields.io/badge/security-bandit-yellow.svg :target: https://github.com/PyCQA/bandit :alt: Security Status
References
Python AST module documentation: https://docs.python.org/3/library/ast.html
Green Tree Snakes - the missing Python AST docs: https://greentreesnakes.readthedocs.org/en/latest/
Documentation of the various types of AST nodes that Bandit currently covers or could be extended to cover: https://greentreesnakes.readthedocs.org/en/latest/nodes.html
Container Images
Bandit is available as a container image, built within the bandit repository using GitHub Actions. The image is available on ghcr.io:
docker pull ghcr.io/pycqa/bandit/bandit
The image is built for the following architectures:
amd64
arm64
armv7
armv8
To pull a specific architecture, use the following format:
docker pull --platform=<architecture> ghcr.io/pycqa/bandit/bandit:latest
Every image is signed with sigstore cosign and it is possible to verify the source of origin using the following cosign command:
cosign verify ghcr.io/pycqa/bandit/bandit:latest \
--certificate-identity https://github.com/pycqa/bandit/.github/workflows/build-publish-image.yml@refs/tags/<version> \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Where <version> is the release version of Bandit.
Sponsors
The development of Bandit is made possible by the following sponsors:
|
π Mercedes-Benz |
π Tidelift |
π Stacklok |
If you also β€οΈ Bandit, please consider sponsoring.
Project details
Verified details
These details have been verified by PyPIProject links
Owner
GitHub Statistics
Maintainers
π Avatar for chair6 from gravatar.comchair6 π Avatar for ericwb from gravatar.com
ericwb π Avatar for tkelsey from gravatar.com
tkelsey
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache-2.0
- Author: PyCQA
- Requires: Python >=3.10
-
Provides-Extra:
yaml,toml,baseline,sarif,test
Classifiers
- Development Status
- Environment
- Intended Audience
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bandit-1.9.4.tar.gz.
File metadata
- Download URL: bandit-1.9.4.tar.gz
- Upload date:
- Size: 4.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b589e5de2afe70bd4d53fa0c1da6199f4085af666fde00e8a034f152a52cd628
|
|
| MD5 |
8327e573f5c99639aac3e9e2ab76e690
|
|
| BLAKE2b-256 |
aac30cb80dfe0f3076e5da7e4c5ad8e57bac6ac357ff4a6406205501cade4965
|
Provenance
The following attestation bundles were made for bandit-1.9.4.tar.gz:
Publisher:
publish-to-pypi.yml on PyCQA/bandit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bandit-1.9.4.tar.gz -
Subject digest:
b589e5de2afe70bd4d53fa0c1da6199f4085af666fde00e8a034f152a52cd628 - Sigstore transparency entry: 991359301
- Sigstore integration time:
-
Permalink:
PyCQA/bandit@92ae8b82fb422a639f0ed8d99e96cea769594e08 -
Branch / Tag:
refs/tags/1.9.4 - Owner: https://github.com/PyCQA
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@92ae8b82fb422a639f0ed8d99e96cea769594e08 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file bandit-1.9.4-py3-none-any.whl.
File metadata
- Download URL: bandit-1.9.4-py3-none-any.whl
- Upload date:
- Size: 134.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f89ffa663767f5a0585ea075f01020207e966a9c0f2b9ef56a57c7963a3f6f8e
|
|
| MD5 |
ebf71cb89ddebb8b95038eb581fdbdc8
|
|
| BLAKE2b-256 |
05a4a26d5b25671d27e03afb5401a0be5899d94ff8fab6a698b1ac5be3ec29ef
|
Provenance
The following attestation bundles were made for bandit-1.9.4-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on PyCQA/bandit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bandit-1.9.4-py3-none-any.whl -
Subject digest:
f89ffa663767f5a0585ea075f01020207e966a9c0f2b9ef56a57c7963a3f6f8e - Sigstore transparency entry: 991359385
- Sigstore integration time:
-
Permalink:
PyCQA/bandit@92ae8b82fb422a639f0ed8d99e96cea769594e08 -
Branch / Tag:
refs/tags/1.9.4 - Owner: https://github.com/PyCQA
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@92ae8b82fb422a639f0ed8d99e96cea769594e08 -
Trigger Event:
workflow_dispatch
-
Statement type:
