skip to navigation
skip to content

Not Logged In

pylokit 0.6.0

Python CFFI wrapper for LibreOfficeKit

Latest Version: 0.8.0

A python CFFI wrapper for LibreOfficeKit. Tested with both cpython2 and cpython3, need confirmation but should work fine in pypy too.

Requirements

An installation of LibreOffice >= 4.3.0 is required on the same machine

Installation

pip install pylokit

Example

A basic conversion from a rtf file to a doc:

from pylokit import Office

lo_path = "/path/to/libreoffice/program/dir"

lo = Office(lo_path)
doc = lo.documentLoad("myfile.rtf")
doc.saveAs("myfile.doc")

Same conversion passing an explicit format and filter options:

from pylokit import Office

lo_path = "/path/to/libreoffice/program/dir"

lo = Office(lo_path)
doc = lo.documentLoad("myfile.rtf")
doc.saveAs("myfile.doc", fmt="docx", options="skipImages")
 
File Type Py Version Uploaded on Size
pylokit-0.6.0.tar.gz (md5) Source 2014-07-20 8KB
  • Downloads (All Versions):
  • 9 downloads in the last day
  • 58 downloads in the last week
  • 167 downloads in the last month