Bi-directional Python-Java bridge
jpy is a bi-directional Python-Java bridge which you can use to embed Java code in Python programs or the other way round. It has been designed particularly with regard to maximum data transfer speed between the two languages. It comes with a number of outstanding features:
- Fully translates Java class hierarchies to Python
- Transparently handles Java method overloading
- Support of Java multi-threading
- Fast and memory-efficient support of primitive Java array parameters via Python buffers (e.g. numpy arrays)
- Support of Java methods that modify primitive Java array parameters (mutable parameters)
- Java arrays translate into Python sequence objects
- Java API for accessing Python objects (jpy.jar)
jpy has been tested with Python 2.7 and 3.3 and an Oracle Java 7 JDK. It will presumably also work with Python 2.6 or 3.2 and a Java 6 JDK.
The initial development of jpy has been driven by the need to write Python extensions to an established scientific imaging application programmed in Java, namely the BEAM toolbox funded by the European Space Agency (ESA). Writing such Python plug-ins for a Java application usually requires a bi-directional communication between Python and Java since the Python extension code must be able to call back into the Java APIs.
For more information please have a look into the jpy documentation.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|jpy-0.7.2.win32-py2.7.exe (231.6 kB) Copy SHA256 hash SHA256||Windows Installer||2.7||Jun 11, 2014|
|jpy-0.7.2.win32-py3.3.exe (226.0 kB) Copy SHA256 hash SHA256||Windows Installer||3.3||Jun 11, 2014|
|jpy-0.7.2.win-amd64-py2.7.exe (264.0 kB) Copy SHA256 hash SHA256||Windows Installer||2.7||Jun 11, 2014|
|jpy-0.7.2.win-amd64-py3.3.exe (261.9 kB) Copy SHA256 hash SHA256||Windows Installer||3.3||Jun 11, 2014|
|jpy-0.7.2.zip (142.0 kB) Copy SHA256 hash SHA256||Source||None||Jun 11, 2014|