skillfed

odfdo

Python library for OpenDocument Format

odfdo v3.24.4 146.7K downloads/30d#11,092 on PyPI135
Permissive license Apache-2.0 Active released

What it is and what it does

odfdo is a Python library for programmatically working with OpenDocument Format files—the ISO/IEC 26300 standard used by LibreOffice and other office suites. It lets you create new ODF documents from scratch, load and modify existing ones, and manipulate their content including text, tables, styles, and metadata. The library saves documents as ODF 1.4 and can read documents from ODF 1.0 through 1.4.

The package is built on lxml for XML handling and comes with a command-line toolkit (odfdo-diff, odfdo-markdown, odfdo-replace, odfdo-csv, and others) for common tasks like converting documents to Markdown, finding and replacing text, importing/exporting CSV data, and managing styles. It's designed for developers who need to automate document generation or manipulation without requiring LibreOffice itself.

Use it for:

  • Generate reports or invoices as .odt or .ods files programmatically from application data.
  • Parse and extract text or table data from existing ODF documents for processing or migration.
  • Batch convert ODF files to other formats (e.g., Markdown via odfdo-markdown) or between ODF versions.
  • Create spreadsheets from CSV data or export spreadsheet tables to CSV for downstream processing.
  • Automate document styling and metadata updates across multiple ODF files using the command-line utilities.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

odfdo is a Python library for creating, parsing, and editing OpenDocument Format (ODF) files including text documents (.odt), spreadsheets (.ods), presentations (.odp), and drawings (.odg).

Yes. odfdo is actively maintained, has minimal dependencies, supports current Python versions, carries no known vulnerabilities, and is licensed permissively. Install it if you need to work with ODF files programmatically—it's the primary Python library for this task and comes with both a clean API and practical command-line tools.

Install

odfdo on PyPI

pip

pip install odfdo

uv

uv add odfdo

poetry

poetry add odfdo

Installing odfdo

Before you install

Low friction installation with only two runtime dependencies (lxml and typing-extensions). Actively maintained with a release on 2026-08-14 and recent commits. Tested across Python 3.10 through 3.14.

License in practice

Licensed under Apache License 2.0 (permissive), allowing commercial and private use with minimal restrictions.

Quickstart

pip install odfdo

from odfdo import Document, Paragraph

doc = Document('text')
doc.body.append(Paragraph("Hello world!"))
doc.save("hello.odt")

Requires Python 3.10 or later; lxml must be installed (automatically handled by pip).

Verify before relying

  • Performance characteristics when working with large ODF files or complex document structures.
  • Completeness of ODF 1.4 feature support relative to the full specification.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (<4,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — lxml, typing-extensions
Maintenance actively maintained — 0 days since the last release
Last repo commit
First released
Downloads 146,680/month — #11,092 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: odfdo-3.24.4-py3-none-any.whl

Keywords: python, library, ODF, OpenDocument

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules

Tags

odf document creation pythonopenoffice file manipulationodt ods odp librarycreate edit odf filesopenDocument format pythonspreadsheet text document generationodf parsing and editing
document-generationoffice-formats

More Python Modules packages