[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: RFC: ideas for a simple OpenDocument API
From:       Thomas Zander <zander () kde ! org>
Date:       2007-01-11 12:00:01
Message-ID: 200701111300.01542.zander () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


On Friday 22 December 2006 21:16, Kevin Krammer wrote:
> having a (very) simple API for creating basic documents and retrieving some
> information from documents.

The attached email may be interresting.
I have not looked at it, but i figured you should judge for yourselfs :)
-- 
Thomas Zander

["forwarded message" (message/rfc822)]

Return-Path: <odf-discuss-bounces@opendocumentfellowship.org>
Received: from localhost (localhost [127.0.0.1])
	 by apelsin.fruitsalad.org (Cyrus v2.2.12) with LMTPA;
	 Wed, 10 Jan 2007 22:54:53 +0100
X-Sieve: CMU Sieve 2.2
Received: from localhost (localhost [127.0.0.1])
	by apelsin.fruitsalad.org (Postfix) with ESMTP id 4A9046BF86A
	for <thomas.zander@kdemail.net>; Wed, 10 Jan 2007 22:54:53 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by apelsin.fruitsalad.org (Postfix) with ESMTP id 2297C6BF831
	for <thomas.zander@kdemail.net>; Wed, 10 Jan 2007 22:54:53 +0100 (CET)
Received: from apelsin.fruitsalad.org ([127.0.0.1])
 by localhost (apelsin.fruitsalad.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 71942-01 for <thomas.zander@kdemail.net>;
 Wed, 10 Jan 2007 22:54:52 +0100 (CET)
Received: from ktown.kde.org (ktown.kde.org [131.246.120.250])
	by apelsin.fruitsalad.org (Postfix) with SMTP id 839BC6BF73C
	for <thomas.zander@kdemail.net>; Wed, 10 Jan 2007 22:54:52 +0100 (CET)
Received: (qmail 24419 invoked by uid 1055); 10 Jan 2007 21:54:50 -0000
Delivered-To: kde.org-zander@kde.org
Received: (qmail 24414 invoked from network); 10 Jan 2007 21:54:49 -0000
Received: from unknown (HELO opendocumentfellowship.org) (69.93.127.23)
  by ktown.kde.org with SMTP; 10 Jan 2007 21:54:44 -0000
Received: from yoshi.opendocumentfoundation.org (yoshi.opendocumentfoundation.org [127.0.0.1])
	by opendocumentfellowship.org (Postfix) with ESMTP id CA57410815;
	Wed, 10 Jan 2007 16:54:43 -0500 (EST)
X-Original-To: odf-discuss@opendocumentfellowship.org
Delivered-To: odf-discuss@opendocumentfellowship.org
X-Greylist: delayed 3863 seconds by postgrey-1.21 at yoshi;
	Wed, 10 Jan 2007 16:54:39 EST
Received: from cleopatra.roug.org (0xc2ef151c.boanxx9.adsl-dhcp.tele.dk
	[194.239.21.28])
	by opendocumentfellowship.org (Postfix) with ESMTP id B735E10814
	for <odf-discuss@opendocumentfellowship.org>;
	Wed, 10 Jan 2007 16:54:38 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
	by cleopatra.roug.org (8.13.8/8.13.8) with ESMTP id l0AKoCXi004498
	for <odf-discuss@opendocumentfellowship.org>;
	Wed, 10 Jan 2007 21:50:13 +0100
From: Soren Roug <soren.roug@eea.europa.eu>
To: odf-discuss@opendocumentfellowship.org
Date: Wed, 10 Jan 2007 21:50:12 +0100
User-Agent: KMail/1.9.5
Organization: European Environment Agency
MIME-Version: 1.0
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200701102150.12504.soren.roug@eea.europa.eu>
Subject: [odf-discuss] Full Python API for ODF
X-BeenThere: odf-discuss@opendocumentfellowship.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: soren.roug@eea.eu.int,
 ODF Discussion List <odf-discuss@opendocumentfellowship.org>
List-Id: ODF Discussion List <odf-discuss.opendocumentfellowship.org>
List-Unsubscribe: <http://lists.opendocumentfellowship.org/mailman/listinfo/odf-discuss>,
	<mailto:odf-discuss-request@opendocumentfellowship.org?subject=unsubscribe>
List-Archive: <http://lists.opendocumentfellowship.org/pipermail/odf-discuss>
List-Post: <mailto:odf-discuss@opendocumentfellowship.org>
List-Help: <mailto:odf-discuss-request@opendocumentfellowship.org?subject=help>
List-Subscribe: <http://lists.opendocumentfellowship.org/mailman/listinfo/odf-discuss>,
	<mailto:odf-discuss-request@opendocumentfellowship.org?subject=subscribe>
Sender: odf-discuss-bounces@opendocumentfellowship.org
Errors-To: odf-discuss-bounces@opendocumentfellowship.org
X-Virus-Scanned: by amavisd-new at kdemail.net
X-Kolab-Scheduling-Message: FALSE
X-Length: 5198

I mentioned five days ago on the developer list that I was almost ready to 
unveil my Python API for ODF.  Now it's here. It's called odfpy.

Odfpy aims to be a complete API for OpenDocument in Python. Unlike other more 
convenient APIs, this one is essentially an abstraction layer just above the 
XML format. The main focus has been to prevent the programmer from creating 
invalid documents. It has checks that raise an exception if the programmer 
adds an invalid element, adds an attribute unknown to the grammar, forgets to 
add a required attribute or adds text to an element that doesn't allow it.

These checks and the API itself were generated from the RelaxNG schema, and 
then hand-edited. Therefore the API is complete and can handle all ODF 
constructions, but could be improved in its understanding of data types.

I've added some examples in the api-for-odfpy.odt manual. Most of the manual 
is also generated from the RelaxNG schema.

If you're interested in giving it a try, you currently have to export it from 
SVN. You do:

svn export http://opendocumentfellowship.org/repos/odftools/trunk odftools
python setup.py build
su
python setup.py install

Then try some of the examples in the manual.

Have fun
Søren Roug
European Environment Agency
_______________________________________________
odf-discuss mailing list
odf-discuss@opendocumentfellowship.org
http://lists.opendocumentfellowship.org/mailman/listinfo/odf-discuss



[Attachment #6 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic