Skip to main content

logo

🔭📊 Spreadsheet Intelligence

Apache 2.0 License API Reference PyPI version

⚡ Quick Install

With pip:

pip install spreadsheet_intelligence

🤔 What is Spreadsheet Intelligence?

Spreadsheet Intelligence parses the XML of Excel files to load various data and enhance the RAG performance of Excel files using LLM.

Currently, it supports the conversion of system configuration diagrams consisting of autoshapes in Excel, and it is a powerful tool reported in our paper to overcome the limitations of VLM in diagram interpretation.

The paper is available on arXiv.

arXiv Static Badge

🚀 Quick Start

from spreadsheet_intelligence.core.excel_autoshape_loader import ExcelAutoshapeLoader

loader = ExcelAutoshapeLoader(file_path="path/to/your/excel/file.xlsx")
loader.load()
autoshape_info_json = loader.export2json()
print(autoshape_info_json)

The output is as follows

{
    "connectors": [
        {
            "type": "straightConnector1",
            "arrowType": "bidirectional",
            "color": "#000000",
            "startX": "8.47",
            "startY": "8.77",
            "endX": "18.30",
            "endY": "8.77"
        },
        {
            "type": "bentConnector3",
            "arrowType": "unidirectional",
            "color": "#000000",
            "startX": "14.75",
            "startY": "4.74",
            "StartArrowHeadDirection": "left",
            "endX": "21.59",
            "endY": "6.00",
            "EndArrowHeadDirection": "right"
        }
        ...
    ],
    "shapes": [
        {
            "shapeType": "round_rect",
            "fillColor": "#156082",
            "borderColor": "#0E2841",
            "left": "1.41",
            "top": "5.52",
            "right": "39.13",
            "bottom": "23.40",
            "text": null
        },
        {
            "shapeType": "rect",
            "fillColor": "#000000",
            "borderColor": "#000000",
            "left": "5.17",
            "top": "19.07",
            "right": "9.27",
            "bottom": "19.87",
            "text": {
                "content": "Azure Cognitive Search",
                "fontColor": null,
                "fontSize": null,
                "alignment": null
            }
        },
        ...
    ]
}

🗂️ Project Structure

This package is mainly composed of five packages: core, models, parsers, converters, and formatters.

spreadsheet_intelligence/
├── core/
│   ├── excel_autoshape_loader.py
├── models/
│   ├── converted/
│   ├── raw/
├── parsers/
├── converters/
├── formatters/
├── ...

Basic Processing Flow

The Excel file loaded as XML is processed in the following flow:

  1. It is parsed by parsers in a nearly raw state and stored in Raw models.
  2. It is converted by converters from the XML representation to a structure that is easy for humans (LLM) to understand and stored in Converted models.
  3. It is converted by formatters from the Converted models to JSON format data that can be directly used in LLM prompts.

Basically, by using the ExcelAutoshapeLoader class in the core package, this flow can be wrapped and executed.

Customizability

Mainly extendable in the following ways:

  • Extend the data retrieved from XML -> Extend by inheriting from parsers
  • Extend the data conversion methods -> Extend by inheriting from converters
  • Extend the output data format -> Extend by inheriting from formatters

Metadata

Release files for gg-research-community-playbook 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gg-research-community-playbook 0.1.1
File Size Uploaded Provenance Actions
gg_research_community_playbook-0.1.1.tar.gz 34.3 kB With provenance Details for gg_research_community_playbook-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gg-research-community-playbook 0.1.1
File Interpreter ABI Platform Actions
gg_research_community_playbook-0.1.1-py3-none-any.whl Python 3 none any Details for gg_research_community_playbook-0.1.1-py3-none-any.whl

Total release size: 81.5 kB

Release files / gg_research_community_playbook-0.1.1.tar.gz

Download URL gg_research_community_playbook-0.1.1.tar.gz
Size 34.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f143efc2ee581c9f6bc2134a2770e23ecf4d514d6347ad41af69ac75966d278b
BLAKE2b-256 checksum
How to use checksums
32ea0ad883691c433dd9f0175dce3ee821bf4fc2802e0cfa4a3593552144b06f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 20, 2025.

Transparency log

Release files / gg_research_community_playbook-0.1.1-py3-none-any.whl

Download URL gg_research_community_playbook-0.1.1-py3-none-any.whl
Size 47.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8ef7b8f93225960b0e7362d1fa82e26980f2258fe8328a89e308194cd6389d0
BLAKE2b-256 checksum
How to use checksums
c5d57b211ad50da006d49342e55ae6e62a4ca2243f64f5c9ef5d937517fcc574
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 20, 2025.

Transparency log

Security for gg-research-community-playbook 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gg_research_community_playbook-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 20, 2025.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page