dubpixel_python_cheatsheet_advanced.md

๐Ÿงช Dubpixel Python Dev Cheat Sheet โ€” Advanced Edition

A quick-reference for managing Python environments for the Dubpixel Network Backup System โ€” now with Poetry and .env support.


๐Ÿงฐ 1) Create a Virtual Environment (Standard Method)

python3 -m venv venv


โšก 2) Activate the Virtual Environment

source venv/bin/activate      # macOS/Linux
.env\\\\Scripts\\\\Activate.ps1   # Windows PowerShell
venv\\\\Scripts\\\\activate.bat   # Windows CMD


๐Ÿ“ฆ 3) Install Packages

pip install paramiko art python-dotenv


๐Ÿงพ 4) Freeze Requirements

pip freeze > requirements.txt


๐Ÿš€ 5) Install from requirements.txt