Skip to main content

Interacting with using UNO

Project description


Python libraries for interacting with using
the "UNO bridge".

How to install

On Ubuntu 14.04

Install libreoffice, uno library and python3:


$ sudo aptitude install -y libreoffice libreoffice-script-provider-python uno-libs3 python3-uno python3

I like virtualenvwrapper to make temporary environment:


$ sudo aptitude install -y virtualenvwrapper
$ mkvirtualenv -p /usr/bin/python3.4 --system-site-packages tmp3

Confirm importing uno module:


(tmp3)$ python
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno

Install unotools from PyPI:


(tmp3)$ pip install unotools

How to use

Startup libreoffice:


(tmp3)$ soffice --accept='socket,host=localhost,port=8100;urp;StarOffice.Service'

Download sample-scripts from


(tmp3)$ python sample-scripts/ -s localhost
(tmp3)$ python sample-scripts/ -s localhost -d sample-scripts/datadir/
(tmp3)$ ls
sample-calc.html sample-calc.pdf sample-calc_html_eaf26d01.png
sample-scripts sample-writer.html sample-writer.pdf
sample.csv sample.doc sample.xls


0.3.1 (2014-05-07)

- added command line argument (-f, --file) to be able to read OpenDocument

0.3.0 (2014-05-05)

- first release

Project details

Download files

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

Files for unotools, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size unotools-0.3.1.tar.gz (12.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page