Skip to main content

build status

trivy-py

A python wrapper to provide a pip-installable trivy binary.

Internally this package provides a convenient way to download the pre-built trivy binary for your particular platform.

installation

pip install trivy-py

usage

After installation, the trivy binary should be available in your environment (or trivy.exe on windows).

As a pre-commit hook

See pre-commit for instructions

Sample .pre-commit-config.yaml:

- repo: https://github.com/GaukeT/pre-commit-mirrors-trivy
  rev: v0.74.0
  hooks:
    - id: trivy-fs
      args:
        - --exit-code=1 # Example: set exit with code 1
        - --debug # Example: enable debug output
        - . # Example: scan current directory (provide DIR as last argument if `args` are used)
    - id: trivy-config

Release files for trivy-py 0.74.0

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

Source distribution (sdist)

Source distribution for trivy-py 0.74.0
File Size Uploaded
trivy_py-0.74.0.tar.gz 5.0 kB Details

Release files / trivy_py-0.74.0.tar.gz

Download URL trivy_py-0.74.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0a29cc49d89cc1649db5c72d5afeac313b9ed10fa2ece81e3813883a2e412d71
BLAKE2b-256 checksum
How to use checksums
60b39bd695b7202613e6dca080ec7ca4677cb9260126e0bd096e517f96200f50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.74.0 This release

1 release file

0.71.2

1 release file

0.70.0

1 release file

0.69.3

1 release file

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