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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pydantic_sarif-0.1.1.tar.gz.

File metadata

  • Download URL: pydantic_sarif-0.1.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.12 Darwin/22.5.0

File hashes

Hashes for pydantic_sarif-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4867c5c95f9c4d09ceeec7cacdd6392564ab7f8f992f7ec523251dd22282384a
MD5 cc96477c1fb244df4896c83c257f513e
BLAKE2b-256 873e984673781201859dca5fa6e3d0545d4da9e419eeb50f4605f2fcf0baef6e

See more details on using hashes here.

File details

Details for the file pydantic_sarif-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pydantic_sarif-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.12 Darwin/22.5.0

File hashes

Hashes for pydantic_sarif-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51cd7c23c4246a383e06eead454b4e1cc890d135e169db85312756c60e2fd789
MD5 57b8c3307d5d09badb046ee9beeb4446
BLAKE2b-256 f521eb9badcbec2b6e5904c74eaadfc69d8755a9941d47028305875997fb6cd3

See more details on using hashes here.

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