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.5.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

bandit-1.7.5-py3-none-any.whl (123.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bandit-1.7.5.tar.gz
Algorithm Hash digest
SHA256 bdfc739baa03b880c2d15d0431b31c658ffc348e907fe197e54e0389dd59e11e
MD5 4a6632a03fb3c43b185256828216cd43
BLAKE2b-256 5e67997278e785edf155bd57163ae7030f979a0907857365cb30815d93b5354b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bandit-1.7.5-py3-none-any.whl
  • Upload date:
  • Size: 123.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for bandit-1.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 75665181dc1e0096369112541a056c59d1c5f66f9bb74a8d686c3c362b83f549
MD5 045a649c27e345187e1f5c231fdc8691
BLAKE2b-256 0237e06b8f1e2d45a2fe43ec80c4591d963b7bc1f351e6e1b8c094350d03b973

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