python-excel

xlrd: Read Data from Legacy Excel .xls Files

xlrd is a Python library for reading data and formatting from historical Excel .xls files. It suits scripts and applications that need to extract worksheet contents from this older format, not newer .xlsx workbooks.

Stars
2.2k
Forks
438
Stars, last 30 days
+4
Last commit
25 days ago
Contributors
39

Our take

Maintaineda few commits in the last 90 days

Health score

39/100

How it is scored
Activity
29
Community
64
Issues
21
Pull requests
43

+4 stars in the last 30 days

xlrd is a focused option for legacy .xls reading, with recent maintenance activity but no release in the past year and limited recent issue and pull request handling.

Good fit if

  • Your input files are specifically historical .xls workbooks.
  • You need Python access to worksheet values, dimensions, comments, or hyperlinks.
  • You can work within its documented limitations on formulas and embedded spreadsheet features.

Look elsewhere if

  • You need to read .xlsx or other newer Excel formats.
  • Your workflow depends on formulas, macros, charts, filters, pivot tables, or other unsupported features.
  • Your adoption process requires a recent release or active recent issue closure; none is recorded in the supplied project health data.
All health signals
Last commit2026-10-12 (25 days ago)
Commits, last 90 days2
Releases, last 12 months0
Contributors39 (top contributor: 52% of commits)
Issues closed, last 90 days0
Pull requests merged, last 90 days1
Project age14 years

Checked on 2026-11-07 with the GitHub API.

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

2,208

Forks

438

Change since Nov 17, 2026: +2 stars·0 forks

Overview

xlrd is a Python library for reading data and formatting information from historical Excel .xls files. It is intended for developers who need to inspect workbooks and extract worksheet contents, such as cell values, dimensions, and names. The project explicitly no longer reads other Excel formats, so .xlsx files need a different library.

It can also expose cell comments and hyperlinks. Formula results can be extracted, but formulas themselves are not supported, and several embedded or interactive spreadsheet features are ignored. See the project site for alternatives when you need formats or capabilities outside this scope.

Key Features

  • Opens historical .xls workbooks from Python.
  • Lists worksheet names and reads sheets by index or name.
  • Provides worksheet dimensions and cell values.
  • Reads cell comments through Sheet.cell_note_map.
  • Exposes hyperlinks through Sheet.hyperlink_list and Sheet.hyperlink_map.
  • Extracts calculated formula results, but not formulas themselves.
  • Includes a command-line script for displaying selected rows from .xls files.

Use Cases

  • A Python data pipeline needs to extract tabular values from a collection of legacy .xls workbooks.
  • A developer is adding support for older Excel files to an application that already processes data in Python.
  • An analyst needs a small script to inspect worksheet names, dimensions, or selected cell values in .xls files.
  • A migration project needs to read old workbooks before converting their contents into another format.

What you need

Detected in the repository

  • Python (from setup.py)
  • A test suite

Getting Started

Install from PyPI:

pip install xlrd

Then open a workbook with xlrd.open_workbook("myfile.xls"). See the README for examples and command-line usage.

License in Plain Words

No standard license was detected. Without a license, the default copyright rules apply: you may read the code, but not reuse it. Check the repository or ask the authors.

Considerations

  • xlrd only reads .xls files. The README directs users to other libraries for newer Excel formats.
  • Charts, macros, pictures and other embedded objects, VBA modules, and a range of spreadsheet features such as autofilters, pivot tables, conditional formatting, and data validation are not supported. These are ignored where applicable.
  • Password-protected files cannot be read. Formula calculations are available as results, but formulas are not.
  • The project is marked maintained and has a few recent commits, though it has had no release in over a year. The supplied data shows 39 contributors overall, with contributions not classified as concentrated around one person; no issues were closed in the recent measurement period and one pull request was merged.
  • The project is Python-based, with tests present in the supplied repository facts. CI was not detected in those facts.

Found this useful?

Share it with someone who would like xlrd.