Skip navigation links
A C D E F G H I K L O P R S T U V 

A

add(PyObject) - Method in class org.jpy.PyListWrapper
 
add(int, PyObject) - Method in class org.jpy.PyListWrapper
 
addAll(Collection<? extends PyObject>) - Method in class org.jpy.PyListWrapper
 
addAll(int, Collection<? extends PyObject>) - Method in class org.jpy.PyListWrapper
 
asDict() - Method in class org.jpy.PyObject
 
asList() - Method in class org.jpy.PyObject
 
assertPythonRuns() - Static method in class org.jpy.PyLib
Throws a runtime exception if Python interpreter is not running.

C

call(String, String) - Method in class org.jpy.CreateModule
 
call(String, Object...) - Method in class org.jpy.PyObject
Call the callable Python object with the given name and arguments.
call(Class<T>, String, Class<?>[], Object[]) - Method in class org.jpy.PyObject
 
call(Class<T>, String, Class<A0>, A0) - Method in class org.jpy.PyObject
 
call(Class<T>, String, Class<A0>, A0, Class<A1>, A1) - Method in class org.jpy.PyObject
 
call(Class<T>, String, Class<A0>, A0, Class<A1>, A1, Class<A2>, A2) - Method in class org.jpy.PyObject
 
callAsFunctionModule(String, String, Class<T>) - Method in class org.jpy.CreateModule
 
callAsMethodModule(String, String, Class<T>) - Method in class org.jpy.CreateModule
 
callMethod(String, Object...) - Method in class org.jpy.PyObject
Call the callable Python method with the given name and arguments.
cleanup() - Static method in class org.jpy.PyObject
 
clear() - Method in class org.jpy.PyDictWrapper
 
clear() - Method in class org.jpy.PyListWrapper
 
close() - Method in class org.jpy.CreateModule
 
close() - Method in interface org.jpy.IdentityModule
 
close() - Method in class org.jpy.PyDictWrapper
 
close() - Method in class org.jpy.PyObject
Decreases the reference count of this on first invocation.
contains(Object) - Method in class org.jpy.PyListWrapper
 
containsAll(Collection<?>) - Method in class org.jpy.PyListWrapper
 
containsKey(Object) - Method in class org.jpy.PyDictWrapper
 
containsKey(String) - Method in class org.jpy.PyDictWrapper
An extension to the Map interface that allows the use of String keys without generating warnings.
containsKey(PyObject) - Method in class org.jpy.PyDictWrapper
 
containsValue(Object) - Method in class org.jpy.PyDictWrapper
 
copy() - Method in class org.jpy.PyDictWrapper
Copy this dictionary into a new dictionary.
create() - Static method in class org.jpy.CreateModule
 
create(CreateModule) - Static method in interface org.jpy.IdentityModule
 
create(CreateModule, Class<T>) - Static method in interface org.jpy.IdentityModule
 
CreateModule - Class in org.jpy
 
createProxy(Class<T>) - Method in class org.jpy.PyModule
Create a Java proxy instance of this Python module which contains compatible functions to the ones provided in the interface given by the type parameter.
createProxy(Class<T>) - Method in class org.jpy.PyObject
Create a Java proxy instance of this Python object which contains compatible methods to the ones provided in the interface given by the type parameter.
createProxy(PyLib.CallableKind, Class<?>...) - Method in class org.jpy.PyObject
Create a Java proxy instance of this Python object (or module) which contains compatible methods (or functions) to the ones provided in the interfaces given by all the type parameters.

D

delAttribute(String) - Method in class org.jpy.PyObject
Deletes the value of a Python attribute.
delItem(Object) - Method in class org.jpy.PyDictWrapper
 
DL - Class in org.jpy
A replacement for System.load(String) with support for POSIX dlopen flags.
DL() - Constructor for class org.jpy.DL
 
dlclose(long) - Static method in class org.jpy.DL
 
dlerror() - Static method in class org.jpy.DL
 
dlopen(String, int) - Static method in class org.jpy.DL
loads the dynamic library file named by the null-terminated string filename and returns an opaque "handle" for the dynamic library.

