Jython runs Python 2.7 on the JVM so Python code can call Java classes and ship in Java apps. It includes much of the Python standard library and pip support without C extensions
Overview
Jython implements Python on the Java virtual machine, giving Python programs access to Java libraries and JVM services. The current line targets Python 2.7 language compatibility with a standard library drawn from late CPython 2.7 releases, while some modules use Jython-specific implementations.
Typical uses described by the project include embedded scripting inside Java applications, interactive experimentation against live Java packages, and shorter Python code paths that interoperate with Java during development and in delivered products. Built-in pip and setuptools support helps install pure-Python dependencies. Windows includes a native launcher comparable to the standard python command.
Binary installers and Maven or Gradle coordinates are published for deployment. The runtime is positioned as complementary to Java rather than a substitute for moving applications to Python 3, because only the 2.7 language line is supported today while a 3.x effort is mentioned as future work.
Downstream examples cite administrative scripting in application servers, user-defined functions in data platforms, scripted image processing, scientific experiment control, test automation frameworks, and educational environments.
Key features
- Python 2.7 on JVM
- Java class interoperability
- Interactive interpreter
- pip for pure-Python packages
- Windows native launcher
- Large standard library port
- Maven and Gradle artifacts
Use cases
- Embedded scripting in Java apps
- Interactive Java debugging
- Mixed Python and Java products
- Administrative automation scripts