openpyxl alternatives, measured
openpyxl alternatives with formula recalculation and faster performance
Short answer: WolfXL. It is a Rust-backed Excel library for Python that keeps the openpyxl API (import wolfxl as openpyxl), edits existing .xlsx and .xlsm files in place, and calculates formulas with no Excel or LibreOffice: wb.calculate() evaluates supported formulas, and in the committed calculation check below version 2.0.21 saved 133/133 correct cached values on a financial model. openpyxl only keeps formula text. In the committed benchmark run below, WolfXL wrote a 1.6-million-cell sheet 10.94x faster than openpyxl, and its edit-and-save phase on a 200,000-row workbook was 35.79x faster. Install the Community edition with pip install wolfxl.Use WolfXL when... you edit existing .xlsx or .xlsm templates and need to preserve charts, pivots, styles, validation, and macros; want faster openpyxl-shaped streaming reads with an import change; or calculate formulas and save cached values.Use something else when... you only extract values for DataFrames (fastexcel; python-calamine for many small files), need write-only generation (XlsxWriter), or prioritize peak memory for new files (PyExcelerate; see the measured tradeoffs below).
Why choose WolfXL over openpyxl?
- Edit the workbook, not just its values: WolfXL changes named cells in an existing template while preserving unrelated workbook parts. Keep charts, pivot tables, styles, validation, and VBA macros instead of rebuilding the file. Read the preservation receipts and check your own templates before switching.
- Keep familiar Python code: install WolfXL and use
import wolfxl as openpyxlfor supported openpyxl-shaped workflows. The migration guide covers the switch and compatibility limits. The receipts below measure the pinned packages, not every possible workbook. - Calculate and save results: since 2.0.10, Community
calculate()followed bysave()writes calculated values into the file. Version 2.0.21 saved 133/133 correct cached values on ExcelBench's financial model in the committed calculation check (raw results). Formula coverage still depends on the functions in your workbook.
Who ran these benchmarks?
These benchmarks are run by the WolfXL authors, not an independent testing organization. The harness and raw results are public. We invite independent reruns on your own hardware and workbooks: open an issue with your results, package versions, and command. Choose by workload and measured tradeoffs, not by the publisher's headline.
What each library can actually do
| Library | Read .xlsx | Write .xlsx | Modify existing file | openpyxl-shaped API |
|---|---|---|---|---|
| wolfxl 2.0.21full read/write | Yes | Yes | Yes | Yes (supported workflows) |
| openpyxl 3.1.5full read/write | Yes | Yes | Yes | It is openpyxl |
| XlsxWriter 3.2.9write-only | No | Yes | No | No |
| PyExcelerate 0.13.0write-only | No | Yes | No | No |
| python-calamine 0.8.2read-only | Yes (values) | No | No | No |
| fastexcel 0.20.2read-only | Yes (Arrow) | No | No | No |
The measured numbers, one committed run
Run label 2026-10-27 (raw UTC timestamp 2026-10-28): AMD EPYC 9655, 16 virtual CPUs, Linux x86_64, Python 3.13.15. Published PyPI packages, median of 5 measured rounds after one discarded warmup per case; the OS page cache was not flushed. These are warmed-operation timings, not cold-start measurements. The large cases are a 200,000-row, 8-column sheet (1.6 million cells). The read fixture was written by openpyxl. Peak RSS is one separate fresh-process run per engine and includes imports and input data. Full tables and package identities are in the published results file (raw JSON, harness source).
API scope matters: WolfXL writes use its bulk ws.write_rows(grid) API, while openpyxl uses ws.append(row) in default workbook mode. These write ratios are not import-only speedups. Both Python workbook readers use read_only=True and iter_rows(values_only=True); their read timings and RSS describe streaming values, not full editable workbook loads. Write-only openpyxl and constant-memory XlsxWriter modes were not included in this run.
| Library | Read 1.6M cells | Write 1.6M cells | Peak RSS, write | Peak RSS, read |
|---|---|---|---|---|
| wolfxl 2.0.21full read/write | 0.4322 s | 0.7449 s | 449 MiB | 186 MiB |
| openpyxl 3.1.5full read/write | 4.7791 s | 8.1507 s | 775 MiB | 200 MiB |
| XlsxWriter 3.2.9write-only | not supported | 4.6574 s | 463 MiB | not supported |
| PyExcelerate 0.13.0write-only | not supported | 3.6882 s | 296 MiB | not supported |
| python-calamine 0.8.2read-only | 0.5796 s | not supported | not supported | 319 MiB |
| fastexcel 0.20.2read-only | 0.4140 s | not supported | not supported | 299 MiB |
On this 1.6-million-cell workbook, WolfXL wrote in 0.7449 s: 10.94x openpyxl, 6.25x XlsxWriter, and 4.95x PyExcelerate. WolfXL streamed values with read_only=True in 0.4322 s, 11.06x openpyxl. fastexcel read in 0.4140 s and was slightly faster than WolfXL.
| Library | Write 500K unique strings |
|---|---|
| wolfxl 2.0.21full read/write | 0.2590 s |
| openpyxl 3.1.5full read/write | 3.0970 s |
| XlsxWriter 3.2.9write-only | 2.1996 s |
| PyExcelerate 0.13.0write-only | 1.3333 s |
For 500,000 unique strings, WolfXL wrote in 0.2590 s: 11.96x openpyxl and 8.49x XlsxWriter. These results describe the measured data shapes, not every report.
Editing an existing workbook: operation time versus test time
The separate two-cell edit receipt measures WolfXL's load_workbook(path, modify=True) path against openpyxl, including save. On the 200,000-row, 8-column plain workbook, the edit-and-save phase took 0.388516 s with WolfXL and 13.903979 s with openpyxl: 35.79x faster for that operation. On the 10,000-row, 5-column case, it was 0.018771 s versus 0.514524 s: 27.41x.
The full harness also copies the fixture and reopens the result with openpyxl to check both changed cells. Including those setup and verification steps, its measured totals are only 2.45x and 2.54x faster, respectively. Those totals are not the edit-and-save phase, and the operation ratios are not end-to-end application speedups or an import-only promise.
Same hardware and pinned packages as above, 5 rounds; the small case discards one warmup and the large case none. Page cache was not flushed. The overall timeout was 600 seconds, with no per-round timeout in this harness. These plain-cell fixtures measure edit speed, not chart, pivot, or macro preservation; test your own templates for those requirements.
Where the alternatives win or tie
- Write peak memory: PyExcelerate used 296 MiB, compared with WolfXL's 449 MiB and XlsxWriter's 463 MiB on the large write. XlsxWriter's default mode did not use less memory than WolfXL in this run. Its separate constant-memory mode is not measured here.
- Pure value extraction: fastexcel (0.4140 s) and Polars (0.4108 s) were slightly faster than WolfXL (0.4322 s) on the large read. Arrow tables suit DataFrame-first pipelines, but are not the same output representation as Python values. python-calamine returns Python values and leads ExcelBench's small-file read workload.
- Mixed-type DataFrame output: DuckDB wrote the mixed-type case in 0.0256 s, faster than WolfXL's 0.0371 s. Its input DataFrame is constructed outside the timed operation; this is not an existing-template edit.
Switch from openpyxl
WolfXL Community follows the openpyxl-shaped API for supported workflows. Start with an install and an import change, then check the migration guide against the APIs your code uses:
pip install wolfxl
# then
import wolfxl as openpyxlThis page benchmarks the free, MIT-licensed Community package. WolfXL also offers commercial features under a separate license; see edition boundaries and pricing.
Why ExcelBench shows a smaller read speedup
ExcelBench's performance summary sums 19 small per-feature p50 timings, with 3 warmups and 25 iterations per feature. Its read totals were WolfXL 14.54 ms and python-calamine 1.75 ms; WolfXL was 1.52x openpyxl. That workload emphasizes per-call overhead. This page's large-file read measures one workbook with 1.6 million cells, emphasizing throughput.
The environments also differ: ExcelBench used an Apple M5 Pro, macOS, and Python 3.13.9 on a shared machine, while this page uses the Linux EPYC run described above. Workload size is not the only variable, and neither result predicts how your own workbooks or DataFrame pipelines perform. ExcelBench is also published by SynthGL, the organization behind WolfXL.
Reproduce the ecosystem and edit measurements
The ecosystem harness runs write-only libraries only on writes and read-only libraries only on reads. Each timing round and memory process has a 240-second budget; the overall run has a 3,000-second timeout. pylightxl exceeded the budget on large plain writes, string writes, and write RSS, recorded as DNF rather than dropped. This shorter budget differs from the historical run, so DNF is not evidence of a version regression. Run this example in a POSIX shell with the Python version recorded above.
git clone https://github.com/SynthGL/wolfxl-oss
cd wolfxl-oss
git checkout 405465b04e67f844ef1013e755e1f25f7d2d59bc
python -m venv .bench && .bench/bin/pip install wolfxl==2.0.21 openpyxl==3.1.5 \
xlsxwriter==3.2.9 pyexcelerate==0.13.0 python-calamine==0.8.2 fastexcel==0.20.2 \
pyarrow==25.0.1 pylightxl==1.61 pandas==3.0.5 polars==1.43.2 duckdb==1.5.5 \
tablib==3.10.0 pyexcel==0.7.6 pyexcel-xlsx==0.6.1 xlsx2csv==0.8.6
.bench/bin/python benchmarks/benchmark_python_excel_ecosystem.py \
--rounds 5 --round-budget 240 \
--engines wolfxl,openpyxl,xlsxwriter,pyexcelerate,pylightxl,pandas_openpyxl,pandas_calamine,polars,python_calamine,fastexcel,duckdb,tablib,pyexcel,xlsx2csv,grid_baseline \
--output-dir /tmp/ecosystem-results --prefix my-run
.bench/bin/python benchmarks/benchmark_openpyxl_vs_wolfxl.py \
--rounds 5 --large-rounds 5 --case modify_two_cells_plain \
--case large_modify_two_cells_plain --no-memory \
--output-dir /tmp/ecosystem-results --prefix my-modify-runThese commands pin the harness and primary packages. Full environment identities, indirect dependency versions, and the original outer timeout wrappers are recorded in the linked results; those wrappers are not installed by this example. ExcelBench reproduction commands are in its linked reports. Different machines will produce different absolute times.