Skip to main content

Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files, on any platform, with Python 2.6, 2.6, 3.3+

Project description

Travis Coveralls Docs

xlwt

This is a library for developers to use to generate spreadsheet files compatible with Microsoft Excel versions 95 to 2003.

The package itself is pure Python with no dependencies on modules or packages outside the standard Python distribution.

Installation

Do the following in your virtualenv:

pip install xlwt

Quick start

import xlwt
from datetime import datetime

style0 = xlwt.easyxf('font: name Times New Roman, color-index red, bold on',
    num_format_str='#,##0.00')
style1 = xlwt.easyxf(num_format_str='D-MMM-YY')

wb = xlwt.Workbook()
ws = wb.add_sheet('A Test Sheet')

ws.write(0, 0, 1234.56, style0)
ws.write(1, 0, datetime.now(), style1)
ws.write(2, 0, 1)
ws.write(2, 1, 1)
ws.write(2, 2, xlwt.Formula("A3+B3"))

wb.save('example.xls')

Documentation

Documentation can be found in the docs directory of the xlwt package. If these aren’t sufficient, please consult the code in the examples directory and the source code itself.

The latest documentation can also be found at: http://xlwt.readthedocs.org/en/latest/

Problems?

Try the following in this order:

Acknowledgements

xlwt is a fork of the pyExcelerator package, which was developed by Roman V. Kiseliov. This product includes software developed by Roman V. Kiseliov <roman@kiseliov.ru>.

xlwt uses ANTLR v 2.7.7 to generate its formula compiler.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xlwt-1.1.1.tar.gz (153.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xlwt-1.1.1-py2.py3-none-any.whl (99.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file xlwt-1.1.1.tar.gz.

File metadata

  • Download URL: xlwt-1.1.1.tar.gz
  • Upload date:
  • Size: 153.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xlwt-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5a11a6ca6f50ae9f1782d1c90d13161688c09b06fdb2cb9a279344e660942947
MD5 607ce162869ac9b4c5dc423e3e0323b8
BLAKE2b-256 feebba569c5411ebcd7ff509833b17f280ba2ec19daa95ae5c9f8f4a39dfdbf7

See more details on using hashes here.

File details

Details for the file xlwt-1.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for xlwt-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 30086cca1048bbd4f54a264cbb78478caa3158c8f5d1c3283623d4e18695fddc
MD5 8d28375e506fa072721d8f55fda34e63
BLAKE2b-256 6ccdbaaf1346f67ddb0d9bc81f85282b4e17a8e5be1e51d8bd71f68198188f8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page