Skip to content

Next steps

You have written, styled, charted, read, updated and streamed workbooks. Pick the next path based on what you need.

How-to guides

Choose a format, add images and printing, build pivot tables, protect a workbook.

API reference

Every public class and function, with signatures and examples.

Examples

Runnable scripts for reports, DataFrames, dashboards and large exports.

Performance

Why XLSB is fast, what the native module accelerates, and how to measure it.

A checklist for production

  • [ ] Use with XlsxWriter(...) as workbook: so a failure publishes nothing.
  • [ ] Pass use_shared_strings=False for high-cardinality exports.
  • [ ] Stream from a generator or cursor instead of building a list.
  • [ ] Keep XLSX for interchange; use XLSB for large internal exports.
  • [ ] Test the generated file in Excel or LibreOffice at least once.
  • [ ] Read values with ExcelReader, not load_workbook(), when you do not need styles or edits.

Common questions

Does xlspy need Excel installed? No. The core read and write APIs are pure Python plus an optional Rust module.

Can I write .xlsm? You can update an existing .xlsm with XlsmUpdater and preserve its VBA project. Creating a new macro-enabled workbook from scratch is not supported.

Can I read .xlsb with other libraries? Some tools read XLSB; many do not. If the file is for interchange, write XLSX.

Why does a formula show #NAME? in Excel? A function added after Excel 2007 may need the _xlfn. prefix. xlspy adds it for known future functions; an unknown function raises or is written as given. See Formulas.

Where do I report a bug? GitHub issues. Include the smallest script and the error.

Back to the tutorial Read the how-to guides