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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for pydantic_sarif-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51cd7c23c4246a383e06eead454b4e1cc890d135e169db85312756c60e2fd789 |
|
MD5 | 57b8c3307d5d09badb046ee9beeb4446 |
|
BLAKE2b-256 | f521eb9badcbec2b6e5904c74eaadfc69d8755a9941d47028305875997fb6cd3 |