Witan spreadsheet CLI and Python SDK for coding agents
Actively maintained. Last release 4 months ago, commits in 6 of the last 26 weeks. A safe choice.
pip install witanwitan-cli
The Office toolkit for coding agents — edit, render, calculate, and lint Excel workbooks, plus render, script, and lint PPTX files.
Documentation | How we built it
Install
Quick Install Script
curl -fsSL https://witanlabs.com/install.sh | sh
Or try without installing: npx witan / uvx witan
From GitHub Releases
Download the latest artifacts from:
Example (macOS Apple Silicon):
curl -fsSL https://github.com/witanlabs/witan-cli/releases/latest/download/witan-darwin-arm64.tar.gz | tar -xz
install -m 0755 witan /usr/local/bin/witan
From PyPI
Install the bundled CLI and Python SDK from PyPI:
# one-shot run without permanent install
uvx witan --help
# persistent install
pip install witan
Python SDK example:
from witan import Workbook
with Workbook("report.xlsx") as wb:
sheets = wb.list_sheets()
tsv = wb.read_range_tsv("Summary!A1:F20")
Create and save a new workbook:
from witan import Workbook
with Workbook("model.xlsx", create=True) as wb:
wb.add_sheet("Inputs")
wb.set_cells([{"address": "Inputs!A1", "value": "Revenue"}])
wb.save()
Async sessions are available for asyncio applications:
from witan import AsyncWorkbook
async with AsyncWorkbook("report.xlsx") as wb:
cell = await wb.read_cell("Summary!A1")
Notebook and REPL sessions can use an explicit close instead of a context manager:
from witan import Workbook
wb = Workbook("report.xlsx")
tsv = wb.read_range_tsv("Summary!A1:F20")
wb.close()
In Jupyter/IPython, async sessions can use top-level await:
from witan import AsyncWorkbook
wb = AsyncWorkbook("report.xlsx")
cell = await wb.read_cell("Summary!A1")
await wb.close()
From npm
Install the bundled CLI and Node.js SDK from npm (requires Node.js 22+):