# crdoconnor/strictyaml

Type-safe YAML parser and validator.

Repository: https://github.com/crdoconnor/strictyaml
Canonical: https://ross.abutalabs.com/products/strictyaml
Homepage: https://hitchdev.com/strictyaml/
Language: Python
License: MIT
License Family: permissive
Topics: yaml, parser, python, python3, strict-types, strict, strongly-typed, roundtrip, roundtripping, typesafe, serialization, yml, yaml-parser, yaml-emitter, config, configuration, configuration-file, configuration-management, schema, validation
Last push: 2025-05-23T08:40:43+00:00

## Health v2 (maintenance only)
Score: 43/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 23, release rhythm 35, longevity 100
- inputs: {"age_days": 3729, "days_push": 467, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1622, forks 68 (observed 2026-08-28T04:05:12.566152+00:00)

## What it is
StrictYAML is a type-safe YAML parser and validator for Python that parses a restricted, safer subset of the YAML spec, avoiding pitfalls like the Norway problem. It supports schema-based validation, readable errors with line numbers, and round-tripping YAML with comments preserved.

## Use cases
- parse yaml config files safely in python
- validate yaml against a schema
- avoid yaml implicit typing bugs like the norway problem
- edit yaml files and write them back preserving comments
- replace pyyaml or ruamel.yaml with a stricter parser
- get readable yaml parse errors with line numbers
- generate yaml documents from python dicts

## When to avoid
- you need full YAML spec features like anchors, tags, or complex keys
- parsing speed is critical
- you need YAML support outside of Python

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization, yaml, configuration-management
- domain: parsers, developer-tools, files
- platform: python, cross-platform
- tags: yaml-parser, schema-validation, type-safety, roundtrip, config-files, pyyaml-alternative

## Member repositories
- crdoconnor/strictyaml (main) score 43

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:12.566152+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-30T03:48:59.226265+00:00, confidence not recorded.
  - readme: https://github.com/crdoconnor/strictyaml (fetched 2026-08-28T04:05:12.566152+00:00, sha f4b1907637b7)
  - homepage: https://hitchdev.com/strictyaml/ (fetched 2026-08-29T11:21:52.600658+00:00, sha ae6850add71d)
  - site_page: https://hitchdev.com/hitchdb/using/quickstart (fetched 2026-08-29T11:21:52.616034+00:00, sha 2b423cc57f78)
  - site_page: https://hitchdev.com/hitchpage/using/quickstart (fetched 2026-08-29T11:21:52.620388+00:00, sha 69ab4687969f)
  - registry_pypi: https://pypi.org/pypi/strictyaml/json (fetched 2026-08-29T11:21:52.627544+00:00, sha 126a6ee1feab)
  - site_page: https://hitchdev.com/ (fetched 2026-08-29T11:21:52.610455+00:00, sha 137b5312ff63)
  - site_page: https://hitchdev.com/commandlib/changelog (fetched 2026-08-29T11:21:52.612336+00:00, sha 2949146e681d)
  - site_page: https://hitchdev.com/hitchdb/changelog (fetched 2026-08-29T11:21:52.614038+00:00, sha 78dcdd5468cd)
  - site_page: https://hitchdev.com/hitchpage/changelog (fetched 2026-08-29T11:21:52.618225+00:00, sha 70971f37cfbf)
  - site_page: https://hitchdev.com/hitchrunpy/changelog (fetched 2026-08-29T11:21:52.623248+00:00, sha 7670aab6d624)
- Data as of 2026-08-30T08:39:29.467469+00:00.
