# ninia/jep

Embed Python in Java

Repository: https://github.com/ninia/jep
Canonical: https://ross.abutalabs.com/products/jep
Language: C
License: NOASSERTION
License Family: other
Topics: c, java, python, cpython, jni
Last push: 2026-08-15T15:32:26+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 74, longevity 100
- inputs: {"age_days": 5676, "days_push": 18, "days_rel": 18, "gap_med": 168.0, "n_releases_24m": 5}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1488, forks 165 (observed 2026-08-28T04:04:52.208324+00:00)

## What it is
Jep is a library that embeds CPython in the Java Virtual Machine through JNI, allowing Java applications to run Python code and use Python modules natively. It supports multiple sub-interpreters, an interactive console, and NumPy interop with Java primitive arrays.

## Use cases
- call python code from a java application
- embed cpython in the jvm via jni
- script java applications with python without recompiling
- use python libraries like numpy from java
- run multiple sandboxed python sub-interpreters in java
- bridge java and python data types

## When to choose
- you need the real CPython interpreter inside a Java app for speed and module compatibility
- you want to script or extend established Java code with Python
- you need NumPy array interop with Java primitive arrays

## When to avoid
- you only need to run Python as a separate process or microservice
- you want pure-Java Python integration without native dependencies
- your project requires GraalVM or Jython-style pure-JVM interoperability

## Facets
- artifact type: library
- maturity: active
- function: interpreter, sdk, concurrency
- domain: developer-tools, programming-languages, cross-platform
- platform: jvm, python, cross-platform, windows
- tags: jni, cpython, embedding, jvm, interop, linux, macos

## Member repositories
- ninia/jep (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:52.208324+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:33:45.283247+00:00, confidence not recorded.
  - readme: https://github.com/ninia/jep (fetched 2026-08-28T04:04:52.208324+00:00, sha 2b45db76ca90)
- Data as of 2026-08-30T08:39:29.467469+00:00.
