A Python to Java bridge.
Borrowed from the original website:
It is a C extension that uses JNI to access a Java virtual machine, meaning that it can be used anywhere Python is available. It is not a different interpreter like Jython and does not require anything, other than a JRE. The JVM dynamic library is load dynamically through pyjava.start() (some basic logic for locating this library on major platforms will be provided).
The integration with Java code is meant to be as complete as possible, allowing to use Java and Python objects seemlessly and converting objects back and forth when Java code is called. Furthermore, subclassing Java classes or interfaces in Python code to allow callback from Java is planned for the 0.2 version.
Please note that this extension is still at a very early stage of development and probably shouldn’t be used for anything.
Either the Sun/Oracle JRE/JDK or OpenJDK.
Python 3.7 or higher
3.7 with Java 8 is a primary test environment.
pip and setuptools
To install run:
python -m pip install --upgrade jtypes.pyjava
Development is strictly based on tox. To install it run:
python -m pip install --upgrade tox
Visit development page.
Installation from sources:
clone the sources:
git clone https://github.com/karpierz/jtypes.pyjava.git jtypes.pyjava
python -m pip install ./jtypes.pyjava
or on development mode:
python -m pip install --editable ./jtypes.pyjava
Copyright (c) 2016-2022 Adam KarpierzLicensed under the MIT LicensePlease refer to the accompanying LICENSE file.
- User Guide