Skip to content

API reference

Generated from the docstrings of every public name (xlspy.__all__ and xlspy.workbook.__all__). Build it with zensical serve or zensical build (pip install -e .[docs]); the tutorial shows how the pieces fit together.

Page Contents
Writing New workbooks: the writers, sheet options and DataFrame export.
Reading Fast value extraction with ExcelReader.
Updating Edits to existing files that keep everything else in the package.
Workbook model load_workbook and the openpyxl-like objects it returns.
Styles and formatting Cell styles, conditional formats, tables and rich text.
Charts and other objects Charts, formulas, notes, links, images, pivots and printing.
Errors The exceptions xlspy raises.

Conventions

  • Signatures show the exact parameter names and types. Keyword-only parameters are marked with *.
  • Every public class and function has a docstring; the examples use the same names as the tutorial.
  • See Performance for the cost of the hot paths, and openpyxl parity for behavioural differences.