table2llm
Parse complex tables from CSV, XLSX, and DOCX into LLM-friendly formats such as JSON, Markdown, and HTML.
Features
- Supports:
- CSV
- XLSX (Excel)
- DOCX (Word tables)
- Handles:
- Merged cells (rowspan / colspan)
- Nested tables (DOCX)
- Outputs:
- JSON (structured records)
- Markdown
- HTML
Installation
pip install table2llm
Usage
Unified API (Recommended)
from table2llm import unpack
result = unpack("data.csv", output_format="json")
print(result)
result = unpack("data.xlsx", output_format="md")
print(result)
result = unpack("data.docx", output_format="html")
print(result)
Direct Parser API
from table2llm import CsvParser, DocxParser, XlsxParser
csv_result = CsvParser().parse_to_json("data.csv")
xlsx_result = XlsxParser().parse_to_md("data.xlsx")
docx_result = DocxParser().parse_to_html("data.docx")
print(csv_result)
print(xlsx_result)
print(docx_result)
Output Formats
JSON
- Structured as list of records
- Suitable for LLM ingestion
Markdown
- Clean table format
- Useful for prompts or documentation
HTML
- Preserves structure (rowspan / colspan)
- Best for rendering
Notes
- Choose parser based on file type
- Empty rows are skipped
- Text is normalized and cleaned internally
Metadata
Release files for table2llm 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| table2llm-0.2.0.tar.gz | 8.0 kB | Without provenance | Details for table2llm-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| table2llm-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for table2llm-0.2.0-py3-none-any.whl |
Total release size: 16.6 kB
Release files / table2llm-0.2.0.tar.gz
| Download URL | table2llm-0.2.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74f307ff1d2e30ca7ec7958eeb96d38329e40f6ed6b7dcf0d7001d7b37327f4e
|
|
BLAKE2b-256 checksum How to use checksums |
da0876f73b5f24bf412fa589108d6961440502a75770b7c4b391ebe7924dad63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / table2llm-0.2.0-py3-none-any.whl
| Download URL | table2llm-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eec5468742bfd56528bb82c74091cd8236ca302217e347cd32e91f140c7f0115
|
|
BLAKE2b-256 checksum How to use checksums |
e01ee1399684d73e3b5f6506773a5d6bcb55bd41971617ab628c857d0b496011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for table2llm 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.