Documentation ¶
Index ¶
- func FindPythonConfig(customVersion string) (selectedVersion string, err error)
- func GetItem(d unsafe.Pointer, k string) (unsafe.Pointer, error)
- func Init() error
- func LoadModuleDict(m string) (unsafe.Pointer, error)
- func PyBytesAsString(o unsafe.Pointer, l int) ([]byte, error)
- func PyBytesFromString(input []byte) (unsafe.Pointer, error)
- func PyBytes_AsString(arg0 *C.PyObject) *C.char
- func PyBytes_FromStringAndSize(arg0 *C.char, arg1 C.long) *C.PyObject
- func PyDict_GetItemString(dp *C.PyObject, key *C.char) *C.PyObject
- func PyErr_Print()
- func PyEval_InitThreads()
- func PyEval_SaveThread() *C.PyThreadState
- func PyGILState_Ensure() C.PyGILState_STATE
- func PyGILState_Release(arg0 C.PyGILState_STATE)
- func PyImportImport(modulePtr unsafe.Pointer) unsafe.Pointer
- func PyImport_Import(name *C.PyObject) *C.PyObject
- func PyLongAsLong(o unsafe.Pointer) int
- func PyLong_AsLong(arg0 *C.PyObject) C.long
- func PyModule_GetDict(arg0 *C.PyObject) *C.PyObject
- func PyObjectCallObject(o unsafe.Pointer, args unsafe.Pointer) (unsafe.Pointer, error)
- func PyObjectGetAttr(o unsafe.Pointer, attr interface{}) (unsafe.Pointer, error)
- func PyObject_CallObject(callable_object *C.PyObject, args *C.PyObject) *C.PyObject
- func PyObject_GetAttr(arg0 *C.PyObject, arg1 *C.PyObject) *C.PyObject
- func PyRunSimpleString(s string)
- func PyRun_SimpleStringFlags(arg0 *C.char, arg1 unsafe.Pointer) C.int
- func PyTupleGetItem(tup unsafe.Pointer, pos int) (unsafe.Pointer, error)
- func PyTupleNew(size int) (unsafe.Pointer, error)
- func PyTupleSetItem(tup unsafe.Pointer, pos int, o interface{}) error
- func PyTuple_GetItem(arg0 *C.PyObject, arg1 C.long) *C.PyObject
- func PyTuple_New(size C.long) *C.PyObject
- func PyTuple_SetItem(arg0 *C.PyObject, arg1 C.long, arg2 *C.PyObject) C.int
- func PyUnicodeFromString(s string) unsafe.Pointer
- func PyUnicode_FromString(u *C.char) *C.PyObject
- func Py_Initialize()
- func Py_IsInitialized() C.int
- func SetPythonPath(p []string)
- func ToPyObject(p unsafe.Pointer) *C.PyObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindPythonConfig ¶
FindPythonConfig scans PATH for common python-config locations.
func LoadModuleDict ¶
LoadModuleDict wraps PyModule_GetDict.
func PyBytesAsString ¶
PyBytesAsString wraps PyBytes_AsString
func PyBytesFromString ¶
PyBytesFromString wraps PyBytesFromString
func PyErr_Print ¶
func PyErr_Print()
func PyEval_InitThreads ¶
func PyEval_InitThreads()
func PyEval_SaveThread ¶
func PyEval_SaveThread() *C.PyThreadState
func PyGILState_Ensure ¶
func PyGILState_Ensure() C.PyGILState_STATE
func PyGILState_Release ¶
func PyGILState_Release(arg0 C.PyGILState_STATE)
func PyObjectCallObject ¶
PyObjectCallObject wraps PyObject_CallObject
func PyObjectGetAttr ¶
PyObjectGetAttr wraps PyObject_GetAttr
func PyObject_CallObject ¶
func PyRunSimpleString ¶
func PyRunSimpleString(s string)
PyRunSimpleString wraps PyRun_SimpleStringFlags
func PyRun_SimpleStringFlags ¶
func PyTupleGetItem ¶
PyTupleGetItem wraps PyTuple_GetItem
func PyTupleSetItem ¶
PyTupleSetItem wraps PyTuple_SetItem
func PyUnicodeFromString ¶
func Py_Initialize ¶
func Py_Initialize()
func Py_IsInitialized ¶
func SetPythonPath ¶
func SetPythonPath(p []string)
SetPythonPath is a helper for setting PYTHONPATH.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.