safety-schemas
Schemas for Safety tools
What it is and what it does
safety-schemas is a collection of Pydantic models and schemas designed to support Safety's ecosystem of security and dependency-checking tools. It provides structured data models for validating and serializing safety policy files and related configuration, allowing tools built on Safety to work with consistent, type-safe data structures.
The package depends on pydantic for model definition, ruamel-yaml for YAML handling, packaging for version parsing, dparse for dependency file parsing, and typing-extensions for enhanced type hints. It is classified as production-stable and actively maintained, with recent releases and broad Python version support.
Use it for:
- Building Safety-compatible tools that need to parse and validate policy configuration files.
- Integrating with Safety's ecosystem to ensure schema compatibility across security scanning workflows.
- Defining and enforcing structured safety policies in dependency management pipelines.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Pydantic models and schemas for Safety tools, enabling structured validation and serialization of safety policy files and configuration data.
Yes, if you are building or extending Safety tools or need to work with Safety policy files in a type-safe manner. The low install friction, active maintenance, permissive MIT license, and zero known vulnerabilities make it a safe dependency. If you are not directly using Safety tools or policy schemas, this package is unlikely to be relevant.
Install
safety-schemas on PyPI
pip
pip install safety-schemasuv
uv add safety-schemaspoetry
poetry add safety-schemasInstalling safety-schemas
Before you install
Low install friction with a pure Python wheel distribution. Active maintenance with a release 24 days ago. Supports Python 3.8 through 3.12.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install safety-schemas
from safety_schemas import SomeModel
# Use Pydantic models for validation
Requires Python 3.8 or later.
Verify before relying
- Whether this package is intended for direct use by application developers or primarily as an internal dependency.
- What specific schema domains or policy file formats are covered by the models provided.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — dparse, packaging, pydantic, ruamel-yaml, typing-extensions |
| Maintenance | actively maintained — 24 days since the last release |
| First released | |
| Downloads | 3,855,430/month — #2,475 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: safety_schemas-0.0.19-py3-none-any.whl
Keywords: policy file, safety, safety models, safety policy file, safety schemas, schemas
Tags
More Security packages
Provides Python bindings to the FreeDesktop.org…
permissive · top 1,000 on PyPI
msalMSAL for Python handles OAuth2 and OpenID…
permissive · top 1,000 on PyPI
joserfcjoserfc implements JOSE standards (JWS, JWE,…
permissive · top 1,000 on PyPI
AuthlibAuthlib provides a complete implementation of…
permissive · top 1,000 on PyPI
argon2-cffi-bindingsProvides low-level CFFI bindings to the…
permissive · top 1,000 on PyPI
adalADAL for Python authenticates applications with…
permissive · top 1,000 on PyPI
django-pydantic-fieldProvides type-safe Pydantic model schemas for…
permissive · top 5,000 on PyPI
py-avro-schemaGenerates Apache Avro schemas from Python…
permissive · top 15,000 on PyPI
ibm-quantum-schemasProvides Pydantic models that define the…
permissive · top 15,000 on PyPI
jsonschema-pydantic-converterConverts JSON Schema definitions to Pydantic v2…
permissive · top 15,000 on PyPI
jsonschema-pydanticConverts JSON Schema definitions into Pydantic…
unclear · top 15,000 on PyPI
dydanticDynamically generates Pydantic models from JSON…
permissive · top 5,000 on PyPI
aiohomematic-configTransforms Homematic device paramset…
permissive · top 15,000 on PyPI
pydantic-avroConverts between pydantic class definitions and…
permissive · top 5,000 on PyPI
pydantic-scimProvides Pydantic data models for SCIM (System…
unclear · top 15,000 on PyPI
vlmrun-hubProvides a catalog of pre-defined Pydantic…
permissive · top 15,000 on PyPI