Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files, on any platform, with Python 2.6, 2.7, 3.3+
Project description
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:
Read the source
Ask a question on https://groups.google.com/group/python-excel/
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file xlwt-1.3.0.tar.gz
.
File metadata
- Download URL: xlwt-1.3.0.tar.gz
- Upload date:
- Size: 153.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c59912717a9b28f1a3c2a98fd60741014b06b043936dcecbc113eaaada156c88 |
|
MD5 | 4b1ca8a3cef3261f4b4dc3f138e383a8 |
|
BLAKE2b-256 | 069756a6f56ce44578a69343449aa5a0d98eefe04085d69da539f3034e2cd5c1 |
File details
Details for the file xlwt-1.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: xlwt-1.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 100.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a082260524678ba48a297d922cc385f58278b8aa68741596a87de01a9c628b2e |
|
MD5 | 085e6a73f9bffa8de4abd2c131b8afd5 |
|
BLAKE2b-256 | 4448def306413b25c3d01753603b1a222a011b8621aed27cd7f89cbc27e6b0f4 |