Skip to main content

Bandit Tools Build Status

List of apps designed to help Bandit users

custom_report.py

python -m bandit_tools.custom_report

usage: bandit_custom_report [-h] [-o OUTPUT] [-p TEMPLATE_PATH] [-t TEMPLATE]
                        [-b BASE_URI]
                        report

Tool for Bandit Custom HTML report This tools allows to create a customize
HTML Bandit from json one using Jinja2 to compose the HTML

positional arguments:
  report                the report on JSON format

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        output file
  -p TEMPLATE_PATH, --path TEMPLATE_PATH
                        The template path where files will be storage
  -t TEMPLATE, --template TEMPLATE
                        Template to render by default my_report.html
  -b BASE_URI, --base BASE_URI
                        The URI for add on the base html tag

baseline_tools.py

python -m bandit_tools.baseline_tools

usage: baseline_tools [-h] [-z] [-f] [-M] [-m MIXED] [-o OUTPUT] baseline

Tool for Bandit baseline

positional arguments:
  baseline              baseline file work with

optional arguments:
  -h, --help            show this help message and exit
  -z, --zip             Minimize the result, remove all 0 hits files
  -f, --fix             Fix format and data on manual json files
  -M, --machine         Json format without indent
  -m MIXED, --mixed MIXED
                        second baseline mixed with
  -o OUTPUT, --output OUTPUT
                        output file
  • --fix

The fix option will be recalculate the "_total" field on "metrics" and order the "results" field.

  • --mix

The mix option will be recived a second report.json and calculate the new file with baseline + report.json so new "_total" field on "metrics" will be created with proper information

KNOWN ISSUES

If you have the same risky code on two lines in the same file, the --mix option will be remove one of them, cause it is detected as duplicated hit.

Metadata

Release files for bandit-tools 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bandit-tools 0.0.1
File Size Uploaded Provenance
bandit_tools-0.0.1.tar.gz 5.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bandit-tools 0.0.1
File Interpreter ABI Platform
bandit_tools-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / bandit_tools-0.0.1.tar.gz

Download URL bandit_tools-0.0.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f675a55049d9920e6ddb8e99591d17247e256823c7d5a0bce77af15782734873
BLAKE2b-256 checksum
How to use checksums
903c1263c810320e5cae877652380cae6e1455afa0fa0821e727d140df2fb4f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0

Release files / bandit_tools-0.0.1-py3-none-any.whl

Download URL bandit_tools-0.0.1-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4206ce27e8ff54662e48cf034dc079709e299aafe31a5bdd3b12e75937e14d6d
BLAKE2b-256 checksum
How to use checksums
7dcf64af9a893e6413524c3f4714b2d6cb5a165f7c1ce3b1ff93e87e32b21ebd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0

Security for bandit-tools 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page