xlrd-2024


Namexlrd-2024 JSON
Version 2.0.1 PyPI version JSON
download
home_pagehttp://surajnanavare.com
SummaryLibrary for developers to extract data from Microsoft Excel (tm) .xls spreadsheet files
upload_time2024-04-26 11:13:22
maintainerNone
docs_urlNone
authorSuraj Nanavare
requires_python!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7
licenseBSD
keywords xls excel spreadsheet workbook
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            xlrd
====

|Build Status|_ |Coverage Status|_ |Documentation|_ |PyPI version|_

.. |Build Status| image:: https://circleci.com/gh/python-excel/xlrd/tree/master.svg?style=shield
.. _Build Status: https://circleci.com/gh/python-excel/xlrd/tree/master

.. |Coverage Status| image:: https://codecov.io/gh/python-excel/xlrd/branch/master/graph/badge.svg?token=lNSqwBBbvk
.. _Coverage Status: https://codecov.io/gh/python-excel/xlrd

.. |Documentation| image:: https://readthedocs.org/projects/xlrd/badge/?version=latest
.. _Documentation: http://xlrd.readthedocs.io/en/latest/?badge=latest

.. |PyPI version| image:: https://badge.fury.io/py/xlrd.svg
.. _PyPI version: https://badge.fury.io/py/xlrd


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:

*   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:

.. code-block:: bash

    pip install xlrd2
    
.. code-block:: python

    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:

.. code-block:: bash

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

            

Raw data

            {
    "_id": null,
    "home_page": "http://surajnanavare.com",
    "name": "xlrd-2024",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7",
    "maintainer_email": null,
    "keywords": "xls, excel, spreadsheet, workbook",
    "author": "Suraj Nanavare",
    "author_email": "surajsnanavare@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/28/37/1428529515fffd4a4aed070b18b76cc70b523198fccf5b143e23f6497d42/xlrd_2024-2.0.1.tar.gz",
    "platform": null,
    "description": "xlrd\n====\n\n|Build Status|_ |Coverage Status|_ |Documentation|_ |PyPI version|_\n\n.. |Build Status| image:: https://circleci.com/gh/python-excel/xlrd/tree/master.svg?style=shield\n.. _Build Status: https://circleci.com/gh/python-excel/xlrd/tree/master\n\n.. |Coverage Status| image:: https://codecov.io/gh/python-excel/xlrd/branch/master/graph/badge.svg?token=lNSqwBBbvk\n.. _Coverage Status: https://codecov.io/gh/python-excel/xlrd\n\n.. |Documentation| image:: https://readthedocs.org/projects/xlrd/badge/?version=latest\n.. _Documentation: http://xlrd.readthedocs.io/en/latest/?badge=latest\n\n.. |PyPI version| image:: https://badge.fury.io/py/xlrd.svg\n.. _PyPI version: https://badge.fury.io/py/xlrd\n\n\nxlrd is a library for reading data and formatting information from Excel\nfiles in the historical ``.xls`` format.\n\n.. warning::\n\n  This library will no longer read anything other than ``.xls`` files. For\n  alternatives that read newer file formats, please see http://www.python-excel.org/.\n\nThe following are also not supported but will safely and reliably be ignored:\n\n*   Charts, Macros, Pictures, any other embedded object, **including** embedded worksheets.\n*   VBA modules\n*   Formulas, but results of formula calculations are extracted.\n*   Comments\n*   Hyperlinks\n*   Autofilters, advanced filters, pivot tables, conditional formatting, data validation\n\nPassword-protected files are not supported and cannot be read by this library.\n\nQuick start:\n\n.. code-block:: bash\n\n    pip install xlrd2\n    \n.. code-block:: python\n\n    import xlrd\n    book = xlrd.open_workbook(\"myfile.xls\")\n    print(\"The number of worksheets is {0}\".format(book.nsheets))\n    print(\"Worksheet name(s): {0}\".format(book.sheet_names()))\n    sh = book.sheet_by_index(0)\n    print(\"{0} {1} {2}\".format(sh.name, sh.nrows, sh.ncols))\n    print(\"Cell D30 is {0}\".format(sh.cell_value(rowx=29, colx=3)))\n    for rx in range(sh.nrows):\n        print(sh.row(rx))\n\nFrom the command line, this will show the first, second and last rows of each sheet in each file:\n\n.. code-block:: bash\n\n    python PYDIR/scripts/runxlrd.py 3rows *blah*.xls\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Library for developers to extract data from Microsoft Excel (tm) .xls spreadsheet files",
    "version": "2.0.1",
    "project_urls": {
        "Homepage": "http://surajnanavare.com"
    },
    "split_keywords": [
        "xls",
        " excel",
        " spreadsheet",
        " workbook"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "49e053a2e0c432c0c97d868d4f24376dfda51fca41b9b388360bed985af72623",
                "md5": "e39f14f8b68e3cebb8f5cf1a2620acc3",
                "sha256": "a743b29d24fba7395a950722e6324df64adbe5b23cf9c982e3a8570b153dd1ec"
            },
            "downloads": -1,
            "filename": "xlrd_2024-2.0.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e39f14f8b68e3cebb8f5cf1a2620acc3",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7",
            "size": 96632,
            "upload_time": "2024-04-26T11:13:21",
            "upload_time_iso_8601": "2024-04-26T11:13:21.023405Z",
            "url": "https://files.pythonhosted.org/packages/49/e0/53a2e0c432c0c97d868d4f24376dfda51fca41b9b388360bed985af72623/xlrd_2024-2.0.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "28371428529515fffd4a4aed070b18b76cc70b523198fccf5b143e23f6497d42",
                "md5": "c32b8d1971cc34a9b4a9d71b7abd43be",
                "sha256": "cc297f9064ba0fddfd5732b87589ef02ff1870374f02dd3dd8f93eb4cf98debe"
            },
            "downloads": -1,
            "filename": "xlrd_2024-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c32b8d1971cc34a9b4a9d71b7abd43be",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7",
            "size": 106967,
            "upload_time": "2024-04-26T11:13:22",
            "upload_time_iso_8601": "2024-04-26T11:13:22.375413Z",
            "url": "https://files.pythonhosted.org/packages/28/37/1428529515fffd4a4aed070b18b76cc70b523198fccf5b143e23f6497d42/xlrd_2024-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-26 11:13:22",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "xlrd-2024"
}
        
Elapsed time: 2.72784s