E

ensureGil(Supplier<T>) - Static method in class org.jpy.PyLib
 
entrySet() - Method in class org.jpy.PyDictWrapper

Note: we are returning a COPY not a VIEW of the entries
eq(Object) - Method in class org.jpy.PyObject
 
equals(Object) - Method in class org.jpy.PyObject
Indicates whether some other object is "equal to" this one.
execScript(String) - Static method in class org.jpy.PyLib
Deprecated.
executeCode(String, PyInputMode) - Static method in class org.jpy.PyObject
Executes Python source code.
executeCode(String, PyInputMode, Object, Object) - Static method in class org.jpy.PyObject
Executes Python source code in the context specified by the globals and locals maps.
executeScript(String, PyInputMode) - Static method in class org.jpy.PyObject
Executes Python source script.
executeScript(String, PyInputMode, Object, Object) - Static method in class org.jpy.PyObject
Executes Python source script in the context specified by the globals and locals maps.
extendSysPath(String, boolean) - Static method in class org.jpy.PyModule
Extends Python's 'sys.path' variable by the given module path.

F

F_ALL - Static variable in class org.jpy.PyLib.Diag
Print any diagnostic information.
F_ERR - Static variable in class org.jpy.PyLib.Diag
Print diagnostic information if erroneous states are detected in the jpy Python module.
F_EXEC - Static variable in class org.jpy.PyLib.Diag
Print diagnostic information when code execution flow is passed from Java to Python or the other way round.
F_JVM - Static variable in class org.jpy.PyLib.Diag
Print diagnostic information usage of the Java VM Invocation API.
F_MEM - Static variable in class org.jpy.PyLib.Diag
Print diagnostic information about memory allocation/deallocation.
F_METH - Static variable in class org.jpy.PyLib.Diag
Print diagnostic information while Java methods overloads are selected.
F_OFF - Static variable in class org.jpy.PyLib.Diag
Print no diagnostic information at all.
F_TYPE - Static variable in class org.jpy.PyLib.Diag
Print diagnostic information while Java types are resolved.

G

get(Object) - Method in class org.jpy.PyDictWrapper
 
get(String) - Method in class org.jpy.PyDictWrapper
An extension to the Map interface that allows the use of String keys without generating warnings.
get(int) - Method in class org.jpy.PyListWrapper
 
getAttribute(String) - Method in class org.jpy.PyObject
Gets the Python value of a Python attribute.
getAttribute(String, Class<? extends T>) - Method in class org.jpy.PyObject
Gets the value of a Python attribute as Java object of a given type.
getBooleanValue() - Method in class org.jpy.PyObject
 
getBuiltins() - Static method in class org.jpy.PyModule
Get the Python interpreter's buildins module and returns its Java representation.
getCurrentGlobals() - Static method in class org.jpy.PyLib
Return a dictionary of the global variables in the current execution frame, or NULL if no frame is currently executing.
getCurrentLocals() - Static method in class org.jpy.PyLib
Return a dictionary of the local variables in the current execution frame, or NULL if no frame is currently executing.
getDllFilePath() - Static method in class org.jpy.PyLib
 
getDoubleValue() - Method in class org.jpy.PyObject
 
getFlags() - Static method in class org.jpy.PyLib.Diag
 
getIntValue() - Method in class org.jpy.PyObject
 
getItem(Object) - Method in class org.jpy.PyDictWrapper
 
getLongValue() - Method in class org.jpy.PyObject
 
getMain() - Static method in class org.jpy.PyModule
Get the Python interpreter's main module and return its Java representation.
getMainGlobals() - Static method in class org.jpy.PyLib
 
getName() - Method in class org.jpy.PyModule
 
getObjectArrayValue(Class<? extends T>) - Method in class org.jpy.PyObject
Gets this Python object as Java Object[] value of the given item type.
getObjectValue() - Method in class org.jpy.PyObject
Gets this Python object as Java Object value.
getPointer() - Method in class org.jpy.PyObject
 
