pycsvschema
PyCSVSchema is an implementation of CSV Schema in Python.
What it is and what it does
PyCSVSchema is a Python implementation of the CSV Schema specification, allowing you to define and enforce validation rules on CSV files. It lets you specify field types, constraints like multipleOf or range limits, and other data integrity rules, then validates CSV data against those rules and reports violations with row and column context.
The package wraps the validation logic in a Validator class that takes a CSV filename and a schema dictionary, then checks each row for compliance. It depends on jsonschema and rfc3986 for underlying validation and URI handling. However, the project has been inactive since October 2019 and is marked as abandoned, meaning no new features, bug fixes, or compatibility updates should be expected.
Use it for:
- Validate CSV exports from databases or ETL pipelines before downstream processing
- Enforce data type and constraint rules on CSV uploads in web applications
- Check CSV data quality in automated data pipelines with clear error reporting
- Test CSV file correctness in data integration test suites
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Validates CSV files against a schema definition, checking field types, constraints, and data integrity rules.
No. While the package is lightweight and permissively licensed, it has been abandoned for over four years with no maintenance. For active projects requiring CSV validation, a maintained alternative is strongly recommended. Use only if you have a legacy codebase already depending on it or are willing to fork and maintain it yourself.
Install
pycsvschema on PyPI
pip
pip install pycsvschemauv
uv add pycsvschemapoetry
poetry add pycsvschemaInstalling pycsvschema
Before you install
Installation is straightforward with low friction—the package is a pure Python wheel with only two lightweight runtime dependencies (jsonschema and rfc3986). However, the project has been abandoned since October 2019 with no updates in over four years, so expect no bug fixes or maintenance.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it safe to adopt from a licensing perspective.
Quickstart
pip install pycsvschema
from pycsvschema.checker import Validator
schema = {'fields': [{'name': 'value', 'type': 'number', 'multipleOf': 5}]}
v = Validator(filename='demo.csv', schema=schema)
v.validate()
Verify before relying
- Whether the package works reliably with modern Python versions beyond 3.8, given no releases since 2019
- Current compatibility with recent versions of jsonschema and rfc3986 dependencies
- Whether CSV Schema specification has evolved since the package's last update
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — jsonschema, rfc3986 |
| Maintenance | abandoned — 2,501 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 130,839/month — #11,623 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pycsvschema-0.0.6-py3-none-any.whl
Keywords: csv, schema, json, jsonschema, validation, validator
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
CerberusCerberus validates Python dictionaries and…
permissive · top 5,000 on PyPI
jsonschemajsonschema validates Python data structures…
permissive · top 100 on PyPI
tableschemaValidates, infers, and works with tabular data…
permissive · top 15,000 on PyPI
jsonschema-rsjsonschema-rs validates JSON data against JSON…
permissive · top 5,000 on PyPI
check-jsonschemaA command-line tool and pre-commit hook that…
permissive · top 5,000 on PyPI
cfgvValidates configuration data against schemas…
permissive · top 1,000 on PyPI
pandas-schemaValidates pandas DataFrames against…
permissive · top 15,000 on PyPI
eidoValidates project metadata against PEP schemas…
permissive · top 15,000 on PyPI
jsonschema-pydanticConverts JSON Schema definitions into Pydantic…
unclear · top 15,000 on PyPI
validator-collectionProvides 60+ validator functions for checking…
permissive · top 15,000 on PyPI