Skip to main content

xlrd

Build Status Coverage Status Documentation PyPI version

xlrd is a library for reading data and formatting information from Excel files in the historical .xls format.

The following are also not supported but will safely and reliably be ignored:

  • Charts, Macros, Pictures, any other embedded object, including embedded worksheets.

  • VBA modules

  • Formulas, but results of formula calculations are extracted.

  • Comments

  • Hyperlinks

  • Autofilters, advanced filters, pivot tables, conditional formatting, data validation

Password-protected files are not supported and cannot be read by this library.

Quick start:

import xlrd
book = xlrd.open_workbook("myfile.xls")
print("The number of worksheets is {0}".format(book.nsheets))
print("Worksheet name(s): {0}".format(book.sheet_names()))
sh = book.sheet_by_index(0)
print("{0} {1} {2}".format(sh.name, sh.nrows, sh.ncols))
print("Cell D30 is {0}".format(sh.cell_value(rowx=29, colx=3)))
for rx in range(sh.nrows):
    print(sh.row(rx))

From the command line, this will show the first, second and last rows of each sheet in each file:

python PYDIR/scripts/runxlrd.py 3rows *blah*.xls

Metadata

Release files for xlrd 2.0.1

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

Source distribution (sdist)

Source distribution for xlrd 2.0.1
File Size Uploaded Provenance Actions
xlrd-2.0.1.tar.gz 100.3 kB Without provenance Details for xlrd-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xlrd 2.0.1
File Interpreter ABI Platform Actions
xlrd-2.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for xlrd-2.0.1-py2.py3-none-any.whl

Total release size: 196.8 kB

Release files / xlrd-2.0.1.tar.gz

Download URL xlrd-2.0.1.tar.gz
Size 100.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f72f148f54442c6b056bf931dbc34f986fd0c3b0b6b5a58d013c9aef274d0c88
BLAKE2b-256 checksum
How to use checksums
a6b319a2540d21dea5f908304375bd43f5ed7a4c28a370dc9122c565423e6b44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Release files / xlrd-2.0.1-py2.py3-none-any.whl

Download URL xlrd-2.0.1-py2.py3-none-any.whl
Size 96.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6a33ee89877bd9abc1158129f6e94be74e2679636b8a205b43b85206c3f0bbdd
BLAKE2b-256 checksum
How to use checksums
a60cc2a72d51fe56e08a08acc85d13013558a2d793028ae7385448a6ccdfae64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Security for xlrd 2.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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