GitHub
github.com › LeeKamentsky › python-javabridge
GitHub - LeeKamentsky/python-javabridge: Python wrapper for the Java Native Interface
Python wrapper for the Java Native Interface. Contribute to LeeKamentsky/python-javabridge development by creating an account on GitHub.
Starred by 117 users
Forked by 64 users
Languages Python 93.1% | Cython 4.4% | C 1.5% | Python 93.1% | Cython 4.4% | C 1.5%
Videos
GitHub
github.com › robocorp › java-access-bridge-wrapper
GitHub - robocorp/java-access-bridge-wrapper: Python wrapper around the Java Access Bridge Windows .dll · GitHub
Starred by 19 users
Forked by 8 users
Languages Python 94.9% | Java 5.0% | Batchfile 0.1%
GitHub
github.com › thouis › Python-Java-Bridge
GitHub - thouis/Python-Java-Bridge: python wrapper for the Java Native Interface
python wrapper for the Java Native Interface. Contribute to thouis/Python-Java-Bridge development by creating an account on GitHub.
Author thouis
GitHub
github.com › caesar0301 › pyDetectRight
GitHub - caesar0301/pyDetectRight: A Python wrapper for DetectRight Java API. DetectRight is a tool to extract information from User Agent string. This wrapper is based on Py4J to communicate with official Java library. For native Java API, please visit http://detectright.com/
A Python wrapper for DetectRight Java API. This wrapper is based on Py4J to communicate with Java library officially provided.
Author caesar0301
Top answer 1 of 2
8
You could try this way:
- Use Jython instead of CPython to write Python code http://www.jython.org.
- Integrate Jython code with Java code through Apache Bean Scripting Framework http://commons.apache.org/bsf/
If you definitely need to use CPython, then Apache Trift could be interesting for you: http://thrift.apache.org/ So you could make additional scalable abstraction layer and integrate your Java code with different languages (not only Python)
If you need a really low-level interface you could look at JNI http://java.sun.com/docs/books/jni/ for investigation. But I think it will take a lot of time to integrate your code with CPython using JNI.
2 of 2
2
I've used JPype in a similar instance with decent results. The main task would be to write wrappers to translate your java api into a more pythonic api, since raw JPype usage is hardly any prettier than just writing java code.
GitHub
github.com › imperial-qore › pyJMT
GitHub - imperial-qore/pyJMT: Python wrapper for Java Modelling Tools
The pyJMT package is the official python wrapper for the Java Modelling Tools (JMT) suite, which is used for performance evaluation of systems using queueing network models.
Author imperial-qore
GitHub
github.com › CellProfiler › python-javabridge
GitHub - CellProfiler/python-javabridge: Python wrapper for the Java Native Interface
Python wrapper for the Java Native Interface. Contribute to CellProfiler/python-javabridge development by creating an account on GitHub.
Starred by 23 users
Forked by 13 users
Languages Python 93.1% | Cython 4.4% | C 1.5% | Python 93.1% | Cython 4.4% | C 1.5%
GitHub
github.com › ninia › jep
GitHub - ninia/jep: Embed Python in Java · GitHub
Jep embeds CPython in Java through JNI. ... Using the native Python interpreter may be much faster than alternatives.
Starred by 1.5K users
Forked by 163 users
Languages C 52.1% | Java 30.2% | Python 17.7%
Jython
jython.org
Home | Jython
There is work towards a Python 3 in the project’s GitHub repository. Jython implementations are freely available for both commercial and non-commercial use. They are distributed with source code under the PSF License v2. Jython is complementary to Java and is especially suited for the following tasks:
GitHub
github.com › fracpete › python-weka-wrapper
GitHub - fracpete/python-weka-wrapper: Python 2.7 wrapper for Weka using javabridge.
April 2, 2020 - Python wrapper for the Java machine learning workbench Weka using the javabridge library.
Starred by 83 users
Forked by 24 users
Languages Python 98.2% | Java 1.4% | Python 98.2% | Java 1.4%
GitHub
github.com › bcdev › jpy
GitHub - bcdev/jpy: A bi-directional Python-Java bridge used to embed Java in CPython or the other way round. · GitHub
August 5, 2021 - A bi-directional Python-Java bridge used to embed Java in CPython or the other way round. - bcdev/jpy
Starred by 188 users
Forked by 37 users
Languages C 54.6% | Java 25.9% | Python 18.7%
Medium
medium.com › graalvm › supercharge-your-java-apps-with-python-ec5d30634d18
Supercharge Your Java Apps with Python | by Tim Felgentreff | graalvm
May 5, 2023 - In this article we look at an example application developed by students at the Hasso Plattner Institute (HPI) in Potsdam which can be used as a template for using Python libraries from Java on GraalVM. The full source code is available at the GitHub repository of the HPI Software Architecture Group.
GitHub
github.com › c2nes › javalang
GitHub - c2nes/javalang: Pure Python Java parser and tools · GitHub
Pure Python Java parser and tools. Contribute to c2nes/javalang development by creating an account on GitHub.
Starred by 793 users
Forked by 166 users
Languages Python 99.7% | Java 0.3%
Py4j
py4j.org
Welcome to Py4J — Py4J
Py4J enables Python programs running in a Python interpreter to dynamically access Java objects in a Java Virtual Machine. Methods are called as if the Java objects resided in the Python interpreter and Java collections can be accessed through standard Python collection methods.
Python
wiki.python.org › moin › IntegratingPythonWithOtherLanguages
IntegratingPythonWithOtherLanguages
July 29, 2020 - bedevere - Python wrapper to GNU Prolog http://bedevere.sourceforge.net/ pwig includes examples of wrapping Python for SWI-Prolog. pyswip is a ctypes based module that enables querying SWI-Prolog. See also http://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&q=Python+prolog · Jython - Python implemented in Java ·