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.2 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

The source code is at https://github.com/eea/odfpy

Visit https://github.com/eea/odfpy/wiki for documentation and examples.

The code at https://joinup.ec.europa.eu/software/odfpy/home is obsolete.

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-1.4.0.tar.gz (715.1 kB view details)

Uploaded Source

Built Distribution

odfpy-1.4.0-py2.7.egg (287.8 kB view details)

Uploaded Egg

File details

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

File metadata

  • Download URL: odfpy-1.4.0.tar.gz
  • Upload date:
  • Size: 715.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for odfpy-1.4.0.tar.gz
Algorithm Hash digest
SHA256 596021f0519623ca8717331951c95e3b8d7b21e86edc7efe8cb650a0d0f59a2b
MD5 c343718e6177764f649c11c4406a2958
BLAKE2b-256 857d8f6d1f2a4683be362b101c00232b4c3839e4e4a90e0945d8d43ec6aa671d

See more details on using hashes here.

File details

Details for the file odfpy-1.4.0-py2.7.egg.

File metadata

  • Download URL: odfpy-1.4.0-py2.7.egg
  • Upload date:
  • Size: 287.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for odfpy-1.4.0-py2.7.egg
Algorithm Hash digest
SHA256 863746b87121d9e4017c32b6c318f7229a588f189c122a9613116c55a47e276d
MD5 749d7b64af02df2a0057390489eeceb3
BLAKE2b-256 30273e3ab16e4e3d531ab7fb5cc99505369bf5332ae09bdab97ccf8e87632ec9

See more details on using hashes here.

Supported by

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