Re: python and open office

2016-08-01 Thread Lawrence D’Oliveiro
On Thursday, July 28, 2016 at 4:29:34 AM UTC+12, Crane Ugly wrote: > I try to create some scripts that will help me to open and manipulate > OpenOffice documents. Have you looked at odfpy ? -- https://mail.python.org/mailman/listinfo/python-list

Re: python and open office

2016-07-27 Thread Leonid Shanin
I use LibreOffice. Yes, it looks like I have to switch to Python 3 in this case. I'll try v.3 then Thank you Leonid > On 27-07-2016, at 21:01, Terry Reedy wrote: > > On 7/27/2016 12:37 PM, Chris Kaynor wrote: >> def __init__(self, name: str): >> >> That "name: str" syntax

Re: python and open office

2016-07-27 Thread Terry Reedy
On 7/27/2016 12:37 PM, Chris Kaynor wrote: def __init__(self, name: str): That "name: str" syntax is called function annotations, and was added in Python 3, and you are trying to use the module in Python 2.7. There may be another variation of the module compatible with Python 2, or you'll need

Re: python and open office

2016-07-27 Thread Chris Kaynor
def __init__(self, name: str): That "name: str" syntax is called function annotations, and was added in Python 3, and you are trying to use the module in Python 2.7. There may be another variation of the module compatible with Python 2, or you'll need to upgrade your Python to a version of

python and open office

2016-07-27 Thread Crane Ugly
I try to create some scripts that will help me to open and manipulate OpenOffice documents. Calc in particular. But I have some problems finding right packages or libraries that offer such interface. So far I was trying uno and unotools but the first step is to import them failed. Here is the

LibreOffice with Python (was: open office in another language?)

2012-01-10 Thread Ben Finney
Sean Wolfe ether@gmail.com writes: I'm a somewhat-satisfied openoffice.org user. You may know about the change of focus in recent months to LibreOffice URL:https://www.libreoffice.org/. The Document Foundation is where the majority of the project's institutional knowledge, development

Re: Python and Open Office

2008-09-19 Thread Hartmut Goebel
Terry Reedy schrieb: Hartmut Goebel wrote: The API docs are a bit hidden on the webpage. Here is the link: http://opendocumentfellowship.com/files/api-for-odfpy_2.odt I wrote my comment *after* looking at the above, which I found easily enough. After 7 pages of (helpful) explanatory text,

Re: Python and Open Office

2008-09-18 Thread David Boddie
On Wednesday 17 September 2008 21:59, Terry Reedy wrote: Hartmut Goebel wrote: Terry Reedy schrieb: The API docs are a bit hidden on the webpage. Here is the link: http://opendocumentfellowship.com/files/api-for-odfpy_2.odt I wrote my comment *after* looking at the above, which I found

Re: Python and Open Office

2008-09-17 Thread Hartmut Goebel
Terry Reedy schrieb: One way to learn the meaning of some of the numerous attributes and values is to create a file with the wanted features with OOo, save, unzip, and examine the xml to see which tags are used for which features. The API docs are a bit hidden on the webpage. Here is the

Re: Python and Open Office

2008-09-17 Thread Terry Reedy
Hartmut Goebel wrote: Terry Reedy schrieb: One way to learn the meaning of some of the numerous attributes and values is to create a file with the wanted features with OOo, save, unzip, and examine the xml to see which tags are used for which features. The API docs are a bit hidden on the

Re: Python and Open Office

2008-09-16 Thread Hartmut Goebel
Marco Bizzarri schrieb: On Wed, Sep 10, 2008 at 10:04 PM, Greg Lindstrom [EMAIL PROTECTED] wrote: Hello, I would like to create and manipulate Open Office documents using Python. I [...] Is there someone here who can help me out, or is there an appropriate mailing list for me to join

Re: Python and Open Office

2008-09-16 Thread Hartmut Goebel
Peter Georgeson schrieb: I can confirm that unfortunately, the PyUNO interface presently (OpenOffice 2.4) is built with Python 2.3... so to use the UNO interface from Python you have to write a separate script to run in the OpenOffice Python 2.3 environment. This may be true for Windows. On

Re: Python and Open Office

2008-09-16 Thread Terry Reedy
Hartmut Goebel wrote: As I thought everybody already knows, ODF is simply a Zip-File containing some XML files. I thought it just *was* xml. But examination with notepad showed otherwise. So there is no need to use OOo for handling the files. So odfpy seams to be the best way to to

Re: Python and Open Office

2008-09-12 Thread Gary Herron
Greg Lindstrom wrote: Hello, I would like to create and manipulate Open Office documents using Python. I have found then UNO Python page and odfpy modules which seem to be exactly what I need. The odfpy manual is, to me, a confusing list of objects and methods (it's an impressive list

Re: Python and Open Office

2008-09-11 Thread Peter Georgeson
On Sep 11, 7:04 am, Colin J. Williams [EMAIL PROTECTED] wrote: Marco Bizzarri wrote: On Wed, Sep 10, 2008 at 10:04 PM, Greg Lindstrom [EMAIL PROTECTED] wrote: Hello, I would like to create and manipulate Open Office documents using Python.   I have found then UNO Python page and odfpy

Re: Python and Open Office

2008-09-11 Thread Marco Bizzarri
Greg, as an addition to what I already said to you, you can consider taking a look at oood from ERP5 project http://wiki.erp5.org/HowToUseOood OOOd (openoffice.org daemon) runs openoffice behind the scene, and allows you to interact with it via XML-RPC; it should be quite robust, since it is

Python and Open Office

2008-09-10 Thread Greg Lindstrom
Hello, I would like to create and manipulate Open Office documents using Python. I have found then UNO Python page and odfpy modules which seem to be exactly what I need. The odfpy manual is, to me, a confusing list of objects and methods (it's an impressive list!), but does not have much

Re: Python and Open Office

2008-09-10 Thread Marco Bizzarri
On Wed, Sep 10, 2008 at 10:04 PM, Greg Lindstrom [EMAIL PROTECTED] wrote: Hello, I would like to create and manipulate Open Office documents using Python. I have found then UNO Python page and odfpy modules which seem to be exactly what I need. The odfpy manual is, to me, a confusing list

Re: Python and Open Office

2008-09-10 Thread Colin J. Williams
Marco Bizzarri wrote: On Wed, Sep 10, 2008 at 10:04 PM, Greg Lindstrom [EMAIL PROTECTED] wrote: Hello, I would like to create and manipulate Open Office documents using Python. I have found then UNO Python page and odfpy modules which seem to be exactly what I need. The odfpy manual