Skip to main content

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.

Metadata

Release files for xlwt 1.0.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.0.0
File Size Uploaded Provenance
xlwt-1.0.0.tar.gz 129.6 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 270.6 kB

Release files / xlwt-1.0.0.tar.gz

Download URL xlwt-1.0.0.tar.gz
Size 129.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ac432939eec8daa9f88af994ff53f009e607a4e1102772ec0be0b2a86b2c1cf9
BLAKE2b-256 checksum
How to use checksums
db4617afa9309022530e5da9197293a62825c40dd51172addfa13784d0efb826
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL xlwt-1.0.0-py2.py3-none-any.whl
Size 141.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
584d00415f8a27c95a75c5036d37117579c9199ff6d4d4ed98fce43d1b7aa377
BLAKE2b-256 checksum
How to use checksums
95fcfdbb4a90f00c2d28864972d68a35df4075d394a7082b789c10b6e773d780
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for xlwt 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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