MyVenv is a simple Windows utility that helps you create or activate a Python virtual environment directly in the current CMD shell. With MyVenv, you can streamline your virtual environment management workflow using a single command.
- Automatically creates a virtual environment if it doesn't exist.
- Activates the virtual environment in the current CMD shell.
- Adds the virtual environment folder to
.gitignoreto prevent accidental commits.
You can install MyVenv via pip:
pip install myvenvAfter installing MyVenv, you can use the myvenv.bat script in your terminal to create or activate a virtual environment.
myvenv [ENV_NAME]ENV_NAME(optional): The name of the virtual environment folder. Defaults tovenvif not provided.
myvenvThis creates (if it doesn't already exist) and activates a virtual environment named venv.
myvenv mycustomenvThis creates (if it doesn't already exist) and activates a virtual environment named mycustomenv.
- Environment Name: The script checks for the provided environment name or defaults to
venv. - Virtual Environment Creation: If the specified folder doesn't exist, it creates a virtual environment using
python -m venv. - Git Ignore Update: The script ensures the virtual environment folder is listed in
.gitignoreto prevent accidental commits. - Activation: The script activates the virtual environment in the current CMD shell.
myvenv.bat: Batch script for managing virtual environments.setup.py: Python setup script for packaging and distribution.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! If you have suggestions or improvements, feel free to submit a pull request or open an issue.
ILikeAI (Josh)
GitHub Profile
If you encounter any issues or have ideas for improvement, please let us know by creating an issue in the GitHub repository.