Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Wrapping or converting Perl module?

Thread Tools

Wrapping or converting Perl module?

Terry Hancock
Posts: n/a
Hi all,

Suppose you have found a really nice module that does what
you want (or will do, it still being in development), and
you don't want to waste a lot of duplicated effort, but
this module is in Perl rather than Python (and yes, the
author is not open to conversion -- already tried
that ).

If it were written in C, I'd have a couple of answers, such
as wrapping the module with a Pyrex module, or one of the
other means of adapting C modules to use with Python.

But I don't know what to do with Perl. For starters, should
I be thinking in terms of a wrapper (as with C), or would it
be smart to try to automatically translate the code.

I'm willing to do a little bit of development work on this,
but as I said, the original code is still being developed,
and I hate to waste a lot of effort by reinventing what
my colleague is doing. I'm willing to go as far as
collaborating with this person, and I'm pretty sure we can
share his work on the MySQL code embedded in his module,
but I'd like to be able to convert his logic, too.

(In fact it's , which
is an FRBR compliant library for cataloging books and media.
Not to be confused with "libdb", which IIRC is the C
library for accessing the "Berkeley Database", I've been
meaning to point out the name collision to the author).

And if I do have to manually translate his code, is there
such a thing as a "Perl to Python" HOWTO or something along
those lines to help me do it?

Thanks for comments, (and BTW, nice to be back, I tried
using Usenet for awhile, but I don't seem to have a news
server anymore after switching ISPs, *sigh*).


Terry Hancock ( hancock at )
Anansi Spaceworks

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 02-27-2011 11:00 PM
FAQ 2.17 What is Perl Mongers? PerlFAQ Server Perl Misc 0 02-03-2011 11:00 AM
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 01-23-2011 05:00 AM
Re: Wrapping or converting Perl module? Terry Hancock Python 4 11-06-2004 04:17 AM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM