Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use Perl libraries from Python?

Tags:

python

perl

api

I have written a bunch of Perl libraries (actually Perl classes) and I want to use some of them in my Python application. Is there a natural way to do this without using SWIG or writing Perl API for Python. I am asking for a similar way of PHP's Perl interface. If there is no such kind of work for Perl in Python. What is the easiest way to use Perl classes in python?

like image 692
systemsfault Avatar asked Apr 15 '09 09:04

systemsfault


1 Answers

Personally, I would expose the Perl libs as services via XML/RPC or some other such mechanism. That way you can call them from your Python application in a very natural manner.

like image 177
Shane C. Mason Avatar answered Sep 29 '22 01:09

Shane C. Mason