Python library for OpenDocument Format
Actively maintained. Last release 2 days ago, commits in 18 of the last 26 weeks. A safe choice.
pip install odfdoodfdo
OpenDocument Format (ODF, ISO/IEC 26300) library for Python

odfdo is a Python library for programmatically creating, parsing, and editing OpenDocument Format (ODF) files. It provides an interface for interacting with .odt, .ods, .odp, and other ODF file types. The library comes with a set of utilities and recipes for common actions to make it easier to use.
odfdo saves documents as ODF 1.4 and can load documents created with ODF 1.0, 1.1, 1.2, 1.3 or 1.4.
- Document Creation: Generate new ODF documents.
- Content Manipulation: Add, modify, or delete text, paragraphs or tables.
- Table Operations: Create, populate, and modify tables.
- Style Management: Control formatting through different ways.
- Drawing and Presentation: Less advanced features, but allow work with elements in
.odgand.odpfiles. - Metadata: Read and write document metadata.
Project: https://github.com/jdum/odfdo
Author: jerome.dumonteil@gmail.com
License: Apache License, Version 2.0
odfdo is a derivative work of the former lpod-python project.
Installation
Installation from Pypi (recommended):
pip install odfdo
Installation from sources:
uv sync
After installation from sources, you can check everything is working. The tests should run for a few seconds and issue no error. Test coverage should be close to 100%.