Crate xshell_venv

Source
Expand description

xshell-venv manages your Python virtual environments in code.

This is an extension to xshell, the swiss-army knife for writing cross-platform “bash” scripts in Rust.

§Example

use xshell_venv::{Shell, VirtualEnv};

let sh = Shell::new()?;
let venv = VirtualEnv::new(&sh, "py3")?;

venv.run("print('Hello World!')")?; // "Hello World!"

Structs§

Shell
A Shell is the main API entry point.
VirtualEnv
A Python virtual environment.

Enums§

Error
An error returned by an xshell operation.

Type Aliases§

Result
Result from std, with the error type defaulting to xshell_venv’s Error.