Module python_utils

Module python_utils 

Source

Functions§

py_buildargs
Convert a vector of T to a Python List of T.
py_exec
Runs a closure that follows the signature |py: RUMPython| -> R {}. Remember, the type of the py token needs to be explicitly added or there will be a type inference error from Rust about lifetimes when in fact the closure has no lifetime issues. See example below.
py_exec_module
Function for executing a python module’s function. If you set the argument func_name to an empty string, py_exec will do nothing. Allegedly, the module executed upon import.
py_extract_any
Extract value returned from functions and modules via a PyAny object.
py_extract_string_vector
py_list_to_tuple
py_load
Load a python module from a given file path!
py_new_args
Create empty Python List, which can be used for creating a collection of arguments to pass to script.
py_push_arg
Push argument of type T into instance of Python List. We can then use the list to pass arguments to Python function or method.

Type Aliases§

RUMPyAny
RUMPyArgs
RUMPyFunction
RUMPyList
RUMPyModule
RUMPyResult
RUMPyResultList
RUMPyTuple
RUMPython