pemja
PemJa
Decision gist · record as of 2026-08-14
Yes, if you need bidirectional Python-Java interop and can tolerate aging maintenance. The package is stable (Production/Stable classifier), has no known vulnerabilities, and covers modern Python versions with prebuilt wheels. However, the 413-day release gap suggests limited ongoing support; evaluate whether the project's maturity and your platform requirements align before committing to a production dependency.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Java 8 or 11 with $JAVA_HOME set; on Windows, Microsoft Visual C++ 14.0 or greater is required.
- Python >= 3.8.
- Medium install friction due to native wheels and a runtime dependency on find-libpython.
License · maintenance · safety
permissive license (permissive) — Apache 2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and state significant changes.
last release 2025-06-27 (413 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 227,162 downloads/mo, #9,184 on PyPI
Alternatives
Verify before relying
pip install pemja
# In Java:
PythonInterpreterConfig config = PythonInterpreterConfig
.newBuilder()
.setPythonExec("python3")
.build();
PythonInterpreter interpreter = new PythonInterpreter(config);
interpreter.set("a", 12345);
interpreter.get("a", Integer.class);- Whether the 413-day gap since last release indicates active maintenance or dormancy.
- Performance characteristics and overhead of the FFI bridge for typical workloads.
- Compatibility with Python versions beyond 3.13 or Java versions beyond 11.
What it is and what it does
PemJa is a cross-language FFI framework that bridges Python and Java, allowing bidirectional method invocation. From Java, you can instantiate a Python interpreter, execute Python code, call Python functions, and retrieve results as typed Java objects. From Python, you can locate and invoke Java classes and methods. The package ships as prebuilt wheels for Python 3.8–3.13 on macOS and Linux, with a single runtime dependency on find-libpython.
Typical use cases include embedding Python scripting in Java applications, automating Python workflows from Java, or building polyglot systems where performance-critical code runs in Java and data processing or prototyping happens in Python. Installation is straightforward via pip on supported platforms, though Windows builds require manual setup and the aging maintenance status suggests the project may not be actively developed.
Use it for
- Embed Python scripting logic into a Java application without spawning separate processes.
- Call Java libraries from Python code to leverage existing Java ecosystems or performance-critical components.
- Build data pipelines where Java handles I/O and Python handles numerical or ML transformations.
- Prototype algorithms in Python and invoke them from a production Java service.
- Implement Python callbacks that respond to events or requests originating in Java.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need bidirectional Python-Java interop and can tolerate aging maintenance.
The package is stable (Production/Stable classifier), has no known vulnerabilities, and covers modern Python versions with prebuilt wheels. However, the 413-day release gap suggests limited ongoing support; evaluate whether the project's maturity and your platform requirements align before committing to a production dependency.
Install
pemja on PyPI
Before you install
Medium install friction due to native wheels and a runtime dependency on find-libpython. Prebuilt wheels cover Python 3.8–3.13 on macOS (Intel and ARM) and Linux x86_64, but the package is aging—last release was 413 days ago.
Requires Java 8 or 11 with $JAVA_HOME set; on Windows, Microsoft Visual C++ 14.0 or greater is required. Python >= 3.8.
License in practice
Apache 2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and state significant changes.
Quickstart
pip install pemja
# In Java:
PythonInterpreterConfig config = PythonInterpreterConfig
.newBuilder()
.setPythonExec("python3")
.build();
PythonInterpreter interpreter = new PythonInterpreter(config);
interpreter.set("a", 12345);
interpreter.get("a", Integer.class);
Verify before relying
- Whether the 413-day gap since last release indicates active maintenance or dormancy.
- Performance characteristics and overhead of the FFI bridge for typical workloads.
- Compatibility with Python versions beyond 3.13 or Java versions beyond 11.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 1 packagefind-libpython |
| Maintenance | Aging 413 days since the last release |
| First released | |
| Downloads | 227,162 / month, #9,184 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: UnixProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPython |
Evidence: pemja-0.6.1-cp310-cp310-macosx_10_9_x86_64.whl; pemja-0.6.1-cp310-cp310-macosx_11_0_arm64.whl; pemja-0.6.1-cp310-cp310-manylinux1_x86_64.whl; pemja-0.6.1-cp311-cp311-macosx_10_9_x86_64.whl; pemja-0.6.1-cp311-cp311-macosx_11_0_arm64.whl; pemja-0.6.1-cp311-cp311-manylinux1_x86_64.whl; pemja-0.6.1-cp312-cp312-macosx_10_13_x86_64.whl; pemja-0.6.1-cp312-cp312-macosx_11_0_arm64.whl; pemja-0.6.1-cp312-cp312-manylinux1_x86_64.whl; pemja-0.6.1-cp313-cp313-macosx_10_13_x86_64.whl; pemja-0.6.1-cp313-cp313-macosx_11_0_arm64.whl; pemja-0.6.1-cp313-cp313-manylinux1_x86_64.whl; pemja-0.6.1-cp313-cp313t-macosx_10_13_x86_64.whl; pemja-0.6.1-cp313-cp313t-macosx_11_0_arm64.whl; pemja-0.6.1-cp313-cp313t-manylinux1_x86_64.whl; pemja-0.6.1-cp38-cp38-macosx_10_9_x86_64.whl; pemja-0.6.1-cp38-cp38-macosx_11_0_arm64.whl; pemja-0.6.1-cp38-cp38-manylinux1_x86_64.whl; pemja-0.6.1-cp39-cp39-macosx_10_9_x86_64.whl; pemja-0.6.1-cp39-cp39-macosx_11_0_arm64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “cross language ffi”
- pemjaPemJa enables Python code to call Java methods and classes, and Java…
- cut-cross-entropyComputes cross-entropy loss for large-vocabulary language models with…
- pact-python-ffiProvides direct Python bindings to the Pact FFI (Foreign Function…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also py4j · java-access-bridge-wrapper · javaobj-py3 · pact-python-ffi · jdk4py · jpype1 · powerfx · pyobjc · pyobjc-core · JayDeBeApi