PyCSVSchema is a Python implementation of the CSV Schema specification (version 0.3). It allows you to validate CSV files against a schema defined in YAML or JSON. Currently at version 0.0.6, it is in early development with weekly commits.
pip install pycsvschemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Load a schema from YAML, create a CSVSchema instance, and validate a CSV file.
Parse the schema using yaml.safe_load() or json.loads() before passing to CSVSchema.
Use CSVSchema instead of CSVValidator. Change imports and constructor calls.
Use with open('file.csv') as f: validator.validate(f) instead of validator.validate('file.csv').No dependency data recorded yet.