py4j/py4j
Py4J enables Python programs to dynamically access arbitrary Java objects observed · 2026-08-28
Health v2 · maintenance only
71/100
- Activity 87
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5783
- days_rel: n/a
- days_push: 83
- n_releases_24m: 0
Adoption not part of the score
1288 stars · 234 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Py4J is a library that lets Python programs dynamically access Java objects in a JVM over sockets, calling methods as if the objects lived in Python, and lets Java call back into Python. It requires no code generation and works with any Python interpreter, including ones with C extensions.
Use cases
- call Java libraries from Python
- use a Java framework from a Python script
- bridge Python and JVM code without Jython
- implement Java interfaces in Python
- access Java collections from Python
- reuse existing Java code in a Python application
When to choose
- you need to call Java code from CPython while keeping native Python libraries like lxml or numpy
- you want dynamic, no-codegen access to arbitrary Java objects
- you need bidirectional Python-Java callbacks
- portability across JVMs matters more than raw interop speed
When to avoid
- you need maximum performance - socket-based RPC has high overhead compared to JPype or Jython
- you need Python threads mapped to Java threads
- you want to run Python code inside the JVM
- your project is Spark-specific and can use its native Python APIs
Facets
library · maturity maintenance
rpc sdk developer-tools programming-languages microservices developer-tools cross-platform python jvm cross-platform python-java-bridge interop jvm sockets gateway
6 sources
- readme: https://github.com/py4j/py4j · fetched 2026-08-28 · f510f699d385
- homepage: https://www.py4j.org · fetched 2026-08-29 · 651ee161b3b8
- site_page: https://www.py4j.org/about.html · fetched 2026-08-29 · 257632e5a4f0
- site_page: https://www.py4j.org/contents.html · fetched 2026-08-29 · e7d0c7e6dd36
- site_page: https://www.py4j.org/faq.html · fetched 2026-08-29 · a2fa7b7f51f6
- site_page: https://www.py4j.org/changelog.html · fetched 2026-08-29 · c988ad3f8219
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| py4j/py4j | main | 71 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem