Pen is a tool for managing Python environments with different Python versions. (v0.5.0)
- Create and manage virtual environments with specified Python versions.
- Easily install, activate, and deactivate environments.
- Simple command interface for streamlined usage.
Currently, this software supports only Linux and macOS environments. Windows is not supported at this time.
Requirements:
- sh (does not need to be the default shell)
- curl
- tar
- make
- bash (only for fast install)
- cargo (only for manual install)
Run this in your terminal:
bash <(curl -sL "https://raw.githubusercontent.com/azomDev/pen/main/release_files/unix/install.sh")
-
Clone the repository and navigate to the directory:
git clone https://github.com/azomDev/pen.git cd pen
-
Build the project:
cargo build --release
-
Set up the environment:
mkdir ~/.pen mv target/release/pen ~/.pen/core TODO
-
Clean up and apply changes:
cd .. rm -rf pen/ sudo ln -s ~/.pen/core /usr/local/bin/pen
Command Format: pen <COMMAND>
-
create
(c
): Create a virtual environment with a specific Python version.pen create 3.9.1
-
install
(i
): Install a specific Python version.pen install 3.8.5
-
list
(l
): List all installed Python versions.pen list
-
delete
: Delete the virtual environment in the current directory or a specific Python version.pen delete pen delete 3.8.5
-
activate
(a
): Activate the virtual environment. You can exit the environment withdeactivate
pen activate
-
update
: Update Pen to the latest version. (This is not yet supported)pen update
-
uninstall
: Uninstall Pen (does not remove virtual environments).pen uninstall
-
help
: Show help for Pen or a specific command.pen pen help pen help create
-h
,--help
: Print help information.-V
,--version
: Print the version of pen.
Contributions are welcome! Please open an issue or submit a pull request on GitHub for any bugs or suggestions. Feel free to comment on any issue if you're interested in contributing.
This project is licensed under the MIT License. See the LICENSE file for details.