skillfed

spire-xls

A 100% standalone Excel Python API for Processing Excel Files

spire-xls v16.7.1 107.8K downloads/30d#12,599 on PyPI
License unclear Active released

What it is and what it does

Spire.XLS is a proprietary compiled Python library that provides a complete API for working with Excel files without installing Microsoft Office. It handles creation, reading, writing, and conversion of Excel spreadsheets in formats including .xls, .xlsx, .xlsb, .xlsm, and .ods. The library supports a wide range of operations: cell manipulation (merging, formatting, borders, fonts), worksheet management (add, copy, delete, hide), formulas and calculations, charts, images, comments, conditional formatting, and security features like encryption and digital signatures.

The package depends on plum-dispatch and is distributed as platform-specific compiled wheels for Windows, Linux (x64 and ARM64), and macOS (Intel and ARM64). It requires Python 3.7 or later. The library's main strength is its ability to convert Excel files to multiple formats (PDF, HTML, CSV, XML, TXT, SVG, XPS, ODS) and perform complex spreadsheet automation without external dependencies like LibreOffice or Microsoft Office.

Use it for:

  • Automate batch conversion of Excel spreadsheets to PDF or other formats in server-side applications.
  • Build data pipelines that read Excel files, manipulate cell data, and export to CSV or other formats.
  • Generate Excel reports programmatically with formatted cells, charts, and formulas without Office.
  • Encrypt or digitally sign Excel files for secure document distribution.
  • Parse and extract data from legacy .xls files and modern .xlsx/.xlsm formats in a single codebase.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Spire.XLS is a compiled Python library for creating, reading, writing, and converting Excel spreadsheets without requiring Microsoft Office.

Yes, with conditions. Spire.XLS is actively maintained and offers comprehensive Excel functionality without Office dependencies, making it valuable for automation and conversion tasks. However, the unclear license status requires verification before production use—confirm whether your use case (commercial, open-source, internal) is permitted under the proprietary terms. The compiled nature and platform-specific wheels mean you must match your OS and architecture exactly.

Install

spire-xls on PyPI

pip

pip install spire-xls

uv

uv add spire-xls

poetry

poetry add spire-xls

Installing spire-xls

Before you install

Medium install friction due to platform-specific wheels (Windows, Linux, macOS including ARM64). Actively maintained with a release within the last month. Depends on plum-dispatch, a lightweight runtime dependency.

License in practice

License treatment is unclear—classified as restricted/proprietary but with no SPDX identifier or raw license text provided. Verify licensing terms and any commercial restrictions before use in production.

Quickstart

pip install spire-xls
from spire.xls import Workbook
workbook = Workbook()
workbook.LoadFromFile('input.xlsx')
worksheet = workbook.Worksheets[0]
workbook.SaveToFile('output.pdf', FileFormat.PDF)

Requires Python 3.7 or later. Platform-specific wheel must match your OS and architecture (Windows x64, Linux x64/ARM64, macOS Intel/ARM64).

Verify before relying

  • Whether the 'unclear' license permits commercial use without additional licensing fees or restrictions.
  • Whether the library's compiled nature and proprietary status introduce any runtime licensing checks or phone-home behavior.
  • Performance characteristics and memory footprint when processing large Excel files.

Package facts

License not declared (unclear)
Python support supports the current Python release (>=3.7)
Install friction medium — platform-specific wheel
Runtime dependencies 1 — plum-dispatch
Maintenance actively maintained — 28 days since the last release
First released
Downloads 107,755/month — #12,599 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: spire_xls-16.7.1-py3-none-macosx_10_7_universal.whl; spire_xls-16.7.1-py3-none-macosx_11_0_arm64.whl; spire_xls-16.7.1-py3-none-manylinux2014_aarch64.whl; spire_xls-16.7.1-py3-none-manylinux_2_34_x86_64.whl; spire_xls-16.7.1-py3-none-win_amd64.whl

License :: Free To Use But RestrictedLicense :: Other/Proprietary LicenseOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxOperating System :: UnixProgramming Language :: Python :: 3.6

Tags

excel file processing pythonread write excel spreadsheetsconvert excel to pdfexcel api without officexlsx xls manipulationspreadsheet automation pythonexcel to csv conversion
spreadsheet-processingfile-conversionproprietary-library

More Utilities packages