XLSXLite
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xlsxlite-1.1.1.tar.gz | 38.1 kB | Without provenance | Details for xlsxlite-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xlsxlite-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for xlsxlite-1.1.1-py3-none-any.whl |
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}
|
Security for xlsxlite 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.