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. - Virtual
Env - A Python virtual environment.
Enums§
- Error
- An error returned by an
xshell
operation.