xlwt
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+
Decision gist · record as of 2026-08-14
No, unless you are maintaining legacy code that specifically requires XLS output and cannot be migrated. The package is abandoned and will not receive security updates or compatibility fixes. For new projects, use a maintained alternative that supports XLSX (the modern Excel standard). If you must generate XLS files, xlwt works but carries the risk of unpatched bugs and incompatibility with future Python versions.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Targets Excel 97–2003 format (.xls); modern Excel versions prefer .xlsx.
- Abandoned since 2017; compatibility with current Python versions is not guaranteed.
- Installation is frictionless—a pure-Python wheel with no runtime dependencies.
License · maintenance · safety
BSD (permissive) — BSD license is permissive and poses no restrictions on commercial or private use, modification, or redistribution.
last release 2017-08-22 (3279 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 12,072,900 downloads/mo, #1,345 on PyPI
Alternatives
Verify before relying
pip install xlwt
import xlwt
from datetime import datetime
wb = xlwt.Workbook()
ws = wb.add_sheet('Sheet1')
ws.write(0, 0, 'Hello')
ws.write(1, 0, datetime.now())
wb.save('output.xls')- Current compatibility with Python 3.7+ (classifiers list up to 3.6; last release was 2017-08-22)
- Whether the package works reliably on modern operating systems and Python distributions
- Active alternatives or recommended successors for new projects
What it is and what it does
xlwt is a pure-Python library for writing Microsoft Excel spreadsheets in the XLS format (Excel 97–2003). It provides a straightforward API to create workbooks, add sheets, write cells with formatting, and save files—all without requiring external C libraries or system dependencies. The package includes styling support (fonts, colors, number formats) and formula generation.
The library has been in production/stable status since its initial release but has not been actively maintained since 2017. It is designed for legacy Excel compatibility and does not support the modern XLSX format. For projects targeting current Excel versions or requiring ongoing maintenance and updates, this package should be considered end-of-life.
Use it for
- Generate legacy XLS reports from Python scripts in environments where Excel 97–2003 format is required or expected.
- Export tabular data to XLS files with basic cell styling (fonts, colors, number formatting) without external dependencies.
- Build batch spreadsheet generation tools for older enterprise systems that do not accept XLSX or other modern formats.
- Create simple financial or business reports with formulas and formatted cells in the XLS format.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless you are maintaining legacy code that specifically requires XLS output and cannot be migrated.
The package is abandoned and will not receive security updates or compatibility fixes. For new projects, use a maintained alternative that supports XLSX (the modern Excel standard). If you must generate XLS files, xlwt works but carries the risk of unpatched bugs and incompatibility with future Python versions.
Install
xlwt on PyPI
Before you install
Installation is frictionless—a pure-Python wheel with no runtime dependencies. However, the package has been abandoned since 2017 and receives no maintenance; it will not be updated for modern Python versions or security issues.
Targets Excel 97–2003 format (.xls); modern Excel versions prefer .xlsx. Abandoned since 2017; compatibility with current Python versions is not guaranteed.
License in practice
BSD license is permissive and poses no restrictions on commercial or private use, modification, or redistribution.
Quickstart
pip install xlwt
import xlwt
from datetime import datetime
wb = xlwt.Workbook()
ws = wb.add_sheet('Sheet1')
ws.write(0, 0, 'Hello')
ws.write(1, 0, datetime.now())
wb.save('output.xls')
Verify before relying
- Current compatibility with Python 3.7+ (classifiers list up to 3.6; last release was 2017-08-22)
- Whether the package works reliably on modern operating systems and Python distributions
- Active alternatives or recommended successors for new projects
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 3,279 days since the last release |
| First released | |
| Downloads | 12,072,900 / month, #1,345 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: DatabaseTopic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/LibrariesTopic :: Office/Business :: Financial :: SpreadsheetTopic :: Software Development :: Libraries :: Python Modules |
Evidence: xlwt-1.3.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “write excel files python”
- xlwtGenerates Microsoft Excel 97–2003 XLS spreadsheet files from Python…
- xlsxwriterXlsxWriter creates Excel 2007+ XLSX files from Python, supporting…
- openpyxlopenpyxl reads and writes Excel 2010 xlsx/xlsm/xltx/xltm files…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also xlutils · xlwings · xlsxwriter · excelrd · PyExcelerate · spire-xls · XMind · xlrd · xlcalculator · xlrd3