Skip to main content

python_executor

Function python_executor 

Source
pub fn python_executor() -> ProcessExecutor
Expand description

Create a Python executor.

§Examples

let executor = python_executor().timeout(Duration::from_secs(10));
let result = executor.execute("print('hello')").await;