vman
is a utility for managing Python virtual environments. It allows you to create and activate virtual environments in a specified directory easily.
- Create and activate a virtual environment with a default or custom name.
- Automatically add the virtual environment directory to
.gitignore
. - Easily activate the virtual environment in your current shell session.
To install vman
globally, clone this repository and run the installation script:
git clone https://github.com/vshulcz/vman.git
cd vman
sudo ./install.sh
Create and activate a virtual environment with the default name
vman
Create and activate a virtual environment with a custom name
vman -n my_custom_venv
Create and activate a virtual environment without modifying .gitignore
vman -g
Update (recreate) a virtual environment
vman -u
Remove a virtual environment
vman -r
Deactivate the currently activated virtual environment
vman -d
$ vman -n myenv
Virtual environment 'myenv' not found. Creating a new one...
Virtual environment 'myenv' created.
Created .gitignore and added 'myenv/'.
Virtual environment 'myenv' activated.
$ vman
Virtual environment 'venv' already exists. Activating...
Virtual environment 'venv' activated.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
If you encounter any issues, please open an issue on GitHub.