getPythonVersion() - Static method in class org.jpy.PyLib
 
getStringValue() - Method in class org.jpy.PyObject
 
getType() - Method in class org.jpy.PyObject
Gets the Python type object for this wrapped object.

H

hasAttribute(String) - Method in class org.jpy.PyObject
Checks for the existence of a Python attribute..
hasGil() - Static method in class org.jpy.PyLib
 
hash() - Method in class org.jpy.PyObject
Runs the python hash function on this object.
hashCode() - Method in class org.jpy.PyObject
Computes a hash code from this object's pointer value.

I

identity(Object) - Method in interface org.jpy.IdentityModule
 
IDENTITY_CODE - Static variable in interface org.jpy.IdentityModule
 
IdentityModule - Interface in org.jpy
 
importModule(String) - Static method in class org.jpy.PyModule
Import a Python module into the Python interpreter and return its Java representation.
indexOf(Object) - Method in class org.jpy.PyListWrapper
 
initPyLib(String, String, String) - Static method in class org.jpy.PyLibInitializer
This method should only be called once - it is dependent on PyLib and DL being uninitialized.
isBoolean() - Method in class org.jpy.PyObject
 
isCallable() - Method in class org.jpy.PyObject
 
isConvertible() - Method in class org.jpy.PyObject
 
isDict() - Method in class org.jpy.PyObject
 
isDlInitialized() - Static method in class org.jpy.PyLibInitializer
Returns true iff the DL class has been initialized
isEmpty() - Method in class org.jpy.PyDictWrapper
 
isEmpty() - Method in class org.jpy.PyListWrapper
 
isFloat() - Method in class org.jpy.PyObject
 
isFunction() - Method in class org.jpy.PyObject
 
isInt() - Method in class org.jpy.PyObject
 
isList() - Method in class org.jpy.PyObject
 
isLong() - Method in class org.jpy.PyObject
 
isModule() - Method in class org.jpy.PyObject
 
isNone() - Method in class org.jpy.PyObject
 
isPyLibInitialized() - Static method in class org.jpy.PyLibInitializer
Returns true iff the PyLib class has been initialized
isPythonRunning() - Static method in class org.jpy.PyLib
 
isString() - Method in class org.jpy.PyObject
 
isTuple() - Method in class org.jpy.PyObject
 
iterator() - Method in class org.jpy.PyListWrapper
 

K

KeyError - Exception in org.jpy
Translation of Python KeyErrors so that they can be programmatically detected from Java.
keySet() - Method in class org.jpy.PyDictWrapper

Note: we are returning a COPY not a VIEW of the keys

L

lastIndexOf(Object) - Method in class org.jpy.PyListWrapper
 
listIterator() - Method in class org.jpy.PyListWrapper
 
listIterator(int) - Method in class org.jpy.PyListWrapper
 

O

org.jpy - package org.jpy
Provides the classes necessary to create an embedded Python VM, to execute Python code, to import Python modules, to access Python variables, and finally to call Python functions and class methods.

P

put(PyObject, PyObject) - Method in class org.jpy.PyDictWrapper
 
putAll(Map<? extends PyObject, ? extends PyObject>) - Method in class org.jpy.PyDictWrapper
 
putObject(Object, Object) - Method in class org.jpy.PyDictWrapper
 
PyDictWrapper - Class in org.jpy
A simple wrapper around PyObjects that are actually Python dictionaries, to present the most useful parts of a Map interface.
PyInputMode - Enum in org.jpy
Source code input modes for compiling/executing Python source code.
PyLib - Class in org.jpy
Represents the library that provides the Python interpreter (CPython).
PyLib.CallableKind - Enum in org.jpy
The kind of callable Python objects.
PyLib.Diag - Class in org.jpy
Controls output of diagnostic information for debugging.
PyLibInitializer - Class in org.jpy
This helper class is to safely and programmatically configure jpy.
PyLibInitializer() - Constructor for class org.jpy.PyLibInitializer
 
