pytablereader is a Python library to load structured table data from files, strings, or URLs supporting multiple formats: CSV, Excel, Google Sheets, HTML, JSON, LDJSON, LTSV, Markdown, SQLite, TSV. Currently at v0.31.4, with a monthly/bimonthly release cadence and active maintenance.
pip install pytablereaderVerified import paths — ran on the pinned version, not inferred.
Basic usage: load table data from a file path, URL, or file-like object. The function returns a generator of TableData objects.
Use Python 3.7+ and update any Python 2 specific code.
Pass type_hints=True to load_tables or loader classes to enable type detection.
Set up gspread authentication (service account or OAuth) before calling load_tables with a Google Sheets URL.
Ensure file paths are valid for the platform; use raw strings or os.path functions.