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

A

ABI - Static variable in class AndroidPlatform
 
AndroidPlatform - Class in com.chaquo.python.android
Platform for Chaquopy on Android.
AndroidPlatform(Context) - Constructor for class AndroidPlatform
Uses the Application context of the given context to initialize Python.
asList() - Method in class PyObject
Returns a view of the Python object as a list.
asMap() - Method in class PyObject
Returns a view of the Python object as a map.
asSet() - Method in class PyObject
Returns a view of the Python object as a set.

C

call(Object...) - Method in class PyObject
Equivalent to Python () syntax.
callAttr(String, Object...) - Method in class PyObject
Equivalent to get(key).call(args), except it throws a PyException if the attribute does not exist.
callAttrThrows(String, Object...) - Method in class PyObject
Same as callAttr(), except that it directly passes any Java exception thrown by the Python code rather than wrapping it in a PyException
callThrows(Object...) - Method in class PyObject
Same as call(), except that it directly passes any Java exception thrown by the Python code rather than wrapping it in a PyException
clear() - Method in class PyObject
Removes all attributes returned by dir().
close() - Method in class PyObject
Releases the reference to the Python object.
com.chaquo.python - package com.chaquo.python
Non-platform-specific components.
com.chaquo.python.android - package com.chaquo.python.android
Android-related components.
containsKey(Object) - Method in class PyObject
Equivalent to Python hasattr().
containsValue(Object) - Method in class PyObject
The value will be converted as described at fromJava().

E

entrySet() - Method in class PyObject
 
equals(Object) - Method in class PyObject
Equivalent to Python == operator.

F

finalize() - Method in class PyObject
fromJava(Object) - Static method in class PyObject
Gives the given Java object a presence in the Python virtual machine.

G

GenericPlatform - Class in com.chaquo.python
Platform for a normal Python installation.
GenericPlatform() - Constructor for class GenericPlatform
 
get(Object) - Method in class PyObject
Equivalent to Python getattr().
getApplication() - Method in class AndroidPlatform
Returns the Application context of the context which was passed to the contructor.
getBuiltins() - Method in class Python
Returns the builtins module, which contains Python’s built-in functions (e.g.
getInstance() - Static method in class Python
Gets the interface to Python.
getModule(String) - Method in class Python
Returns the module with the given name.
getPath() - Method in class AndroidPlatform
 
getPath() - Method in class GenericPlatform
 
getPath() - Method in class Python.Platform
Returns the value to assign to PYTHONPATH, or null to leave it unset.
getPlatform() - Static method in class Python
Returns the Platform object which was used to start Python, or null if Python has not yet been started.

H

hashCode() - Method in class PyObject
Equivalent to Python hash().

I

id() - Method in class PyObject
Equivalent to Python id().
isEmpty() - Method in class PyObject
Equivalent to PyObject.keySet().isEmpty().
isStarted() - Static method in class Python
Return whether the Python virtual machine is running

K

key - Variable in class Kwarg
 
keySet() - Method in class PyObject
Equivalent to Python dir().
Kwarg - Class in com.chaquo.python
A Python keyword argument.
Kwarg(String, Object) - Constructor for class Kwarg
The value will be converted as described at PyObject.fromJava().

O

onCreate() - Method in class PyApplication
Starts Python.
onStart(Python) - Method in class AndroidPlatform
 
onStart(Python) - Method in class Python.Platform
Called after Python is started.

P

Platform() - Constructor for class Python.Platform
 
put(String, PyObject) - Method in class PyObject
Equivalent to Python setattr().
put(String, Object) - Method in class PyObject
Equivalent to Python setattr().
PyApplication - Class in com.chaquo.python.android
Application subclass which automatically starts Python.
PyApplication() - Constructor for class PyApplication
 
PyException - Exception in com.chaquo.python
An exception propagating from Python to Java.
PyException() - Constructor for exception PyException
 
PyException(String) - Constructor for exception PyException
 
PyException(String, Throwable) - Constructor for exception PyException
 
PyException(Throwable) - Constructor for exception PyException
 
PyObject - Class in com.chaquo.python
Interface to a Python object.
Python - Class in com.chaquo.python
Interface to Python.
Python.Platform - Class in com.chaquo.python
Provides information needed to start Python.

R

remove(Object) - Method in class PyObject
Equivalent to Python delattr().
repr() - Method in class PyObject
Equivalent to Python repr().

S

setPath(String) - Method in class GenericPlatform
Sets the value to assign to PYTHONPATH.
start(Python.Platform) - Static method in class Python
Starts the Python virtual machine.

T

toBoolean() - Method in class PyObject
Converts a Python bool to a Java boolean.
toByte() - Method in class PyObject
Converts a Python int to a Java byte.
toChar() - Method in class PyObject
Converts a 1-character Python string to a Java char.
toDouble() - Method in class PyObject
Converts a Python float or int to a Java double.
toFloat() - Method in class PyObject
Converts a Python float or int to a Java float.
toInt() - Method in class PyObject
Converts a Python int to a Java int.
toJava(Class<T>) - Method in class PyObject
Converts the Python object to the given Java type.
toLong() - Method in class PyObject
Converts a Python int to a Java long.
toShort() - Method in class PyObject
Converts a Python int to a Java short.
toString() - Method in class PyObject
Equivalent to Python str().
type() - Method in class PyObject
Equivalent to Python type().

V

value - Variable in class Kwarg
 
A C E F G H I K O P R S T V 
Skip navigation links