skillfed

pycsvschema

PyCSVSchema is an implementation of CSV Schema in Python.

pycsvschema v0.0.6 130.8K downloads/30d#11,623 on PyPI2
Permissive license MIT Abandoned released

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 pycsvschema

uv

uv add pycsvschema

poetry

poetry add pycsvschema

Installing 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

Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Software Development :: Libraries :: Python Modules

Tags

csv validationcsv schema validatorvalidate csv filescsv data validationcsv schema checkingcsv field validationcsv constraint validation
csv-validationdata-qualityabandoned

More Python Modules packages