This repository has been archived by the owner on May 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
71 additions
and
95 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
|Travis|_ |Coveralls|_ | ||
|
||
.. |Travis| image:: https://api.travis-ci.org/python-excel/xlwt.png?branch=master | ||
.. _Travis: https://travis-ci.org/python-excel/xlwt | ||
|
||
.. |Coveralls| image:: https://coveralls.io/repos/python-excel/xlwt/badge.png?branch=master | ||
.. _Coveralls: https://coveralls.io/r/python-excel/xlwt?branch=master | ||
|
||
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. | ||
|
||
Problems? | ||
========= | ||
Try the following in this order: | ||
|
||
- Read the source | ||
|
||
- Ask a question on http://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. |