Integrating Jython Cpython

Posted by eric.frederich on Stack Overflow See other posts from Stack Overflow or by eric.frederich
Published on 2010-05-18T19:58:06Z Indexed on 2010/05/18 20:00 UTC
Read the original article Hit count: 355

Filed under:
|
|
|
|

I am about to begin a project where I will likely use PyQt or Pyside.

I will need to interface with a buggy 3rd party piece of server software that provides C++ and Java APIs. The Java APIs are a lot easier to use because you get Exceptions where with the C++ libraries you get segfaults. Also, the Python bindings to the Java APIs are automatic with Jython whereas the Python bindings for the C++ APIs don't exist.

So, how would a CPython PyQt client application be able to communicate with these Java APIs? How would you go about it?

Would you have another separate Java process on the client that serializes / pickles objects and communicates with the PyQt process over a socket?

I don't want to re-invent the wheel... is there some sort of standard interface for these types of things? Some technology I should look into? RPC, Corba, etc?

Thanks, ~Eric

© Stack Overflow or respective owner

Related posts about python

Related posts about jython