Tabulator provides a consistent interface for reading and writing tabular data from various sources (e.g., CSV, Excel, JSON, Google Sheets) in a streaming fashion. It aims to simplify data integration by abstracting away the underlying file formats. The current version is 1.53.5, and it maintains a regular release cadence with minor updates and bug fixes.
pip install tabulatorVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `tabulator.Stream` to read tabular data from a remote CSV file. It iterates through the rows, printing the headers and the first few data rows. The Stream object handles opening and closing the data source automatically.
Migrate your code to use `from tabulator import Stream` and adapt to its API. All options are now passed to the `Stream` constructor.
Install the necessary extra dependencies, e.g., `pip install tabulator[xlsx]`, `pip install tabulator[xls]`, `pip install tabulator[jsonl]`, or `pip install tabulator[http]` for remote files. For all common extras, use `pip install tabulator[xlsx,xls,jsonl,http]`.
Explicitly specify the encoding when creating the Stream, e.g., `Stream('data.csv', encoding='latin-1')`. Common encodings include 'utf-8', 'latin-1', 'cp1252'.Install the library: `pip install tabulator`
Install the required extra: `pip install tabulator[xlsx]`
Specify the correct encoding for your file, e.g., `Stream('data.csv', encoding='latin-1')` or `encoding='cp1252'`.Verify the file path is absolute or relative to your script's working directory. Ensure the file actually exists.