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

A

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

C

call(Object...) - Method in class com.chaquo.python.PyObject
Equivalent to Python () syntax.
callAttr(String, Object...) - Method in class com.chaquo.python.PyObject
Same as get(key).call(args), except it throws a PyException if the attribute does not exist.
callAttrThrows(String, Object...) - Method in class com.chaquo.python.PyObject
Same as callAttr(), except it directly passes any Java exception thrown by the Python code.
callThrows(Object...) - Method in class com.chaquo.python.PyObject
Same as call(), except it directly passes any Java exception thrown by the Python code.
clear() - Method in class com.chaquo.python.PyObject
Attempts to remove all attributes returned by PyObject.keySet().
close() - Method in class com.chaquo.python.PyObject
Releases the reference to the Python object.
com.chaquo.python - package com.chaquo.python
Cross-platform components.
com.chaquo.python.android - package com.chaquo.python.android
Android components.
containsKey(Object) - Method in class com.chaquo.python.PyObject
Equivalent to Python hasattr().
containsValue(Object) - Method in class com.chaquo.python.PyObject
Returns whether any attribute has the given value.

E

entrySet() - Method in class com.chaquo.python.PyObject
See notes on PyObject.keySet().
equals(Object) - Method in class com.chaquo.python.PyObject
Equivalent to Python == operator.

F

finalize() - Method in class com.chaquo.python.PyObject
fromJava(Object) - Static method in class com.chaquo.python.PyObject
Converts the given Java object to a Python object.

G

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

H

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

I

id() - Method in class com.chaquo.python.PyObject
Equivalent to Python id().
isEmpty() - Method in class com.chaquo.python.PyObject
Equivalent to PyObject.keySet().isEmpty().
isStarted() - Static method in class com.chaquo.python.Python
Returns whether Python is running.

K

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

O

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

P

Platform() - Constructor for class com.chaquo.python.Python.Platform
 
put(String, PyObject) - Method in class com.chaquo.python.PyObject
Equivalent to Python setattr().
put(String, Object) - Method in class com.chaquo.python.PyObject
Equivalent to Python setattr().
PyApplication - Class in com.chaquo.python.android
Application subclass which automatically starts Python.
PyApplication() - Constructor for class com.chaquo.python.android.PyApplication
 
PyException - Exception in com.chaquo.python
An exception thrown from Python to Java.
PyException() - Constructor for exception com.chaquo.python.PyException
 
PyException(String) - Constructor for exception com.chaquo.python.PyException
 
PyException(String, Throwable) - Constructor for exception com.chaquo.python.PyException
 
PyException(Throwable) - Constructor for exception com.chaquo.python.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

redirectStdioToLogcat() - Method in class com.chaquo.python.android.AndroidPlatform
Redirects the native stdout and stderr streams to Logcat.
remove(Object) - Method in class com.chaquo.python.PyObject
Equivalent to Python delattr().
repr() - Method in class com.chaquo.python.PyObject
Equivalent to Python repr().

S

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

T

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

V

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