https://github.com/python-excel/xlwt
Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files, on any platform.
https://github.com/python-excel/xlwt
Last synced: 25 days ago
JSON representation
Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files, on any platform.
- Host: GitHub
- URL: https://github.com/python-excel/xlwt
- Owner: python-excel
- License: other
- Archived: true
- Created: 2012-03-07T04:53:58.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2020-02-21T21:04:05.000Z (over 5 years ago)
- Last Synced: 2024-09-27T04:04:30.315Z (about 1 year ago)
- Language: Python
- Homepage: http://www.python-excel.org/
- Size: 642 KB
- Stars: 1,043
- Watchers: 65
- Forks: 283
- Open Issues: 8
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-python - xlwt - excel/xlrd) - Writing and reading data and formatting information from Excel files. (Specific Formats Processing)
- awesome-quant - xlwt - Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files, on any platform. (Python / Excel Integration)
- awesome-python-zh - xlwt - excel/xlrd)-从Excel文件中写入和读取数据和格式化信息。 (特定格式处理)
- awesome-quant - xlwt - Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files, on any platform. (Python / Excel Integration)
- awesome-python - xlwt - excel/xlrd) - Writing and reading data and formatting information from Excel files. (Specific Formats Processing)
- fucking_awesome_python - xlwt - excel/xlrd) - :star: 788 :fork_and_knife: 185 - Writing and reading data and formatting information from Excel files. (Specific Formats Processing)
- starred-awesome - xlwt - Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files, on any platform. (Python)
- awesome-quant - xlwt - 创建兼容 MS Excel 97/2000/XP/2003 XLS 文件的库。 (Python / Excel 集成)
- awesome-python - xlwt - excel/xlrd) - Writing and reading data and formatting information from Excel files. (Specific Formats Processing)
- fucking-awesome-python - xlwt - excel/xlrd)) - Writing and reading data and formatting information from Excel files. (Specific Formats Processing)
- fucking-awesome-python - :octocat: xlwt - excel/xlrd) - :star: 1025 :fork_and_knife: 295 - Writing and reading data and formatting information from Excel files. (Specific Formats Processing)
- awesome-python - xlwt - excel/xlrd) - Writing and reading data and formatting information from Excel files. (Specific Formats Processing)
README
|Travis|_ |Coveralls|_ |Docs|_ |PyPI|_
.. |Travis| image:: https://api.travis-ci.org/python-excel/xlwt.svg?branch=master
.. _Travis: https://travis-ci.org/python-excel/xlwt
.. |Coveralls| image:: https://coveralls.io/repos/python-excel/xlwt/badge.svg?branch=master
.. _Coveralls: https://coveralls.io/r/python-excel/xlwt?branch=master
.. |Docs| image:: https://readthedocs.org/projects/xlwt/badge/?version=latest
.. _Docs: https://xlwt.readthedocs.io/en/latest/
.. |PyPI| image:: https://badge.fury.io/py/xlwt.svg
.. _PyPI: https://badge.fury.io/py/xlwt
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
===========
.. code-block:: python
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:
- 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 .
xlwt uses ANTLR v 2.7.7 to generate its formula compiler.