Python bridge for the Java Virtual Machine.
Project description
jvm
Python bridge for the Java Virtual Machine.
Overview
jvm is a bridge between Python and JVM, allowing these to intercommunicate.It is an effort to allow Python programs full access to Java class libraries.jvm package is closely based on the jni package (Python’s lightweight package, based on the ctypes or cffi library).
What is jvm:
jvm is an effort to allow Python programs full access to Java class libraries. This is achieved not through re-implementing Python, as Jython has done, but rather through interfacing at the native level in both virtual machines.
Eventually, it should be possible to replace Java with python in many, though not all, situations. JSP, Servlets, RMI servers and IDE plugins are good candidates.
Once this integration is achieved, a second phase will be started to separate the Java logic from the Python logic, eventually allowing the bridging technology to be used in other environments, I.E. Ruby, Perl, COM, etc …
- Known Bugs/Limitations :
Java classes outside of a package (in the <default>) cannot be imported.
Because of lack of JVM support, you cannot shutdown the JVM and then restart it.
Some methods rely on the “current” class/caller. Since calls coming directly from python code do not have a current class, these methods do not work. The User Manual lists all the known methods like that.
Support
TDB…
Installation
Prerequisites:
Python 3.6 or higher
3.7 is a primary test environment.
pip and setuptools
To install run:
python -m pip install --upgrade jvm
To ensure everything is running correctly you can run the tests using:
python -m jvm.tests
License
Copyright (c) 2004-2020 Adam KarpierzLicensed under CC BY-NC-ND 4.0Licensed under proprietary LicensePlease refer to the accompanying LICENSE file.
Changelog
0.4.0b3 (2020-03-08)
Drop support for Python2.
Update of Mozilla Rhino.
Update of license info.
Setup update.
0.3.0b2 (2019-07-10)
Last release for Python2.
0.3.0b1 (2018-11-08)
Bug fixes and improvements.
Add Java 10 support.
Update of the required setuptools version.
Setup and tests improvements.
0.2.0b3 (2018-05-29)
Bug fixes and improvements in Java 9 support.
Improved support for Cygwin.
Update of Mozilla Rhino.
Update of the required setuptools version.
0.2.0b1 (2018-02-26)
Improvement and simplification of setup and packaging.
0.1.1 (2005-10-05)
Initial version.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file jvm-0.4.0b3.zip
.
File metadata
- Download URL: jvm-0.4.0b3.zip
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.7rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd17d487de571be30cea8d7a634a42dfc825a71cefb3d669480c47685f4dcdf4 |
|
MD5 | 703778d3289b0b831964d65c229cf20c |
|
BLAKE2b-256 | c07f76546c96fb7f38ba34b15c02778647b2be6eded3f1aade9b445cef919cd6 |