Skip to main content

A pydantic binding library for the sarif standard

Project description

PySarif

This is a simple pydantic model for the SARIF format, generated with datamodel-codegen.

Installation

pip install pysarif

Usage

StaticAnalysisResultsFormatSarifVersion210JsonSchema is likely the class that you'll be referencing the most.

Example

from pydantic_sarif.model import StaticAnalysisResultsFormatSarifVersion210JsonSchema as Report

example_json = """
"""
report: Report = Report.parse_raw(example_json)

assert report.version == "2.1.0"

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

pydantic_sarif-0.1.1.tar.gz (14.3 kB view hashes)

Uploaded Source

Built Distribution

pydantic_sarif-0.1.1-py3-none-any.whl (14.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page