PyListWrapper - Class in org.jpy
A simple wrapper around a Python List object that implements a java List of PyObjects.
PyModule - Class in org.jpy
Represents a Python module.
PyObject - Class in org.jpy
Represents a Python object (of Python/C API type PyObject*) in the Python interpreter.

R

remove(Object) - Method in class org.jpy.PyDictWrapper
 
remove(String) - Method in class org.jpy.PyDictWrapper
 
remove(Object) - Method in class org.jpy.PyListWrapper
 
remove(int) - Method in class org.jpy.PyListWrapper
 
removeAll(Collection<?>) - Method in class org.jpy.PyListWrapper
 
repr() - Method in class org.jpy.PyObject
Gets a the python repr of this object
retainAll(Collection<?>) - Method in class org.jpy.PyListWrapper
 
RTLD_GLOBAL - Static variable in class org.jpy.DL
External symbols defined in the library will be made available to subsequently loaded libraries.
RTLD_LAZY - Static variable in class org.jpy.DL
Resolve undefined symbols as code from the dynamic library is executed.
RTLD_LOCAL - Static variable in class org.jpy.DL
This is the converse of RTLD_GLOBAL, and the default if neither flag is specified.
RTLD_NOW - Static variable in class org.jpy.DL
Resolve all undefined symbols before DL.dlopen(java.lang.String, int) returns and fail if this cannot be done.

S

set(int, PyObject) - Method in class org.jpy.PyListWrapper
 
setAttribute(String, T) - Method in class org.jpy.PyObject
Sets the value of a Python attribute from the given Java object.
setAttribute(String, T, Class<? extends T>) - Method in class org.jpy.PyObject
Sets the value of a Python attribute from the given Java object and Java type (if given).
setFlags(int) - Static method in class org.jpy.PyLib.Diag
Sets the current diagnostic flags.
setItem(Object, Object) - Method in class org.jpy.PyDictWrapper
 
setItem(int, PyObject) - Method in class org.jpy.PyListWrapper
 
setProgramName(String) - Static method in class org.jpy.PyLib
Useful for virtual environments, helps in setting sys.prefix/exec_prefix.
setPythonHome(String) - Static method in class org.jpy.PyLib
Does the equivalent of setting the PYTHONHOME environment variable.
size() - Method in class org.jpy.PyDictWrapper
 
size() - Method in class org.jpy.PyListWrapper
 
startPython(String...) - Static method in class org.jpy.PyLib
Delegates to PyLib.startPython(int, String...) with flags = Diag.F_OFF.
startPython(int, String...) - Static method in class org.jpy.PyLib
Starts the Python interpreter.
StopIteration - Exception in org.jpy
Translation of Python StopIteration so that they can be programmatically detected from Java.
stopPython() - Static method in class org.jpy.PyLib
Stops the Python interpreter.
str() - Method in class org.jpy.PyObject
Runs the python str function on this object.
subList(int, int) - Method in class org.jpy.PyListWrapper
 

T

toArray() - Method in class org.jpy.PyListWrapper
 
toArray(T[]) - Method in class org.jpy.PyListWrapper
 
toString(int) - Method in class org.jpy.PyListWrapper
Return a summarized preview of this list.
toString() - Method in class org.jpy.PyObject
Gets the python string representation of this object.

U

unwrap() - Method in class org.jpy.PyDictWrapper
Gets the underlying PyObject.
unwrapProxy(Object) - Static method in class org.jpy.PyObject
Unwraps the original Python object used to create object.

V

value() - Method in enum org.jpy.PyInputMode
 
valueOf(String) - Static method in enum org.jpy.PyInputMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jpy.PyLib.CallableKind
Returns the enum constant of this type with the specified name.
values() - Method in class org.jpy.PyDictWrapper

Note: we are returning a COPY not a VIEW of the values
values() - Static method in enum org.jpy.PyInputMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jpy.PyLib.CallableKind
Returns an array containing the constants of this enum type, in the order they are declared.
A C D E F G H I K L O P R S T U V 
Skip navigation links

Copyright © 2014–2022 Brockmann Consult GmbH. All rights reserved.