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

  1. If necessary, call Python.start().
  2. Call Python.getInstance() to get the interface to Python.
  3. Call getModule() or getBuiltins() to get a PyObject representing a Python module.
  4. Use the PyObject methods to access the module’s functions, classes and other objects.

Reference

For full documentation, see the Javadoc.