Java API¶
The Java API provides facilities to use Python classes and objects from Java code. For examples of how to use it, see the demo app.
Quick start¶
- If necessary, call Python.start().
- Call Python.getInstance() to get the interface to Python.
- Call getModule() or getBuiltins() to get a PyObject representing a Python module.
- Use the PyObject methods to access the module’s functions, classes and other objects.