Skip to main content

xlio

xlio is an internal package of the sheetmill project. It reads xlsx files as Excel reads them and changes their cells without disturbing anything else. It was extracted from xlrecalc, whose own reader and writer it began as, to be shared by the sheetmill packages. It is not intended for direct use: its API may change in any minor release (such as 0.3 to 0.4) without the deprecation period the public sheetmill packages give, while patch releases only fix bugs and keep the API. If you depend on it anyway, pin a minor version (for example xlio==0.5.*).

It is written in pure Python with the standard library only. The reader checks a package before it parses anything (part count and sizes, compression methods, encryption, names used twice, a DTD in any part) and refuses what Excel refuses; the writer copies every part it does not change byte for byte and rewrites only the cells it is given.

Which Excel it follows: read_csv reads a CSV file as Excel for Windows opens it, unless it is given platform="mac", which reads it as Excel for Mac does; both readings rest on results captured from Excel under Microsoft 365. The readings of xlsx files (open, check) take no platform: they were captured from Excel 16 for Mac and are not yet verified on Windows, except a cell font's size, read as Excel for Windows holds it and not yet verified on the Mac.

xlio is part of the sheetmill project, with xlformat, which applies Excel number formats, xlrecalc, which recalculates workbooks, and sheetpeek, which shows workbooks as Excel does.

Files from people you do not trust

Open them with limits=xlio.ReadLimits.UNTRUSTED, which bounds what reading one may cost (its parts, their sizes, its cells, its text). To report a security problem, see SECURITY.md.

Development

uv sync --group docs then uv run pytest; CONTRIBUTING.md has the pip route, the full set of checks and the commit conventions.

Most of the code is written with Claude Code, reviewed before each commit and tested against results captured from Excel; see CONTRIBUTING.md.

License

The code is under the MIT license (LICENSE). src/xlio/data/presetTableStyles.xml, the built-in table and pivot table styles from ECMA-376, is under Ecma International's text copyright policy, as published by Ecma; see NOTICE.

Metadata

Release files for xlio 0.5.0

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

Source distribution (sdist)

Source distribution for xlio 0.5.0
File Size Uploaded Provenance Actions
xlio-0.5.0.tar.gz 341.5 kB With provenance Details for xlio-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 475.2 kB

Release files / xlio-0.5.0.tar.gz

Download URL xlio-0.5.0.tar.gz
Size 341.5 kB
Tags Source
SHA-256 checksum
How to use checksums
31ec9afd9400a1b6fdc1412f3b0c12841bc9373ecd70cb3cd6f1685b2e0488bd
BLAKE2b-256 checksum
How to use checksums
1d693322b0ed41b3324b4ae82761c341a713a7a186aa017691b004f8ef666e3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / xlio-0.5.0-py3-none-any.whl

Download URL xlio-0.5.0-py3-none-any.whl
Size 133.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b299f0644714e9b9c65067b1f10606a5e845c08c56770a13f0854a42b23d0505
BLAKE2b-256 checksum
How to use checksums
d7289dd2232ee64e9dba2e595dc879f8113922e50057f8c67d0388875b0ddbea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for xlio 0.5.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xlio-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

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.

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