Pyrolite - a lightweight interface library to connect java to python

Discussion in 'Python' started by Irmen de Jong, Jul 16, 2011.

  1. Hi,

    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 = something.call("methodname",42,"arguments",[1,2,3]);


    Info, source, download and javadocs: http://irmen.home.xs4all.nl/pyrolite/
    Readonly direct svn repository access: svn://svn.razorvine.net/Various/Pyrolite
    More info on Pyro: http://irmen.home.xs4all.nl/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 :)


    Enjoy!

    Irmen de Jong
    Irmen de Jong, Jul 16, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Behzad

    Lightweight messaging library in C

    Behzad, Mar 3, 2008, in forum: C Programming
    Replies:
    1
    Views:
    374
    Morris Dovey
    Mar 3, 2008
  2. Irmen de Jong
    Replies:
    0
    Views:
    259
    Irmen de Jong
    Oct 30, 2011
  3. Jorgen Grahn
    Replies:
    11
    Views:
    645
    Jorgen Grahn
    Aug 21, 2012
  4. Rui Maciel
    Replies:
    0
    Views:
    364
    Rui Maciel
    Aug 11, 2012
  5. Irmen de Jong
    Replies:
    0
    Views:
    117
    Irmen de Jong
    Aug 14, 2013
Loading...

Share This Page