Pyxlsx is a fast and memory-efficient Python library designed for reading data from XLSX (Excel) files. It focuses on parsing core data, shared strings, and basic styling, making it suitable for high-performance data extraction. The current stable version is 1.1.3, and releases are typically made for bug fixes and minor improvements as needed.
pip install pyxlsxVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create a simple XLSX file using `openpyxl` and then read its contents using `pyxlsx`. It shows basic row iteration and includes cleanup.
For writing or full manipulation, consider libraries like `openpyxl` or `xlsxwriter`.
Ensure `lxml` is installed successfully. On some systems, you might need to install development headers (e.g., `sudo apt-get install libxml2-dev libxslt1-dev` on Debian/Ubuntu, or `brew install libxml2 libxslt` on macOS) before `pip install lxml`.
Inspect output for specific cell types. For dates, consider using `datetime.datetime.fromtimestamp` or similar after parsing if the raw numeric value is returned.