Registry / data / xlrd2
library1.3.4pypypi✓ verified 81d ago

Library for developers to extract data from Microsoft Excel legacy spreadsheet files (.xls). Version 1.3.4 supports Python 2.7 and 3.4+. It is a maintained fork of the original xlrd, which dropped .xls support in version 2.0. Releases are infrequent.

pip install xlrd2
INSTALL
IMPORT
SIG · XLRD2
X
xlrd2
datapythonv1.3.4
Install
1.7s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.3.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 19MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Book
from xlrd2 import Book
import xlrd
XLRDError
from xlrd2 import XLRDError
import xlrd
open_workbook
from xlrd2 import open_workbook
import xlrd

Open an .xls file and read a cell value.

import xlrd workbook = xlrd.open_workbook('example.xls') sheet = workbook.sheet_by_index(0) print(sheet.cell_value(0, 0))
Debug
Known issues
gotchaImport as xlrd, not xlrd2. The import name is xlrd even though the package is installed as xlrd2.
fix
Use 'import xlrd'.
affects: all
breakingxlrd (original) dropped .xls support in version 2.0. xlrd2 is the maintained fork that continues to support .xls files.
fix
If you need .xls support, use xlrd2 instead of xlrd 2.0+.
affects: xlrd >= 2.0.0
deprecatedxlrd2 does not support .xlsx files. For .xlsx, use openpyxl or pandas.
fix
Use openpyxl or pandas for .xlsx files.
affects: all
Upgrade
Version history
1.3.4latest on PyPI · released Dec 8, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
48 hits · last 30 days
node
42
OpenAI (training)
1
Resources
xlrd2 — pip install xlrd2 · libregistry