Tablib is a Python package for tabular datasets you can import, edit, and export as XLS, CSV, JSON, YAML, and other formats without tying logic to one file type.
Overview
Tablib treats tables as first-class Dataset and Databook objects in Python. You create a dataset with headers, append rows, add columns, import existing data, and export to the format your workflow needs.
Supported export and import paths include Excel workbooks and sheets, JSON and YAML, HTML, TSV and CSV, ODS, DBF, SQL, LaTeX, Jira-formatted output, and Pandas DataFrames. The library deliberately omits XML in its core scope, while documentation lists additional formats such as rst and cli-oriented helpers in extended docs.
Advanced usage covers segregating data, dynamic columns, tags and filtering, and format-agnostic round-trips so the same in-memory table can move between analysts, scripts, and reporting tools. Organizations cited in project materials have used Tablib for consolidating messy lists of domains and similar tabular cleanup tasks.
Install Tablib as a Python dependency and use it from application code; it is not a standalone desktop app but a module meant to be imported wherever tabular exchange is needed.
Key features
- Dataset and Databook objects
- Export to Excel, CSV, JSON, YAML
- HTML, SQL, and LaTeX output
- Pandas DataFrame integration
- Row and column selection APIs
- Tags and filtering on datasets
- Dynamic column support
- Multi-format import and export
Use cases
- Convert spreadsheets in Python scripts
- Build reports in several file formats
- Merge and clean tabular exports
- Feed analysis from unified datasets
- Generate Jira-friendly table text