Skip to main content

Travis Coveralls Docs PyPI

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.

Please read this before using this package: https://groups.google.com/d/msg/python-excel/P6TjJgFVjMI/g8d0eWxTBQAJ

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: https://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.

Release files for xlwt 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xlwt 1.3.0
File Size Uploaded
xlwt-1.3.0.tar.gz 153.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xlwt 1.3.0
File Interpreter ABI Platform
xlwt-1.3.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 253.9 kB

Release files / xlwt-1.3.0.tar.gz

Download URL xlwt-1.3.0.tar.gz
Size 153.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c59912717a9b28f1a3c2a98fd60741014b06b043936dcecbc113eaaada156c88
BLAKE2b-256 checksum
How to use checksums
069756a6f56ce44578a69343449aa5a0d98eefe04085d69da539f3034e2cd5c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / xlwt-1.3.0-py2.py3-none-any.whl

Download URL xlwt-1.3.0-py2.py3-none-any.whl
Size 100.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a082260524678ba48a297d922cc385f58278b8aa68741596a87de01a9c628b2e
BLAKE2b-256 checksum
How to use checksums
4448def306413b25c3d01753603b1a222a011b8621aed27cd7f89cbc27e6b0f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.0.0

2 release files

0.7.5

1 release file

0.7.4

1 release file

0.7.3

3 release files

0.7.2

3 release files

0.7.1

3 release files

0.7.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page