Skip to main content

A toolkit for working with spreadsheets from Claude Code

Project description

sheetwright

A toolkit that lets Claude Code work with spreadsheets the way it works with code: text-source files, git, TDD, diffs, and review.

.xlsx is treated as a build artifact compiled from text sources. You write Markdown tables and YAML sidecars; sheetwright produces the workbook and runs LibreOffice Calc in headless mode (the default, swappable calc engine) to evaluate every formula. From there you assert on outputs with ordinary Python tests, diff source against any other workbook, and snapshot calculated values for regression checks.

sheetwright also ships an MCP (Model Context Protocol) server, so Claude Code (or any MCP client) can drive a project end-to-end through typed tools that mirror the CLI.

Quick reference

sheetwright init my-model              # scaffold a fresh project
sheetwright import path/to/model.xlsx  # ingest an existing workbook (or re-import)
sheetwright build                      # compile sources -> build/<name>.xlsx
sheetwright recalc                     # run the calc engine, cache results
sheetwright test                       # run testsweet tests
sheetwright snapshot [--update]        # golden-file regression of outputs
sheetwright diff [--vs xlsx:<path>]    # semantic diff of source or vs an xlsx
sheetwright check                      # lint dangling refs, missing names, etc.
sheetwright mcp                        # run the MCP server on stdio

Installation

sheetwright uses uv for project management and Python 3.11.

git clone https://github.com/kaapstorm/sheetwright.git
cd sheetwright
uv sync
uv run sheetwright --help

LibreOffice must be on PATH for the default calc engine.

  • Debian/Ubuntu: apt install libreoffice
  • macOS: brew install --cask libreoffice
  • Windows (PowerShell): winget install --id TheDocumentFoundation.LibreOffice

Windows users new to the command line should start with the Windows setup primer.

Documentation

License

GPL-3.0-or-later.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sheetwright-0.1.2.tar.gz (179.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sheetwright-0.1.2-py3-none-any.whl (79.3 kB view details)

Uploaded Python 3

File details

Details for the file sheetwright-0.1.2.tar.gz.

File metadata

  • Download URL: sheetwright-0.1.2.tar.gz
  • Upload date:
  • Size: 179.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sheetwright-0.1.2.tar.gz
Algorithm Hash digest
SHA256 dd156017d2f7a1dd2b3727d346604c9fe9a56e213cdb8f81da1fbf2bb4175c21
MD5 2134444ad4d1c4296ce11d6582038d2d
BLAKE2b-256 3ff6ffd86de3620171949b1c119a75074f0b9accb56f8cca53f8f1fa903d22c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for sheetwright-0.1.2.tar.gz:

Publisher: publish.yml on kaapstorm/sheetwright

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sheetwright-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sheetwright-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 79.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sheetwright-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f7142e7b871738d2104ed48d5113c339833ce6b403fbdf04abf72e554f906b37
MD5 cc939f283fdcaca57e959f01e002d8eb
BLAKE2b-256 f55dadf0197215d1af56a0dc40ff5d681b234e8d3c5d73adc94d96f468ab02fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for sheetwright-0.1.2-py3-none-any.whl:

Publisher: publish.yml on kaapstorm/sheetwright

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page