Skip to main content

Security oriented static analyser for python code.

Project description

Bandit
Build Status Docs Status Latest Version Python Versions Format License Discord

A security linter from PyCQA

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 Shot

Show Your Style

Security Status

Use our badge in your project’s README!

using Markdown:

[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bandit-1.7.6.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

bandit-1.7.6-py3-none-any.whl (123.5 kB view details)

Uploaded Python 3

File details

Details for the file bandit-1.7.6.tar.gz.

File metadata

  • Download URL: bandit-1.7.6.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for bandit-1.7.6.tar.gz
Algorithm Hash digest
SHA256 72ce7bc9741374d96fb2f1c9a8960829885f1243ffde743de70a19cee353e8f3
MD5 94d37e6d94e32c09c743b60713ab8dfc
BLAKE2b-256 fa09049dff8b2fa7fc7cf82bd28999a3c97d55727d8235d0d8b3c95ff78b16fd

See more details on using hashes here.

File details

Details for the file bandit-1.7.6-py3-none-any.whl.

File metadata

  • Download URL: bandit-1.7.6-py3-none-any.whl
  • Upload date:
  • Size: 123.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for bandit-1.7.6-py3-none-any.whl
Algorithm Hash digest
SHA256 36da17c67fc87579a5d20c323c8d0b1643a890a2b93f00b3d1229966624694ff
MD5 ff999c20fb06c1a265653b4a8a3eb74a
BLAKE2b-256 ceaa0c4d99c662051645e566d62d4dd4691b1f4d9b1bf85f05eeb793c6c596a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page