Python Project Setup
My Workflow for Python Projects

Today I have prepared the workflow for my Python projects.
Win+Rin the run boxwt.exeto run terminalUse cd command to navigate to the directory where you want your project directory to be placed
type
mkdir your_project_nameto create project foldertype
python -m venv .venvto create virtual environment using “venv” module ortype
conda create -n your_project_name python=3.xto create a new environment using "conda" your_project_name.type
.venv\\Scripts\\activateon Windows or source.env/bin/activateon macOS/Linux. orconda activate your_project_nametype
type nul> your_project_name.pyto create a new file for writing scripttype
git initto initialize a Git repository within your project directory.type
git addmain.pyorgit add *type
git commit -m "Initial commit"to commit the staged changes to the Git repository with a descriptive message.Open the VS Code terminal or navigate back to the project directory in your terminal
type in vs code terminal
pip install -r requirements.txtto install any required packages listed in a requirements.txt file within your project.type
git push origin mainto push your local changes to the remote repositorytype
git pull origin mainto pull any changes from the remote repositoryafter finishing work in your project, install pyinstaller
pip install pyinstalllertype
pip freeze > requirements.txtto create requirements filetype
pyinstaller your_script.pyto convert your script as exe if you wanttype
deactivateto deactivate the virtual environment.


