Functions | |
| void | CallPythonInit (const std::string &filename) |
| Initializes CallPython for a given file. | |
| template<typename... Types> | |
| PythonRemoteVariable | CallPython (const std::string &function_name, Types... args) |
| Calls a Python client with a given function and arguments, returning a handle to the result. | |
| template<typename... Types> | |
| PythonRemoteVariable | ToPythonTuple (Types... args) |
| Creates a tuple in Python. | |
| template<typename... Types> | |
| PythonRemoteVariable | ToPythonKwargs (Types... args) |
| Creates a keyword-argument list to be unpacked. | |
| std::string | GetRpcPipeTempDirectory () |
| Returns a directory location suitable for temporary files for the call_* clients and libraries. | |
| PythonRemoteVariable CallPython | ( | const std::string & | function_name, |
| Types... | args ) |
Calls a Python client with a given function and arguments, returning a handle to the result.
For example uses, see call_python_test.cc.
| void CallPythonInit | ( | const std::string & | filename | ) |
Initializes CallPython for a given file.
If this function is not called, then the filename defaults to /tmp/python_rpc.
| std::exception | If either this function or CallPython have already been called. |
| std::string GetRpcPipeTempDirectory | ( | ) |
Returns a directory location suitable for temporary files for the call_* clients and libraries.
| std::exception | If the path referred to by TEST_TMPDIR or /tmp does not exist or is not a directory. |
| PythonRemoteVariable ToPythonKwargs | ( | Types... | args | ) |
Creates a keyword-argument list to be unpacked.
| args | Argument list in the form of (key1, value1, key2, value2, ...). |
| PythonRemoteVariable ToPythonTuple | ( | Types... | args | ) |
Creates a tuple in Python.