[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] Python conduits



I've put the code I have so far at http://www.elis.ugent.be/~wheirman/python-coldsync.tgz
Working so far are the interface to ColdSync itself for fetch, dump and install conduits (nothing SPC-related) -- which is actually not very much since it just needs to parse the arguments from stdin.
The second part is in reading/writing .pdb files. I've started with http://linux.piter-press.ru/peepdb/ for the basic pdb format, now I'm porting the Perl code from ColdSync's p5-Palm package to Python for the different record formats. I already ported the Address format module, and reverse-engineerd the Contacts and Notepad formats and wrote a module for them too. Binding Python into the existing Perl API might involve less code, but I'm not sure that's possible.
Also in the .tgz file are a few conduits, they don't do anything interesting but you can see how the interface should be used. You can use them like the Perl ones, either from .coldsyncrc or on the commandline with something like './mail-notes.py run dump InputDB=...'.


The 'plan' is to be able to do everything in Python that's now possible in Perl, but don't hold your breath off course. I don't know if I'll include SPC support, but I'd like to add the formats for the new PIM applications from the Tungsten T3 and E models ('Contacts' is already done as I said).

Wim.

Tim Meals wrote:
I'd love to see a Python-based ColdSync.  Or at the very least Python
bindings into the Perl API.  I've thought about building one once or
twice, but never made it much past the "thinking" stage.  What are your
plans on implementing Python conduits?

Tim

On Thu, 2004-10-07 at 05:43, Wim Heirman wrote:

Hello everyone,

I wondered if there is still interest in writing conduits with Python. I've seen it mentioned a few times, but since there has never been a real follow up I decided to start writing my own set of libraries. Parts of it (the ColdSync interface and parsing Address/Contacts databases) are starting to be usefull, so if anyone wants to use/test/co-develop this further, please let me know!

Regards,
Wim.

--

Tim Meals
em:  tim@codeknox.com


This message was sent through the coldsync-hackers mailing list. To remove yourself from this mailing list, send a message to majordomo@thedotin.net with the words "unsubscribe coldsync-hackers" in the message body. For more information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.

-- ir. Wim Heirman, ELIS Department, Ghent University, Belgium Phone: +32-9-264.34.09 E-mail: wim.heirman@elis.UGent.be http://www.elis.UGent.be/~wheirman/ This message was sent through the coldsync-hackers mailing list. To remove yourself from this mailing list, send a message to majordomo@thedotin.net with the words "unsubscribe coldsync-hackers" in the message body. For more information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.