sarif-om
Classes implementing the SARIF 2.1.0 object model.
What it is and what it does
This package is a collection of Python classes auto-generated from the SARIF 2.1.0 JSON schema. SARIF is an OASIS standard for representing static analysis tool results in a machine-readable, vendor-neutral format. The package lets you construct, read, and manipulate SARIF objects programmatically in Python using attrs-based classes that mirror the official schema structure.
The classes were generated from the official SARIF schema, so they track the specification closely. You import the package and work with classes like SarifLog to build or parse SARIF documents. It's a thin, schema-faithful wrapper with minimal dependencies (attrs and pbr), suitable for tools that need to emit or consume SARIF reports.
Use it for:
- Build a static analysis tool that outputs results in SARIF format for integration with other security or code-quality platforms.
- Parse SARIF reports from third-party analysis tools to aggregate or transform results programmatically.
- Validate or transform SARIF documents within a larger CI/CD pipeline.
- Generate standardized security or code-quality reports that other tools can consume via SARIF.
- Create a SARIF viewer or dashboard that reads and displays analysis results from multiple tools.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python classes implementing the SARIF 2.1.0 object model for representing static analysis results in a standardized interchange format.
Yes, if you need to work with SARIF 2.1.0 in Python. The package is stable, permissively licensed, and has no known vulnerabilities. Its dormancy is not a risk—SARIF is a fixed standard and the generated classes are unlikely to need updates. Install it for any tool that must emit or consume SARIF reports.
Install
sarif-om on PyPI
pip
pip install sarif-omuv
uv add sarif-ompoetry
poetry add sarif-omInstalling sarif-om
Before you install
Low install friction with only two lightweight runtime dependencies (attrs and pbr). The package is dormant—last release was 2019-10-05 and last commit 2024-04-03—so expect no active maintenance, though the underlying SARIF specification it implements is stable.
License in practice
MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install sarif-om
import sarif_om
log = sarif_om.SarifLog()
Verify before relying
- Whether the generated classes fully cover all SARIF 2.1.0 schema features and edge cases in practice.
- Current compatibility with modern Python versions beyond what 'supports_current' indicates.
- Whether the 2024-04-03 commit represents active maintenance or a minor fix.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>= 2.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — attrs, pbr |
| Maintenance | dormant — 2,505 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,135,323/month — #2,732 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sarif_om-1.0.4-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
bandit-sarif-formatterConverts Bandit security analysis output into…
permissive · top 15,000 on PyPI
sarif-toolsParses, analyzes, and transforms SARIF (Static…
permissive · top 15,000 on PyPI
jschema-to-pythonGenerates Python class definitions from JSON…
permissive · top 5,000 on PyPI
pydifactPydifact parses and serializes UN/EDIFACT…
permissive · top 15,000 on PyPI
somacoreProvides the Python reference implementation of…
permissive · top 15,000 on PyPI
onnxconverter-commonProvides common utilities and functions for…
permissive · top 5,000 on PyPI
standard-aifcProvides the aifc module, a pure-Python…
permissive · top 5,000 on PyPI
interchangeInterchange provides data types and interchange…
permissive · top 15,000 on PyPI
stix2Serializes and deserializes STIX 2 JSON…
permissive · top 5,000 on PyPI
microsoft-kiota-httpProvides an HTTP client implementation for…
permissive · top 5,000 on PyPI