bandit


Namebandit JSON
Version 1.7.8 PyPI version JSON
download
home_pagehttps://bandit.readthedocs.io/
SummarySecurity oriented static analyser for python code.
upload_time2024-03-08 19:25:56
maintainer
docs_urlNone
authorPyCQA
requires_python>=3.8
licenseApache-2.0 license
keywords
VCS
bugtrack_url
requirements PyYAML stevedore colorama rich
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. 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 software: Apache license
* Documentation: https://bandit.readthedocs.io/en/latest/
* Source: https://github.com/PyCQA/bandit
* Bugs: https://github.com/PyCQA/bandit/issues
* 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.

.. image:: https://raw.githubusercontent.com/pycqa/bandit/main/bandit-terminal.png
    :alt: Bandit Example Screen Shot

Show Your Style
---------------

.. image:: https://img.shields.io/badge/security-bandit-yellow.svg
    :target: https://github.com/PyCQA/bandit
    :alt: 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

Container Images
----------------

Bandit is available as a container image, built within the bandit repository
using GitHub Actions. The image is available on ghcr.io:

.. code-block:: console

    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:

.. code-block:: console

    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:

.. code-block:: console

    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.




            

Raw data

            {
    "_id": null,
    "home_page": "https://bandit.readthedocs.io/",
    "name": "bandit",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "PyCQA",
    "author_email": "code-quality@python.org",
    "download_url": "https://files.pythonhosted.org/packages/92/60/3f6e0e58f3f53bbb7227daf61654c9b22ff651e670e44cdc08a0f1d0f493/bandit-1.7.8.tar.gz",
    "platform": null,
    "description": ".. image:: https://raw.githubusercontent.com/pycqa/bandit/main/logo/logotype-sm.png\n    :alt: Bandit\n\n======\n\n.. image:: https://github.com/PyCQA/bandit/actions/workflows/pythonpackage.yml/badge.svg?branch=main\n    :target: https://github.com/PyCQA/bandit/actions?query=workflow%3A%22Build+and+Test+Bandit%22+branch%3Amain\n    :alt: Build Status\n\n.. image:: https://readthedocs.org/projects/bandit/badge/?version=latest\n    :target: https://readthedocs.org/projects/bandit/\n    :alt: Docs Status\n\n.. image:: https://img.shields.io/pypi/v/bandit.svg\n    :target: https://pypi.org/project/bandit/\n    :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/pyversions/bandit.svg\n    :target: https://pypi.org/project/bandit/\n    :alt: Python Versions\n\n.. image:: https://img.shields.io/pypi/format/bandit.svg\n    :target: https://pypi.org/project/bandit/\n    :alt: Format\n\n.. image:: https://img.shields.io/badge/license-Apache%202-blue.svg\n    :target: https://github.com/PyCQA/bandit/blob/main/LICENSE\n    :alt: License\n\n.. image:: https://img.shields.io/discord/825463413634891776.svg\n    :target: https://discord.gg/qYxpadCgkx\n    :alt: Discord\n\nA security linter from PyCQA\n\n* Free software: Apache license\n* Documentation: https://bandit.readthedocs.io/en/latest/\n* Source: https://github.com/PyCQA/bandit\n* Bugs: https://github.com/PyCQA/bandit/issues\n* Contributing: https://github.com/PyCQA/bandit/blob/main/CONTRIBUTING.md\n\nOverview\n--------\n\nBandit is a tool designed to find common security issues in Python code. To do\nthis Bandit processes each file, builds an AST from it, and runs appropriate\nplugins against the AST nodes. Once Bandit has finished scanning all the files\nit generates a report.\n\nBandit was originally developed within the OpenStack Security Project and\nlater rehomed to PyCQA.\n\n.. image:: https://raw.githubusercontent.com/pycqa/bandit/main/bandit-terminal.png\n    :alt: Bandit Example Screen Shot\n\nShow Your Style\n---------------\n\n.. image:: https://img.shields.io/badge/security-bandit-yellow.svg\n    :target: https://github.com/PyCQA/bandit\n    :alt: Security Status\n\nUse our badge in your project's README!\n\nusing Markdown::\n\n    [![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)\n\nusing RST::\n\n    .. image:: https://img.shields.io/badge/security-bandit-yellow.svg\n        :target: https://github.com/PyCQA/bandit\n        :alt: Security Status\n\nReferences\n----------\n\nPython AST module documentation: https://docs.python.org/3/library/ast.html\n\nGreen Tree Snakes - the missing Python AST docs:\nhttps://greentreesnakes.readthedocs.org/en/latest/\n\nDocumentation of the various types of AST nodes that Bandit currently covers\nor could be extended to cover:\nhttps://greentreesnakes.readthedocs.org/en/latest/nodes.html\n\nContainer Images\n----------------\n\nBandit is available as a container image, built within the bandit repository\nusing GitHub Actions. The image is available on ghcr.io:\n\n.. code-block:: console\n\n    docker pull ghcr.io/pycqa/bandit/bandit\n\nThe image is built for the following architectures:\n\n* amd64\n* arm64\n* armv7\n* armv8\n\nTo pull a specific architecture, use the following format:\n\n.. code-block:: console\n\n    docker pull --platform=<architecture> ghcr.io/pycqa/bandit/bandit:latest\n\nEvery image is signed with sigstore cosign and it is possible to verify the\nsource of origin using the following cosign command:\n\n.. code-block:: console\n\n    cosign verify ghcr.io/pycqa/bandit/bandit:latest \\\n      --certificate-identity https://github.com/pycqa/bandit/.github/workflows/build-publish-image.yml@refs/tags/<version> \\\n      --certificate-oidc-issuer https://token.actions.githubusercontent.com\n\nWhere `<version>` is the release version of Bandit.\n\n\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0 license",
    "summary": "Security oriented static analyser for python code.",
    "version": "1.7.8",
    "project_urls": {
        "Homepage": "https://bandit.readthedocs.io/",
        "Issue Tracker": "https://github.com/PyCQA/bandit/issues",
        "Release Notes": "https://github.com/PyCQA/bandit/releases",
        "Source Code": "https://github.com/PyCQA/bandit"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c28803935559af80b39cb64a00a4731d62ed2f79f4799c1758eadb01a4ef6b8d",
                "md5": "2085e8b509ced5009e30513ad35aa305",
                "sha256": "509f7af645bc0cd8fd4587abc1a038fc795636671ee8204d502b933aee44f381"
            },
            "downloads": -1,
            "filename": "bandit-1.7.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2085e8b509ced5009e30513ad35aa305",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 127633,
            "upload_time": "2024-03-08T19:25:54",
            "upload_time_iso_8601": "2024-03-08T19:25:54.618041Z",
            "url": "https://files.pythonhosted.org/packages/c2/88/03935559af80b39cb64a00a4731d62ed2f79f4799c1758eadb01a4ef6b8d/bandit-1.7.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "92603f6e0e58f3f53bbb7227daf61654c9b22ff651e670e44cdc08a0f1d0f493",
                "md5": "17d190c775437b91dfbf95c5cac0167d",
                "sha256": "36de50f720856ab24a24dbaa5fee2c66050ed97c1477e0a1159deab1775eab6b"
            },
            "downloads": -1,
            "filename": "bandit-1.7.8.tar.gz",
            "has_sig": false,
            "md5_digest": "17d190c775437b91dfbf95c5cac0167d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 1983678,
            "upload_time": "2024-03-08T19:25:56",
            "upload_time_iso_8601": "2024-03-08T19:25:56.173590Z",
            "url": "https://files.pythonhosted.org/packages/92/60/3f6e0e58f3f53bbb7227daf61654c9b22ff651e670e44cdc08a0f1d0f493/bandit-1.7.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-08 19:25:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PyCQA",
    "github_project": "bandit",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "PyYAML",
            "specs": [
                [
                    ">=",
                    "5.3.1"
                ]
            ]
        },
        {
            "name": "stevedore",
            "specs": [
                [
                    ">=",
                    "1.20.0"
                ]
            ]
        },
        {
            "name": "colorama",
            "specs": [
                [
                    ">=",
                    "0.3.9"
                ]
            ]
        },
        {
            "name": "rich",
            "specs": []
        }
    ],
    "tox": true,
    "lcname": "bandit"
}
        
Elapsed time: 0.22166s