[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: Write ooxml .ods (spreadsheat) from python?

Neal Becker

2/13/2008 6:22:00 PM

Rolf van de Krol wrote:

> Neal Becker wrote:
>> 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=5...
> 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?

2 Answers

Stefan Behnel

2/13/2008 9:09:00 PM

0

Neal Becker wrote:
> # 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?

Roll your own OpenOffice server:

http://pypi.python.org/pypi/z3c.recipe....

Stefan

Jarek Zgoda

2/13/2008 9:28:00 PM

0

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=5...
>> 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@lists.ubuntu.com>
> Original-Maintainer: Debian OpenOffice Team <debian-openoffice@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-b...
> Enhances: openoffice.org
> Python-Version: 2.5
> Bugs: mailto:ubuntu-users@lists.ubuntu.com
> Origin: Ubuntu
> Task: ubuntu-desktop, kubuntu-desktop, edubuntu-desktop, gobuntu-desktop

--
Jarek Zgoda
http://zgo...

"We read Knuth so you don't have to" - Tim Peters