Skip to main content

Jep embeds CPython in Java

Project description

https://img.shields.io/pypi/pyversions/Jep.svg https://img.shields.io/pypi/l/Jep.svg https://img.shields.io/pypi/v/Jep.svg https://img.shields.io/badge/docs-wiki-orange.svg https://img.shields.io/badge/docs-javadoc-orange.svg

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 --no-cache-dir --no-build-isolation jep or download the source and run pip install .. Building and installing require the JDK, Python, setuptools, and optionally numpy to be installed beforehand. The --no-cache-dir and --no-build-isolation options are not strictly required, however those settings enable Jep to make customizations for your environment such as enabling numpy specific behavior if numpy is installed.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jep-4.2.2.tar.gz (3.0 MB view details)

Uploaded Source

File details

Details for the file jep-4.2.2.tar.gz.

File metadata

  • Download URL: jep-4.2.2.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for jep-4.2.2.tar.gz
Algorithm Hash digest
SHA256 4eb79d903133e468c239ba39c8bb5ade021ef202025bf1c9b34a210003e0eab9
MD5 f9a3777937c8a4e9863bc02809e28878
BLAKE2b-256 0e92994ae1013446f26103e9ff71676f4c96a7a6c0a9d6baa8f12805884f7b5e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page