Crates.io | gourgeist |
lib.rs | gourgeist |
version | 0.0.4 |
source | src |
created_at | 2023-09-29 13:23:50.411852 |
updated_at | 2023-09-29 18:41:54.891062 |
description | virtualenv creation implemented in rust |
homepage | |
repository | https://github.com/konstin/gourgeist |
max_upload_size | |
id | 987323 |
size | 1,172,653 |
Gourgeist is a rust library to create python virtual environments. It also has a CLI.
use camino::Utf8PathBuf;
use gourgeist::{create_venv, get_interpreter_info, parse_python_cli};
let location = cli.path.unwrap_or(Utf8PathBuf::from(".venv"));
let python = parse_python_cli(cli.python)?;
let data = get_interpreter_info(&python)?;
create_venv(&location, &python, &data, cli.bare)?;
Use python
as base for a virtualenv .venv
:
gourgeist
Or use custom defaults:
gourgeist -p 3.11 my_env