semvec/pypi-packages huggingface dataset:
pydantic-sarif 0.1.1
A pydantic binding library for the sarif standard
License: MIT
Requires Python: >=3.10,<4.0

# PySarif 

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

## Installation

```bash
pip install pysarif
```

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

## Example

```python
from pydantic_sarif.model import StaticAnalysisResultsFormatSarifVersion210JsonSchema as Report

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

assert report.version == "2.1.0"
```