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.

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.

Release files for xlwt 1.1.2

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.1.2
File Size Uploaded
xlwt-1.1.2.tar.gz 153.4 kB Details

Built distribution (wheel)

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

Total release size: 253.2 kB

Release files / xlwt-1.1.2.tar.gz

Download URL xlwt-1.1.2.tar.gz
Size 153.4 kB
Tags Source
SHA-256 checksum
How to use checksums
aed648c17731f40f84550dd2a1aaa53569f0cbcaf5610ba895cd2632587b723c
BLAKE2b-256 checksum
How to use checksums
0b69644313df86e6375ec2c6b34ec8ac544b9cc7803b7d943223d32811860f3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL xlwt-1.1.2-py2.py3-none-any.whl
Size 99.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
61e2a8bcfd0f62fa27a26964bed3b4d1c4218c8ff155d7edbeb2c15f8a57c247
BLAKE2b-256 checksum
How to use checksums
0590e9a256ae4689a8daf73635e7761a8f9ece0a78fcf9af87bb9ef017e5bd85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.3.0

2 release files

1.2.0

2 release files

This release

1.1.2 This release

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