PyUNO bridge

From Apache OpenOffice Wiki
Revision as of 22:28, 21 December 2006 by Jza (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Find here a shortened Spanish version of this document.


The Python-UNO bridge allows to

  • use the standard API from the well known python scripting language.
  • to develop UNO components in python, thus python UNO components may be run within the process and can be called from Java, C++ or the built in StarBasic scripting language.
  • create and invoke scripts with the office scripting framework (OOo 2.0 and later).

You can find the most current version of this document from


You can also download this documentation for offline work.

Download ( less than 0.5 MB).


The Python-UNO bridge is feature complete, but has not been used extensively, so it may contain some bugs. It is now integrated in the source trees. ( 1.0.x is not supported.)

The documentation in its current state is targeted at developers who have already some experience with API and with some other programming language (Java/C++/StarBasic). It is recommended that you read that some background information from the developer manual before looking at the specifics of python.

PyUNO tutorial for

This tutorial shows, how the PyUNO bridge can be used to automate This is not an tutorial, there is lots of resources available in the office development kit and the developer manual.

PyUNO Installation

Since 1.1, PyUNO is included in the default installation.

PyUNO bridge modes

PyUNO can be used in three different modes:

  • Inside the process within the scripting framework (OOo 2.0 and later only !!),
  • Inside the python executable (and outside the OOo process)
Personal tools