loongson/pypi/: xlrd-2.0.1 metadata and description

Homepage Simple index

Library for developers to extract data from Microsoft Excel (tm) .xls spreadsheet files

author Chris Withers
author_email chris@withers.org
classifiers
  • Development Status :: 5 - Production/Stable
  • Intended Audience :: Developers
  • License :: OSI Approved :: BSD License
  • Programming Language :: Python
  • Programming Language :: Python :: 2
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.6
  • Programming Language :: Python :: 3.7
  • Programming Language :: Python :: 3.8
  • Programming Language :: Python :: 3.9
  • Operating System :: OS Independent
  • Topic :: Database
  • Topic :: Office/Business
  • Topic :: Software Development :: Libraries :: Python Modules
keywords xls,excel,spreadsheet,workbook
license BSD
provides_extras test
requires_dist
  • wheel ; extra == 'build'
  • twine ; extra == 'build'
  • sphinx ; extra == 'docs'
  • pytest ; extra == 'test'
  • pytest-cov ; extra == 'test'
requires_python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
File Tox results History
xlrd-2.0.1-py2.py3-none-any.whl
Size
94 KB
Type
Python Wheel
Python
2.7
  • Replaced 1 time(s)
  • Uploaded to loongson/pypi by loongson 2025-04-09 10:37:24

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.

Warning

This library will no longer read anything other than .xls files. For alternatives that read newer file formats, please see http://www.python-excel.org/.

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

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