Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joranhonig/pydantic-sarif
https://github.com/joranhonig/pydantic-sarif
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/joranhonig/pydantic-sarif
- Owner: JoranHonig
- Created: 2023-08-15T13:27:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-15T15:26:06.000Z (over 1 year ago)
- Last Synced: 2024-10-15T15:01:27.959Z (2 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 Reportexample_json = """
"""
report: Report = Report.parse_raw(example_json)assert report.version == "2.1.0"
```