venv-manager is a command-line tool that simplifies Python virtual environment management, enabling the creation of virtual environments, library installations, and setup for Django and Flask projects. It automates much of the initial setup needed for new Python projects.
The manager_venv
directory contains functionalities for creating and managing Python virtual environments.
This module defines the ManagerVenv
class, responsible for creating and managing Python virtual environments. Key functionalities include:
- Virtual Environment Creation: Creates a virtual environment with pip enabled.
- Command Execution in Virtual Environment: Allows commands to be executed within the virtual environment.
- Library Installation: Installs Python libraries within the virtual environment.
- Library Verification: Checks if a specific library is installed.
- Library Listing: Lists all installed libraries in the virtual environment.
Contains manager_django.py
with the ManagerDjango
class, responsible for creating and managing Django projects. Key functionalities include:
- Django Verification and Installation: Checks if Django is installed in the virtual environment and installs it if necessary.
- Django Project Creation: Creates a new Django project with the specified name.
Contains manager_flask.py
with the ManagerFlask
class, responsible for creating and managing Flask projects. Key functionalities include:
- Flask Verification and Installation: Checks if Flask is installed in the virtual environment and installs it if necessary.
- Flask Project Creation: Creates a new Flask project with the specified name.
-
Download the Executable or Run the Script:
- Download the
venv_manager.exe
file or run the Python script directly.
- Download the
-
Execute the File:
-
Create or Select a Virtual Environment:
- Enter the name of the virtual environment to create or locate it. If no name is provided, the default name is "venv".
-
Virtual Environment Options Menu:
- Once in the environment, you’ll see the following menu options:
-
Create or select a project:
- Enter the name of the project environment to create or locate it.
-
Project Management Menu:
-
Project Options Menu (Django or Flask):
- Manage Virtual Environment: Creates or reuses a virtual environment.
- Manage Project: Sets up a Django or Flask project if it does not already exist.
- Install Library: Installs any specified Python package.
- List Libraries: Shows all libraries installed in the virtual environment.
- Execute Command: Allows custom commands to be run within the environment.
- Run Project Server: Starts the Django or Flask server for development.
- Exit: Closes the application.
- Python: Version 3.12 or higher.
Contributions are welcome! Follow these steps to contribute:
- Fork the Repository: Create a fork of the repository on GitHub.
- Clone the Repository: Clone it to your local environment using
git clone
. - Create a Branch: Create a new branch for your feature or bugfix (
git checkout -b your-branch-name
). - Make the Changes: Implement your changes and add tests.
- Run the Tests: Ensure all tests pass before submitting your pull request.
- Sync with the Original Repository: Sync your branch with the original repository to avoid conflicts.
- Submit the Pull Request: Submit your pull request to the main repository, describing the changes and their purpose.
- PEP 8: Follow PEP 8 style guidelines.
- Documentation: Add or update documentation for significant changes.
- Comments: Use clear and concise comments to explain your code.
This project is licensed under the MIT License. See the LICENSE
file for details.