Skip to main content

Python API and tools to manipulate OpenDocument files

Project description

Odfpy is a library to read and write OpenDocument v. 1.1 files. The main focus has been to prevent the programmer from creating invalid documents. It has checks that raise an exception if the programmer adds an invalid element, adds an attribute unknown to the grammar, forgets to add a required attribute or adds text to an element that doesn’t allow it.

These checks and the API itself were generated from the RelaxNG schema, and then hand-edited. Therefore the API is complete and can handle all ODF constructions.

In addition to the API, there are a few scripts:

  • csv2odf - Create OpenDocument spreadsheet from comma separated values

  • mailodf - Email ODF file as HTML archive

  • odf2xhtml - Convert ODF to (X)HTML

  • odf2mht - Convert ODF to HTML archive

  • odf2xml - Create OpenDocument XML file from OD? package

  • odfimgimport - Import external images

  • odflint - Check ODF file for problems

  • odfmeta - List or change the metadata of an ODF file

  • odfoutline - Show outline of OpenDocument

  • odfuserfield - List or change the user-field declarations in an ODF file

  • xml2odf - Create OD? package from OpenDocument in XML form

Visit https://joinup.ec.europa.eu/software/odfpy/home for documentation and examples.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odfpy-0.9.6.tar.gz (457.7 kB view details)

Uploaded Source

File details

Details for the file odfpy-0.9.6.tar.gz.

File metadata

  • Download URL: odfpy-0.9.6.tar.gz
  • Upload date:
  • Size: 457.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for odfpy-0.9.6.tar.gz
Algorithm Hash digest
SHA256 e458f969f1ccd7ed77d70a45fe69ad656ac61b39e36e4d32c42d4e3216030891
MD5 3f570ead2b5f5eb6eab97eecce22d491
BLAKE2b-256 965aa78365de1db7057a56945691a0e22adc7d5cebbf95db034729d23c12b0ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page