Pyrolite - a lightweight interface library to connect java to python

Irmen de Jong irmen.NOSPAM at
Sat Jul 16 10:02:32 EDT 2011


What's a java interface library doing in comp.lang.python, you might ask.

Well, this one, called 'Pyrolite' is meant to be a lightweight library (<50kb) to
interface your java application to Python in a very easy and straightforward way.

Pyrolite uses the Pyro protocol to call methods on remote objects. This means it also
contains an almost complete implementation of Python's pickle protocol (which can be
used independently).

A small piece of example code (java):

    import net.razorvine.pyro.*;
    NameServerProxy ns = NameServerProxy.locateNS(null);
    PyroProxy something = new PyroProxy(ns.lookup("Your.Pyro.Object"));
    Object result ="methodname",42,"arguments",[1,2,3]);

Info, source, download and javadocs:
Readonly direct svn repository access:  svn://
More info on Pyro:

Pyrolite is an experiment. You can use Jython+Pyro as well but I was interested in the
possibilities of a lightweight client-only library. Please let me know your thoughts
about it, and if you decide to use it :-)


Irmen de Jong

More information about the Python-list mailing list