Modifier and Type | Class and Description |
---|---|
class |
PyModule
Represents a Python module.
|
Modifier and Type | Method and Description |
---|---|
PyObject |
PyObject.call(String name,
Object... args)
Call the callable Python object with the given name and arguments.
|
PyObject |
PyObject.callMethod(String name,
Object... args)
Call the callable Python method with the given name and arguments.
|
static PyObject |
PyObject.executeCode(String code,
PyInputMode mode)
Executes Python source code.
|
static PyObject |
PyObject.executeCode(String code,
PyInputMode mode,
Map<String,Object> globals,
Map<String,Object> locals)
Executes Python source code in the context specified by the
globals and locals maps. |
static PyObject |
PyModule.extendSysPath(String modulePath,
boolean prepend)
Extends Python's 'sys.path' variable by the given module path.
|
PyObject |
PyObject.getAttribute(String name)
Gets the Python value of a Python attribute.
|
Copyright © 2014–2017 Brockmann Consult GmbH. All rights reserved.