Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konstin/gourgeist
Prototype for reimplementing `virtualenv` in rust
https://github.com/konstin/gourgeist
Last synced: 14 days ago
JSON representation
Prototype for reimplementing `virtualenv` in rust
- Host: GitHub
- URL: https://github.com/konstin/gourgeist
- Owner: konstin
- Created: 2023-09-22T19:59:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-19T09:45:30.000Z (4 months ago)
- Last Synced: 2024-11-25T04:26:22.692Z (about 1 month ago)
- Language: Rust
- Homepage: https://konstin.github.io/gourgeist/
- Size: 1.15 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
**See https://github.com/astral-sh/uv/tree/main/crates/uv-virtualenv for the up to date version**
---
# Gourgeist
Gourgeist is a rust library to create python virtual environments. It also has a CLI.
It currently supports only unix (linux/mac), windows support is missing.
## Rust
```rust
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)?;
```## CLI
Use `python` as base for a virtualenv `.venv`:
```bash
gourgeist
```Or use custom defaults:
```bash
gourgeist -p 3.11 my_env
```## Jessie's gourgeist
![Jessie's gourgeist, a pokemon with a jack o'lantern as body](static/gourgeist.png)