Python CFFI wrapper for LibreOfficeKit
Project description
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")
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
pylokit-0.6.0.tar.gz
(9.1 kB
view details)
File details
Details for the file pylokit-0.6.0.tar.gz
.
File metadata
- Download URL: pylokit-0.6.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7d5a5879d7a2c8dad0e789992f6410333e0f0f8bbde9fb312c727a89bf8b6ab |
|
MD5 | f531c7ae3999b3a51f506db8dab356f2 |
|
BLAKE2b-256 | 8b97b90f783f683bdbe499687d4dcd03ebfd36365f95e2384030ac2f70b426dc |