skip to navigation
skip to content

xlwt 1.0.0

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+


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.


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',
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,, style1)
ws.write(2, 0, 1)
ws.write(2, 1, 1)
ws.write(2, 2, xlwt.Formula("A3+B3"))'example.xls')


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:


Try the following in this order:


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

xlwt uses ANTLR v 2.7.7 to generate its formula compiler.

File Type Py Version Uploaded on Size
xlwt-1.0.0-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2015-04-15 137KB
xlwt-1.0.0.tar.gz (md5) Source 2015-04-15 126KB
  • Downloads (All Versions):
  • 1344 downloads in the last day
  • 25016 downloads in the last week
  • 107983 downloads in the last month