Jep embeds CPython in Java
Project description
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, Python, and optionally numpy to be installed beforehand.
Dependencies
Python >= 3.6
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
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 jep-4.2.1.tar.gz
.
File metadata
- Download URL: jep-4.2.1.tar.gz
- Upload date:
- Size: 3.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ff9f9d431f11dc085220abac9b07905daacc70cfd6096451fea9b142d527c1b |
|
MD5 | 9fd291135a5b2438bb33019f22d7af1a |
|
BLAKE2b-256 | 524334d397902b3e7c9b667f855e4be41eb8ba5e62df999b563095f713d03cfa |