Skip to main content

Lightweight python module to allow extracting text from OpenDocument (odt) files.

Project description

Lightweight python module for extracting raw text from OpenDocument (odt) files.

Linux, macOS and Windows platforms supported.

Just point at the file with the .odt extension and let it print it out for you.

Installation

$ pip install odtreader

Usage

You can simply use it by calling the odtToText() function. The file is parsed and the text returned to you as a unicode object.

Example:

from ODTReader.odtreader import odtToText

text = odtToText("path/to/file.odt")

It can also be used as a command line utility.

Example:

$ python odtreader.py path/to/file.odt
This is the contents of the odt file!

$ python odtreader.py path/to/file.odt -o outfile.txt
Contents written to 'outfile.txt'

Version Support

This module only supports Python 2.7 as of now.

License

GNU GPL v3.0 License, see LICENSE file.

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

ODTReader-0.0.5.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file ODTReader-0.0.5.tar.gz.

File metadata

  • Download URL: ODTReader-0.0.5.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ODTReader-0.0.5.tar.gz
Algorithm Hash digest
SHA256 2ba680de242b3f7cf0ade1baf40da0fe657a2929d68b78a5fcde9193154a1fd0
MD5 49b28acde4647a5c0d6fb6d62ad08280
BLAKE2b-256 637590f58c05a3067c1cae6aa254b6f5c063a245d390510c3c16aca841b45db1

See more details on using hashes here.

Supported by

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