Write ooxml .ods (spreadsheat) from python?
Jarek Zgoda
jzgoda at o2.usun.pl
Wed Feb 13 16:28:13 EST 2008
Neal Becker pisze:
>>> I'd like to output some data directly in .ods format. This format
>>> appears
>>> to be quite complex. Is there any python software available to do this?
>>> I
>>> did look at pyuno briefly. It looks pretty complicated also, and it
>>> looks like it uses it's own private version of python, which would not
>>> help me.
>>>
>> Google is your friend. For example this:
>> http://www.oooforum.org/forum/viewtopic.phtml?p=56037#56037
>> It seems like that guy found the way to go for your problem.
>>
>> Rolf
>>
>
> I don't think he's my friend today. I looked at this lib, but it starts
> with:
> # OOo's libraries
> import uno
>
>
> IIUC, this is the same problem. This uno module is tied to an old python
> (2.2?) that ships with OO. Is it available standalone to build for python
> 2.5?
jarek:~$ python
Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
>>> uno
<module 'uno' from '/usr/lib/python2.5/site-packages/uno.pyc'>
>>>
> jarek:~$ apt-cache show python-uno
> Package: python-uno
> Priority: optional
> Section: python
> Installed-Size: 512
> Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss at lists.ubuntu.com>
> Original-Maintainer: Debian OpenOffice Team <debian-openoffice at lists.debian.org>
> Architecture: i386
> Source: openoffice.org
> Version: 1:2.3.0-1ubuntu5.3
> Replaces: openoffice.org-common (<< 1.9.82)
> Provides: python2.5-uno
> Depends: openoffice.org-core (= 1:2.3.0-1ubuntu5.3), python-central (>= 0.5.8), python (>= 2.5), python (<< 2.6), libc6 (>= 2.6-1), libgcc1 (>= 1:4.2.1), libstdc++6 (>= 4.2.1), python2.5 (>= 2.5)
> Filename: pool/main/o/openoffice.org/python-uno_2.3.0-1ubuntu5.3_i386.deb
> Size: 109346
> MD5sum: eaaed48b0ca1af7b6057263933e0cb7e
> SHA1: 99a7b610014dc85d2834e2b6d8519a6cc559840d
> SHA256: a23bc3749c95288a79d74c2a78ff2ff018e9e263641931781d9de4cea45294ff
> Description: Python interface for OpenOffice.org
> The Python-UNO bridge allows use of the standard OpenOffice.org API
> with the python scripting language. It additionally allows
> others to develop UNO components in python, thus python UNO components
> may be run within the OpenOffice.org process and can be called from C++
> or the built in StarBasic scripting language.
> .
> You can more information about Pyuno at
> http://udk.openoffice.org/python/python-bridge.html
> Enhances: openoffice.org
> Python-Version: 2.5
> Bugs: mailto:ubuntu-users at lists.ubuntu.com
> Origin: Ubuntu
> Task: ubuntu-desktop, kubuntu-desktop, edubuntu-desktop, gobuntu-desktop
--
Jarek Zgoda
http://zgodowie.org/
"We read Knuth so you don't have to" - Tim Peters
More information about the Python-list
mailing list