Home arrow Python arrow Python and OpenOffice.org

Python and OpenOffice.org

OpenOffice is a free, open source office suite with an API that allows developers to work with it in a number of languages. Python-UNO lets you work with the API in Python. This article gives you a taste of what you can do with it.

TABLE OF CONTENTS:
  1. Python and OpenOffice.org
  2. Connecting to OpenOffice.org
  3. Getting to the Desktop Service
  4. Tabular Talk
By: Peyton McCullough
Rating: starstarstarstarstar / 30
March 21, 2006

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

OpenOffice.org has established quite a reputation, existing as an office suite that's free and open-source, yet competitive and compatible with similar solutions. It runs on many platforms, and it boasts over fifty million downloads. Developers can hardly ignore such a project, which is why OpenOffice.org features an API that allows developers to work with OpenOffice.org in numerous languages.

Of course, one might find it hard to imagine Python being included in that list of languages, since it would make things perhaps too easy. However, a project by the name of Python-UNO makes it all possible. OpenOffice.org utilizes Universal Network Objects, or UNO. The technology allows components to be created in a variety of languages which can interact with OpenOffice.org. Python-UNO provides a Python interface to it all.

Python-UNO is included with OpenOffice.org, so there's no need to install anything in order to make use of it. Unfortunately, however, there is a downside to things. Don't expect to make use of recent additions to Python because the version included with OpenOffice.org 2.0 is Python 2.3.5. There is an effort to fix this problem and equip OpenOffice.org with a newer version of Python, though.

There are also ways around this, and, indeed, some Linux distributions make Python-UNO available in their default Python installations. Ubuntu does this, for example. You can check for this by opening up Python and attempting to import the module uno. With that said, let's get started with Python-UNO.



 
 
>>> More Python Articles          >>> More By Peyton McCullough
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PYTHON ARTICLES

- Python Big Data Company Gets DARPA Funding
- Python 32 Now Available
- Final Alpha for Python 3.2 is Released
- Python 3.1: String Formatting
- Python 3.1: Strings and Quotes
- Python 3.1: Programming Basics and Strings
- Tuples and Other Python Object Types
- The Dictionary Python Object Type
- String and List Python Object Types
- Introducing Python Object Types
- Mobile Programming using PyS60: Advanced UI ...
- Nested Functions in Python
- Python Parameters, Functions and Arguments
- Python Statements and Functions
- Statements and Iterators in Python

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: