bandit


Namebandit JSON
Version 1.8.0 PyPI version JSON
download
home_pagehttps://bandit.readthedocs.io/
SummarySecurity oriented static analyser for python code.
upload_time2024-11-27 01:37:25
maintainerNone
docs_urlNone
authorPyCQA
requires_python>=3.9
licenseApache-2.0 license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
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.

Sponsors
--------

The development of Bandit is made possible by the following sponsors:

.. list-table::
   :width: 100%
   :class: borderless

   * - .. image:: https://github.githubassets.com/assets/tidelift-8cea37dea8fc.svg
          :target: https://tidelift.com/lifter/search/pypi/bandit
          :alt: Tidelift
          :width: 88

     - .. image:: https://avatars.githubusercontent.com/u/110237746?s=200&v=4
          :target: https://stacklok.com/
          :alt: Stacklok
          :width: 88

If you also ❤️ Bandit, please consider sponsoring.




            

Raw data

            {
    "_id": null,
    "home_page": "https://bandit.readthedocs.io/",
    "name": "bandit",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "PyCQA",
    "author_email": "code-quality@python.org",
    "download_url": "https://files.pythonhosted.org/packages/57/c3/bea54f22cdc8224f0ace18b2cf86c6adf7010285d0ed51b703af9910c5b2/bandit-1.8.0.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\nSponsors\n--------\n\nThe development of Bandit is made possible by the following sponsors:\n\n.. list-table::\n   :width: 100%\n   :class: borderless\n\n   * - .. image:: https://github.githubassets.com/assets/tidelift-8cea37dea8fc.svg\n          :target: https://tidelift.com/lifter/search/pypi/bandit\n          :alt: Tidelift\n          :width: 88\n\n     - .. image:: https://avatars.githubusercontent.com/u/110237746?s=200&v=4\n          :target: https://stacklok.com/\n          :alt: Stacklok\n          :width: 88\n\nIf you also \u2764\ufe0f Bandit, please consider sponsoring.\n\n\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0 license",
    "summary": "Security oriented static analyser for python code.",
    "version": "1.8.0",
    "project_urls": {
        "Discord": "https://discord.gg/qYxpadCgkx",
        "Documentation": "https://bandit.readthedocs.io/",
        "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",
        "Sponsor": "https://psfmember.org/civicrm/contribute/transact/?reset=1&id=42"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "246ba9f0574d05d63e7d8125cd02a52732adb6720a9b9f13c921386cb9cdb53e",
                "md5": "41b08272f8f39b91f744c647fb56c7b3",
                "sha256": "b1a61d829c0968aed625381e426aa378904b996529d048f8d908fa28f6b13e38"
            },
            "downloads": -1,
            "filename": "bandit-1.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "41b08272f8f39b91f744c647fb56c7b3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 127035,
            "upload_time": "2024-11-27T01:37:24",
            "upload_time_iso_8601": "2024-11-27T01:37:24.100924Z",
            "url": "https://files.pythonhosted.org/packages/24/6b/a9f0574d05d63e7d8125cd02a52732adb6720a9b9f13c921386cb9cdb53e/bandit-1.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "57c3bea54f22cdc8224f0ace18b2cf86c6adf7010285d0ed51b703af9910c5b2",
                "md5": "1fd5445b051f74593268bea092fdd8ae",
                "sha256": "b5bfe55a095abd9fe20099178a7c6c060f844bfd4fe4c76d28e35e4c52b9d31e"
            },
            "downloads": -1,
            "filename": "bandit-1.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1fd5445b051f74593268bea092fdd8ae",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 4228600,
            "upload_time": "2024-11-27T01:37:25",
            "upload_time_iso_8601": "2024-11-27T01:37:25.881784Z",
            "url": "https://files.pythonhosted.org/packages/57/c3/bea54f22cdc8224f0ace18b2cf86c6adf7010285d0ed51b703af9910c5b2/bandit-1.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-27 01:37:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PyCQA",
    "github_project": "bandit",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "bandit"
}
        
Elapsed time: 0.32430s