From: Chris C. <Chr...@in...> - 2011-06-23 18:41:42
|
Safoura wrote: > Thanks for introducing Py4J; I went through the docs. But isn't that for > accessing the Java objects from a python program and the other way around. As I > mentioned, I need to find a way to call the Python lib functions from my running > Java code. Would it be still an option? How about Jepp? Could that be a solution > too? > I've used http://pypi.python.org/pypi/RPyC/ a few times and I've had pretty good success with it (in both directions, my pure Jython JDBC driver works great being accessed from Cpython [the reverse of what you want]). There are a bunch of others (execnet, SPyRO, and SPIRO). A ctypes module based on top if JNA would be neat :-) That would be a a great project as others could use it later on (I've not looked in the the Jython initial ctypes implementation so if you want to hack on something also consider hacking on the current ctypes code in Jython). Chris |