spreadsheet-engine
Open-source Spreadsheet Understanding Engine (spreadsheet_engine). Compiles Excel workbooks into semantic blocks, compressed formulas, UI render models, and retrieval chunks—without dumping raw cell grids.
Install from PyPI:
pip install spreadsheet-engine
# optional LLM block enrichment
pip install "spreadsheet-engine[llm]"
Or from git:
pip install "spreadsheet-engine @ git+https://github.com/your-org/spreadsheet-engine.git"
Quick start
cd spreadsheet-engine
uv sync --extra dev
# Compile workbook → ./out
uv run spreadsheet-engine compile input_1.xlsx --out ./out
# Compile multiple workbooks into one merged artifact set
uv run spreadsheet-engine compile input_1.xlsx input_2.xlsx --out ./out
# Single sheet
uv run spreadsheet-engine compile input_1.xlsx --sheet Dashboard --out ./out
Artifact outputs (public contract)
These files are consumed by downstream tools (e.g. spreadsheet-agent):
| File | Purpose |
|---|---|
artifact.json |
Semantic IR (blocks, tables, timelines) |
artifact_ui.json |
UI positioning + sparse cell runs |
artifact_retrieval.jsonl |
Embedding-ready chunks |
artifact_values.jsonl |
Resolved cell values for metric lookup |
Each compile run produces a single set of these files. Multiple input workbooks are aggregated into one artifact set: artifact.json and artifact_ui.json hold a top-level files list (one entry per workbook, each tagged with workbook.file_name), and every .jsonl line carries a file_name field identifying its source workbook.
Optional: --enrich-llm (requires spreadsheet-engine[llm] and OPENAI_API_KEY).
Architecture
Workbook → SparseCellStore → BlockDetection → Table/Timeline/Formula analysis
→ Semantic enrichment → Retrieval + UI emitters
Tests
uv sync --extra dev
uv run pytest spreadsheet_engine/tests -q
Place input_1.xlsx at the repo root for e2e tests, or rely on skipped tests when absent.
Related projects
- spreadsheet-agent — LangGraph Q&A over compiled artifacts (
pip installthis package, compile toout/, then use the agent).
License
MIT — see LICENSE.
Metadata
Release files for spreadsheet-engine 0.1.1
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 |
|---|---|---|---|---|
| spreadsheet_engine-0.1.1.tar.gz | 123.5 kB | Without provenance | Details for spreadsheet_engine-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spreadsheet_engine-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for spreadsheet_engine-0.1.1-py3-none-any.whl |
Total release size: 174.4 kB
Release files / spreadsheet_engine-0.1.1.tar.gz
| Download URL | spreadsheet_engine-0.1.1.tar.gz |
|---|---|
| Size | 123.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
095f879cdd1a5cac2d4fe84934739ac4106d5e9c8a6301861cee7187045404d4
|
|
BLAKE2b-256 checksum How to use checksums |
fc2df2e10ee9ccd65ac8ec04d7e23f050bced3721d934c18822c6fcf2adf45e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.5
|
Release files / spreadsheet_engine-0.1.1-py3-none-any.whl
| Download URL | spreadsheet_engine-0.1.1-py3-none-any.whl |
|---|---|
| Size | 50.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c63afcf97f8f76ad949cc43fe4f199f09537123078e383a5e9c03a454b9db51
|
|
BLAKE2b-256 checksum How to use checksums |
1bba6b665207ef18bb8eba8382f9ec376a20338913184817fc97a82a3643b127
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.5
|
Security for spreadsheet-engine 0.1.1
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.