Skip to main content

Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files, on any platform, with Python 2.7, 3.4+

Project description

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.io/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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xlwt_fix-1.3.1.tar.gz (98.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xlwt_fix-1.3.1-py2.py3-none-any.whl (105.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file xlwt_fix-1.3.1.tar.gz.

File metadata

  • Download URL: xlwt_fix-1.3.1.tar.gz
  • Upload date:
  • Size: 98.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for xlwt_fix-1.3.1.tar.gz
Algorithm Hash digest
SHA256 fd2ee1d88243633e4e136a82f0b3d8c77af632563a630e9deb0cee8e8dfa3358
MD5 c503c6fa54fc2b3a0c3862d4a8cd31d1
BLAKE2b-256 dd3a3a2c2c5fa3cbba229b88f1bede012e5e6490e1a341ee5b3cf292d375b21d

See more details on using hashes here.

File details

Details for the file xlwt_fix-1.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: xlwt_fix-1.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 105.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for xlwt_fix-1.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 53f39a15a5aa549532d5ef3327e3eb3a81f3b8a68c65ea8b0f0d3b7a9425df55
MD5 feed2b93157241be1a47be1025fc5ffd
BLAKE2b-256 a1a19d16c189de1aa0349b4560146cbdfeb0b4fc8430ff6906963d75ce6f1029

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page