| lib.rs |
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.
[xshell]: https://docs.rs/xshell/
## Example
```rust
use xshell_venv::{Shell, VirtualEnv};
# fn main() -> xshell_venv::Result<()> {
let sh = Shell::new()?;
let venv = VirtualEnv::new(&sh, "py3")?;
venv.run("print('Hello World!')")?; // "Hello World!"
# Ok(())
# }
``` |
12345 |
- |