tableschema
A utility library for working with Table Schema in Python
What it is and what it does
tableschema-py is a Python library that implements the Table Schema standard, allowing you to define, validate, and work with structured tabular data. It provides a `Table` class to read and write data with schema metadata, a `Schema` class to define field types and validation rules, and utilities to infer schemas from raw data and validate data against those schemas. The library handles type casting (converting string values to integers, geopoints, dates, etc.), missing value handling, and can read from local files or remote URLs.
The package is part of the Frictionless Data ecosystem and includes a command-line interface for schema validation and inference. However, the maintainers have released Frictionless Framework as a more complete successor; tableschema remains functional but is no longer the primary recommendation for new projects. It depends on standard libraries like jsonschema, requests, and python-dateutil for its core functionality.
Use it for:
- Validate CSV or tabular data files against a predefined Table Schema to ensure data quality and type correctness
- Automatically infer a Table Schema from raw data, then use it to cast and validate subsequent rows
- Define reusable table schemas in JSON format and apply them across multiple data files in a pipeline
- Parse tabular data with proper type casting (e.g., convert string '51.50,-0.11' to a geopoint array) and handle missing values
- Build data validation workflows where invalid rows are collected for reporting rather than stopping on first error
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Validates, infers, and works with tabular data using the Table Schema standard, providing schema definition, field type casting, and data validation for CSV and other table formats.
Yes, if you need to work with Table Schema standard and are not starting a new project. The package is stable and has no known vulnerabilities, but consider Frictionless Framework instead if you are building new data pipelines—tableschema is dormant (638 days since last release) and the maintainers explicitly recommend the successor. Install it for legacy integrations or when Table Schema compatibility is a hard requirement.
Install
tableschema on PyPI
pip
pip install tableschemauv
uv add tableschemapoetry
poetry add tableschemaInstalling tableschema
Before you install
Low friction install with 10 runtime dependencies. Maintenance is dormant—last release was 638 days ago—but the repository remains active and the project has been superseded by Frictionless Framework, which the maintainers recommend for new work.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install tableschema
from tableschema import Table
table = Table('data.csv')
table.infer()
for row in table.iter(keyed=True):
print(row)
Verify before relying
- Whether Python 2.7 support (listed in classifiers) is actually maintained or tested in the current release
- Current compatibility with modern Python versions beyond 3.6 (classifiers list only up to 3.6)
- Whether the package is actively maintained or in maintenance-only mode given the 638-day gap since last release
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 10 — six, click, requests, cached-property, python-dateutil, jsonschema, unicodecsv, isodate, rfc3986, dataflows-tabulator |
| Maintenance | dormant — 638 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 446,066/month — #6,614 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tableschema-1.21.0-py2.py3-none-any.whl
Keywords: frictionless data, open data, json schema, table schema, data package, tabular data package
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
csvwReads, writes, and validates tabular data…
permissive · top 5,000 on PyPI
datapackageProvides classes and utilities to create, load,…
permissive · top 15,000 on PyPI
frictionlessFrictionless provides a unified Python…
permissive · top 5,000 on PyPI
pycsvschemaValidates CSV files against a schema…
permissive · top 15,000 on PyPI
tableschema-to-templateConverts a Frictionless Table Schema into an…
permissive · top 15,000 on PyPI
tabulatorReads and writes tabular data in multiple…
permissive · top 15,000 on PyPI
patitoPatito combines pydantic models with polars…
permissive · top 15,000 on PyPI
schemaValidates Python data structures (dicts, lists,…
permissive · top 1,000 on PyPI
dataflows-tabulatorReads and writes tabular data in multiple…
permissive · top 15,000 on PyPI
pandas-schemaValidates pandas DataFrames against…
permissive · top 15,000 on PyPI