v1.1.2 PyPI • v1.1.0 APT
129+ Excel Formulas
x64 FASM SSE2 SIMD
4 MCP Tools: xlsx-mcp
xlsx-viewer-pro — Headless 129-Function Formula Engine & Desktop Viewer
Evaluates 129+ Excel formulas (XLOOKUP, VLOOKUP, INDEX/MATCH, PMT, IRR, SUMIFS) completely headlessly without Microsoft Excel or LibreOffice, accelerates bulk aggregates via native x64 SSE2 FASM DLLs, includes an Office Ribbon GUI with 10+ charts & Goal Seek, and exposes xlsx-mcp.
📦 1. Installation & Compatibility Matrix
uv add xlsx-viewer-pro
| Runtime / OS | Versions | Status & Mode |
|---|---|---|
| CPython | 3.8 – 3.16 | CPython 3.8–3.16 with openpyxl + bundled x64 FASM DLLs |
| Free-Threaded No-GIL | 3.13t – 3.16t (PEP 703) | 100% verified on No-GIL 3.13t–3.16t (-X gil=0) |
| PyPy JIT | 3.8 – 3.12 | Supported on PyPy 3.8–3.12 with pure-Python math fallback |
| Operating Systems | Windows / Linux / macOS | Windows (SSE2 SIMD + Ribbon GUI), Linux & macOS (headless & GUI) |
📊 2. Headless Formula Evaluator, SIMD SSE2 & Workbook Models
xlsx_api_demo.py
from xlsx_viewer import evaluate_formula, FormulaEngine, load_workbook, save_workbook
from xlsx_viewer.asm import is_asm_available, simd_sum, simd_avg, simd_min, simd_max, simd_sumproduct
# 1. Headless formula evaluation with cell coordinates
ctx = {"A1": 15000, "A2": 3200, "B1": 0.15, "B2": "Tier-1"}
profit = evaluate_formula("=(A1 - A2) * (1 - B1)", context=ctx)
pmt = evaluate_formula("=PMT(0.05 / 12, 360, -250000)")
# 2. Hardware SIMD SSE2 accelerated aggregates
print("SSE2 Active:", is_asm_available())
a, b = [10.5, 20.25, 30.75, 40.0], [1.0, 2.0, 3.0, 4.0]
print("Sum:", simd_sum(a), "Dot:", simd_sumproduct(a, b))
# 3. Load, inspect, and update .xlsx workbooks in memory
wb = load_workbook("report.xlsx", create_if_missing=True)
sheet = wb.get_sheet()
sheet.set_cell(row=0, col=0, value="Updated Total")
🔌 3. CLI Commands & 4 MCP Tools (xlsx-mcp)
| Tool / Command | Purpose |
|---|---|
xlsx_evaluate_formula | Evaluate any Excel formula string with optional cell coordinate context JSON |
xlsx_read_workbook | Read sheets, dimensions, cell values & formulas from local .xlsx/.xlsm/.xls/.csv files |
xlsx_write_cells | Write/update cells in existing or new .xlsx files cleanly |
xlsx_list_formulas | List all 129 supported Excel functions across Math, Finance, Lookup, Text & Stats |
xv --calc "=SUM(10, 20)" / xv report.xlsx | CLI quick calculation, --list-formulas, --info, or launch Desktop GUI |
mcp_config.json
{
"mcpServers": {
"xlsx-engine": {
"command": "xlsx-mcp"
}
}
}