# keleshev/schema

Schema validation just got Pythonic

Repository: https://github.com/keleshev/schema
Canonical: https://ross.abutalabs.com/products/schema
Language: Python
License: MIT
License Family: permissive
Last push: 2026-06-20T09:39:05+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 8, longevity 100
- inputs: {"age_days": 5127, "days_push": 74, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2946, forks 226 (observed 2026-08-28T04:07:31.204471+00:00)

## What it is
A lightweight Python library for validating data structures like dicts and lists obtained from configs, forms, JSON/YAML, or CLI parsing. It uses composable Python expressions (types, callables, Optional keys) and returns converted data or raises SchemaError.

## Use cases
- validate  payloads from external services
- validate yaml config files in python
- validate form input data
- validate command-line parsed arguments
- coerce and validate data types with Use
- check nested dict and list structures against a schema

## When to avoid
- you need JSON Schema standard compliance or interoperability
- you need high-performance validation of very large datasets
- you prefer pydantic-style model classes with type hints

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, developer-tools
- domain: developer-tools, apis
- platform: python, cross-platform
- tags: data-validation, schema-validation, -validation, config-validation, data-engineering

## Member repositories
- keleshev/schema (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:31.204471+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:32:47.734570+00:00, confidence not recorded.
  - readme: https://github.com/keleshev/schema (fetched 2026-08-28T04:07:31.204471+00:00, sha cbbcd5891222)
  - registry_pypi: https://pypi.org/pypi/schema/json (fetched 2026-08-29T09:48:02.846021+00:00, sha 36d18af52dd5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
