Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files, on any platform, with Python 2.3 to 2.6
Pull request Compare This branch is 1 commit ahead, 134 commits behind python-excel:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' ''>
<meta http-equiv='Content-Type' content='text/html; charset=us-ascii' />
<title>xlwt README</title>
<p><h3>Python package "xlwt"</h3>
<p><b>Purpose:</b> Provide a library for developers to use to generate
    spreadsheet files compatible with Microsoft Excel versions 95 to 2003.
<p><b>Maintainer:</b> John Machin, Lingfo Pty Ltd (
<p><b>Licence:</b> BSD-style (see
<p><b>Version of xlwt:</b> 0.7.2
<p><b>Version of Python required:</b> 2.3 to 2.6
<p><b>External modules required:</b> None
The package itself is pure Python with no dependencies on modules or packages
outside the standard Python distribution.
<p><b>Quick start:</b>
<pre><code>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')
<li> Any OS: Unzip the .zip file into a suitable directory,
    chdir to that directory, then do "python install".
<li> If PYDIR is your Python installation directory:
    the main files are in PYDIR/Lib/site-packages/xlwt,
    docs are in the doc subdirectory.
<li> If os.sep != "/": make the appropriate adjustments.
<p><b>Download URLs:</b>
Documentation can be found in the 'doc' directory of the xlwt package.
If these aren't sufficient, please consult the code in the
examples directory and the source code itself.
<p>Try the following in this order:</p>
<li>Read the source</li>
<li>Ask a question on</li>
<li>E-mail the xlwt maintainer (sjmachin at, including
    "[xlwt]" as part of the message subject.</li>
<ul><li> xlwt is a fork of the pyExcelerator package, which was developed by
Roman V. Kiseliov.
"This product includes software developed by Roman V. Kiseliov &lt;;."
<li> xlwt uses ANTLR v 2.7.7 to generate its formula compiler.
<li> &lt;&lt; a growing list of names; see HISTORY.html &gt;&gt;: feedback, testing, test files, ...