skillfed

safety-schemas

Schemas for Safety tools

safety-schemas v0.0.19 3.9M downloads/30d#2,475 on PyPI
Permissive license MIT Active released

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-schemas

uv

uv add safety-schemas

poetry

poetry add safety-schemas

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

pydantic models for safetysafety policy schema validationsafety configuration schemassafety tool data modelspolicy file schemas
pydantic-modelssafety-tools

More Security packages