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

A Shell is the main API entry point.

A Python virtual environment.

Enums

An error returned by an xshell operation.

Type Definitions

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