Using jython to call python procedures/methods
mal at egenix.com
Wed Jan 20 20:22:40 CET 2010
> Hi there,
> I have an application that only publishes a Java API. I can use jython
> to access java classes, but jython currently (to the best of my
> knowledge) does not support numpy/scipy.
> Ideally I would like to have jython call a "native" python routine
> where I have the numpy/scipy procedures already written.
> Does anyone have any experience with this? Is it possible?
> I had toyed with the idea of having jython/java write the data to a
> file/database and then manually kick off the python process, but
> ideally I would like this as automated as possible.
Have a look at this talk for some inspiration:
Here's an example of using Pyro to connect Jython and CPython:
As always with such solutions, there are a lot of weird problems
to be expected :-/
Professional Python Services directly from the Source (#1, Jan 20 2010)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
More information about the Python-list