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 jep or download the source and run python setup.py build install. Building and installing require the JDK, Python, and optionally numpy to be installed beforehand.

Dependencies

  • Python 2.7, 3.3, 3.4, 3.5, 3.6 or 3.7

  • Java >= 1.7

  • NumPy >= 1.7 (optional)

Notable features

  • Interactive Jep console much like Python’s interactive console

  • Supports multiple, simultaneous, mostly sandboxed sub-interpreters

  • Numpy support for Java primitive arrays

Help

We welcome comments, contributions, bug reports, wiki documentation, etc.

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-3.8.2.tar.gz (3.0 MB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: jep-3.8.2.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.6.0 setuptools/0.9.8 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.5

File hashes

Hashes for jep-3.8.2.tar.gz
Algorithm Hash digest
SHA256 6825fa2d399c228ebcb0c70b979b6ab733468b7c9541ab48ef1d9ca83184de2f
MD5 900f0d5ac7e8ddbe886cd06653581b7f
BLAKE2b-256 3e0cd78776bc56fcef175470c3a7081361cffedd10ca3e8fff9ebdb2c51f9e7e

See more details on using hashes here.

Supported by

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