--- id: safety-schemas version: "0.0.19" license: MIT license_treatment: permissive maintenance: active --- # safety-schemas — Schemas for Safety tools License: permissive · Maintenance: active · Downloads: 3.9M/mo ## 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 above — 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 pip install safety-schemas uv add safety-schemas 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_current - Install friction: low - Maintenance: active - Downloads: 3.9M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags pydantic models for safety, safety policy schema validation, safety configuration schemas, safety tool data models, policy file schemas, pydantic-models, safety-tools [View on SkillFed](https://skillfed.io/packages/safety-schemas) · [View on PyPI](https://pypi.org/project/safety-schemas/)