Jep - Java Embedded Python
Jep embeds CPython in Java through JNI.
Some benefits of embedding CPython in a JVM:
Using the native Python interpreter may be much faster than alternatives.
Python is mature, well supported, and well documented.
Access to high quality Python modules, both native CPython extensions and Python-based.
Compilers and assorted Python tools are as mature as the language.
Python is an interpreted language, enabling scripting of established Java code without requiring recompilation.
Both Java and Python are cross platform, enabling deployment to different operating systems.
Installation
Simply run pip install jep or download the source and run pip install .. Building and installing require the JDK and Python, to be installed beforehand. Pip will need to be able to install setuptools and numpy to build jep.
Dependencies
Python >= 3.10
Java >= 1.8
NumPy >= 1.7 (optional)
Notable features
Interactive Jep console much like Python’s interactive console
Supports multiple, simultaneous, mostly sandboxed sub-interpreters or shared interpreters
Numpy support for Java primitive arrays
Help
We welcome comments, contributions, bug reports, wiki documentation, etc.
If you need help, please first search for existing solutions online, in the the issues, and on the wiki. If you still need help, please open a GitHub issue and we will try and help you. Please remember to close the issue once it has been resolved.
Jep Team
Release files for jep 4.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jep-4.3.2.tar.gz | 3.0 MB | Details |
Release files / jep-4.3.2.tar.gz
| Download URL | jep-4.3.2.tar.gz |
|---|---|
| Size | 3.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4deb6f9f5bc993a0818861efc5323ccc71373c4c38f303fc412998f02dde6e5c
|
|
BLAKE2b-256 checksum How to use checksums |
f3df2af8063636862e47005fc508a998a5e7a1dc6c26ced95f547af9e2a820c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.3
|