A quick configuration repo for python scripts for people getting started with python
-
Install Git for Windows
- Download from git-scm.com
- Follow the installation wizard with default settings
-
Clone the repository
git clone https://github.com/mkuelker/python-starter.git cd python-starter -
Install Docker Desktop for Windows
- Download from docker.com
- Ensure WSL 2 backend is enabled during installation
-
Install Visual Studio Code
- Download from code.visualstudio.com
-
Install the Dev Containers extension
- Open VSCode
- Go to Extensions (Ctrl+Shift+X)
- Search for "Dev Containers" by Microsoft and install it
-
Open the project in a container
- Open the cloned folder in VSCode
- Press
Ctrl+Shift+Pto open the command palette - Type and select:
Dev Containers: Reopen in Container
That's it! The container will automatically install all Python dependencies from requirements.txt.
-
Install Git
sudo apt update && sudo apt install git -
Clone the repository
git clone https://github.com/mkuelker/python-starter.git cd python-starter -
Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh sudo usermod -aG docker $USERNote: Log out and back in for the docker group changes to take effect.
-
Install Visual Studio Code
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" | sudo tee /etc/apt/sources.list.d/vscode.list sudo apt update && sudo apt install code
-
Install the Dev Containers extension
- Open VSCode:
code - Go to Extensions (Ctrl+Shift+X)
- Search for "Dev Containers" by Microsoft and install it
- Open VSCode:
-
Open the project in a container
- Open the cloned folder in VSCode:
code python-starter - Press
Ctrl+Shift+Pto open the command palette - Type and select:
Dev Containers: Reopen in Container
- Open the cloned folder in VSCode:
That's it! The container will automatically install all Python dependencies from requirements.txt.
After cloning, you'll want to remove the existing git history and create your own repository:
# Remove the existing git history
rm -rf .git
# Initialize your own git repository
git init
git add .
git commit -m "Initial commit"
# Optional: Add your own remote repository
# git remote add origin https://github.com/yourusername/your-repo-name.git
# git push -u origin mainIf you prefer to work without Docker, you can set up Python locally:
- Install Python from python.org (3.8 or higher)
- Install pip package manager (usually included with Python)
- Create a virtual environment:
python -m venv venv venv\Scripts\activate pip install -r requirements.txt
-
Install Python and pip:
sudo apt install python3 python3-pip python3-venv
-
Create a virtual environment:
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt