Metadata-Version: 2.4
Name: elixcee
Version: 1.0.17
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Rust
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
License-File: LICENSE
Summary: Headless Excel workbook automation with formula calculation, editing, and VBA execution
Keywords: excel,vba,excel-vba,macro,xlsx,spreadsheet,static-analysis,testing
Home-Page: https://github.com/kent-tokyo/elixcee
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/kent-tokyo/elixcee/blob/v1.0.17/CHANGELOG.md
Project-URL: Documentation, https://github.com/kent-tokyo/elixcee/tree/v1.0.17/docs
Project-URL: Homepage, https://github.com/kent-tokyo/elixcee
Project-URL: Issues, https://github.com/kent-tokyo/elixcee/issues
Project-URL: Repository, https://github.com/kent-tokyo/elixcee

# elixcee

[![CI](https://github.com/kent-tokyo/elixcee/actions/workflows/ci.yml/badge.svg)](https://github.com/kent-tokyo/elixcee/actions/workflows/ci.yml)
[![Docs](https://docs.rs/elixcee/badge.svg)](https://docs.rs/elixcee/1.0.17/elixcee/)
[![Version](https://img.shields.io/badge/version-1.0.17-blue.svg)](https://github.com/kent-tokyo/elixcee/releases/tag/v1.0.17)
[![codecov](https://codecov.io/gh/kent-tokyo/elixcee/graph/badge.svg)](https://codecov.io/gh/kent-tokyo/elixcee)
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/kent-tokyo/elixcee)

Headless Excel workbook automation in Rust and Python. Edit `.xlsx`/`.xlsm`
files, recalculate supported formulas, and run or diagnose data-processing VBA
without Microsoft Excel. A CLI, reusable Rust/WASM runtime crates, and an
experimental JavaScript/WASM package are also included.

The current release is `1.0.17`. The browser playground demonstrates range
selection, cell editing, formatting, filters, tables, chart previews,
worksheet-backed Pivot summaries, sheet operations, formula recalculation, and
bounded VBA execution.

[English](README.md) | [日本語](README_ja.md) | [中文](README_zh.md)

## Start here

1. [Quick start](docs/quickstart.md) — install and run the first operation.
2. [Beginner tutorial](docs/tutorial-beginners.md) — edit cells, calculate formulas, and run VBA.
3. [Browser playground](https://kent-tokyo.github.io/elixcee/playground/) — try it without installing anything.

The playground switches between English, Japanese, and Simplified Chinese.
For local playground work, see [playground/README.md](playground/README.md).

## Install

```bash
pip install elixcee
```

CLI binaries are available from [GitHub Releases](https://github.com/kent-tokyo/elixcee/releases).

The reusable Rust crates are `elixcee` (native/Python runtime) and
`elixcee-wasm` (browser/Node bridge). They provide headless reading, supported
formula calculation, diagnostics, and bounded workbook editing. The
[elixcee-wasm API docs](https://docs.rs/elixcee-wasm) are available separately.
Browser and Node.js applications can install the independently versioned
JavaScript package with `npm install @elixcee/xlsx`.
[Playground](https://kent-tokyo.github.io/elixcee/playground/) is a separate
static web app: it combines the WASM runtime with the package's JavaScript
XLSX writer and Excel-like UI. See the [crate/API boundary](docs/crate-api-boundary.md)
for the exact contract.

## Python

```python
import elixcee

vm = elixcee.load_workbook("input.xlsx")
vm.set_cell(1, 1, 10)                 # Excel-style 1-based coordinates
vm.set_cell_formula(1, 2, "=A1*2")
vm.recalculate()
vm.run("""Sub Macro()
    Cells(1, 3).Value = Cells(1, 2).Value + 1
End Sub""", "Macro")
vm.save_workbook("output.xlsx")
```

Coming from openpyxl? `import elixcee.openpyxl as openpyxl` gives the familiar
`wb["Sheet"]["A1"].value` object API on top of the same engine; see the
[migration guide](docs/openpyxl-migration.md). For pandas,
`elixcee.pandas.read_excel`/`to_excel` replace `pd.read_excel`/`df.to_excel`
without openpyxl ([guide](docs/pandas.md)). Writing 1.1M cells from Python takes
1.2 s with elixcee, 4.6 s with XlsxWriter and 7.6 s with openpyxl. To only read
values, `elixcee.read_values("input.xlsx")` returns the sheet as a list of rows;
it reads 1.1M cells in 0.24 s, against 0.80 s for python-calamine and 5.4 s for
openpyxl `read_only`. `load_workbook` plus `get_range`, which keeps the whole
workbook editable, takes about 0.8 s, level with python-calamine ([benchmark](docs/benchmarks/python-libraries-2026-11-28.md)).

The Python API also provides ranges, sorting, merges, styles, tables,
validation, hidden rows/columns, undo/redo, events, streaming row I/O, and
bounded reader/execution controls. See [elixcee.pyi](elixcee.pyi) for the API.

## CLI

```text
elixcee <file.bas>... <MacroName> --file input.xlsx --output result.xlsx
elixcee check <file.bas>... [--entry MacroName] [--json]
elixcee snapshot <workbook.xlsx|ods> [--json]
elixcee validate <workbook.xlsx> [--json]
elixcee diagnose <file.bas>... <MacroName> --file input.xlsx [--json]
elixcee test-workbook fixture.toml [--json]
```

`validate` finds the structural problems that make Excel offer to repair a
file, whichever library wrote it ([docs](docs/validate.md)). Use `--json` for automation. The stable output contract is documented in
[docs/agent-contract.md](docs/agent-contract.md).

## Supported scope

The runtime covers common data-processing VBA (`If`, `For`, `Do`, `Select Case`,
`With`, arrays, multiple sheets, `Range`/`Cells`, and selected collections),
plus arithmetic, lookup, text, logical, date/time, statistical, financial,
reference, and dynamic-array formulas.

It is not a full Excel desktop replacement. UI operations are skipped,
modeled, or reported. Chart/Drawing/Pivot editing and formula compatibility
remain bounded features; unsupported OOXML parts may be preserved, lost, or
rejected depending on the operation. The browser playground rejects external
links, PivotTables/PivotCaches, embedded media, threaded comments, slicers,
and custom XML when lossless preservation is not available.

Legacy `.xls` and `.xlsb` files can be read (values, formulas, dates, merges,
sheet visibility) and saved as `.xlsx`. The Python wheel includes this; Rust
users enable the `legacy-formats` feature. CSV import and export is in
`elixcee.csv` (`read_csv`, `write_csv`, `csv_to_xlsx`, `xlsx_to_csv`).

See the [v1 support contract](docs/v1-support-contract.md),
[formula list](FUNCTIONS.md), and [limits](docs/limits.md) before adoption.

## Development

See the [roadmap](ROADMAP.md) for current priorities and release gates.
Unreleased changes are listed in [CHANGELOG.md](CHANGELOG.md).

License: [MIT](docs/licensing.md). See [third-party notices](THIRD_PARTY_NOTICES.md).

