Skip to main content

XLSXLite

Build Status Coverage Status PyPI Release

This is a lightweight XLSX writer with emphasis on minimizing memory usage. It's also really fast.

from xlsxlite.writer import XLSXBook
book = XLSXBook()
sheet1 = book.add_sheet("People")
sheet1.append_row("Name", "Email", "Age")
sheet1.append_row("Jim", "jim@acme.com", 45)
book.finalize(to_file="simple.xlsx")

Benchmarks

The benchmarking test writes rows with 10 cells of random string data to a single sheet workbook. The table below gives the times in seconds (lower is better) to write a spreadsheet with the given number of rows, and includes xlxswriter and openpyxl for comparison.

Implementation 100,000 rows 1,000,000 rows
openpyxl 43.5 469.1
openpyxl + lxml 21.1 226.3
xlsxwriter 17.2 186.2
xlsxlite 1.9 19.2

Limitations

This library is for projects which need to generate large spreadsheets, quickly, for the purposes of data exchange, and so it intentionally only supports a tiny subset of SpreadsheetML specification:

  • No styling or themes
  • Only strings, numbers, booleans and dates are supported cell types

If you need to do anything fancier then take a look at xlxswriter and openpyxl.

Development

To run all tests:

uv run pytest xlsxlite -s

Metadata

Release files for xlsxlite 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xlsxlite 1.1.1
File Size Uploaded
xlsxlite-1.1.1.tar.gz 38.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xlsxlite 1.1.1
File Interpreter ABI Platform
xlsxlite-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 46.9 kB

Release files / xlsxlite-1.1.1.tar.gz

Download URL xlsxlite-1.1.1.tar.gz
Size 38.1 kB
Tags Source
SHA-256 checksum
How to use checksums
068a755d3302acbe8bb4ed77697634d6a5ed60980bd4a8821a6a5daea0c7c45d
BLAKE2b-256 checksum
How to use checksums
3e8d10c6fd24c354c4df4b942f5170250b77ab19269c55ad40f86bfa8fb6a814
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / xlsxlite-1.1.1-py3-none-any.whl

Download URL xlsxlite-1.1.1-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8925a2a83cfdf64cf9aa0855c9ed64230ead51bf477a91534f527b65aea71408
BLAKE2b-256 checksum
How to use checksums
175a1feb421d3c191825872bf4fe20890298743c3e926e1e4ceddff266724537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page