Creating Excel files with Python and XlsxWriter
XlsxWriter is a Python module for creating Excel XLSX files.
(Sample code to create the above spreadsheet.)
XlsxWriter
XlsxWriter supports the following features in version 0.2.7:
- 100% compatible Excel XLSX files.
- Write text, numbers, formulas, dates to cells.
- Write hyperlinks to cells.
- Full cell formatting.
- Multiple worksheets.
- Page setup methods for printing.
- Merged cells.
- Defined names.
- Autofilters.
- Data validation and drop down lists.
- Conditional formatting.
- Worksheet PNG/JPEG images.
- Rich multi-format strings.
- Cell comments.
- Document properties.
- Worksheet cell protection.
- Freeze and split worksheet panes.
- Memory optimisation mode for writing large files.
- Standard libraries only.
- Python 2.6, 2.7, 3.1, 3.2 and 3.3 support.
This document explains how to use the XlsxWriter module. See the following
sections for more information.