Bootstrap Python projects with virtual environments and modern tooling. Use when creating Python applications, scripts, APIs, data science projects, or when the user wants a properly configured Python development environment.
التثبيت
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Bootstrap Python projects with virtual environments and modern tooling. Use when creating Python applications, scripts, APIs, data science projects, or when the user wants a properly configured Python development environment.
Python Virtual Environment Bootstrapper
Creates production-ready Python projects with virtual environments, dependency management, and modern tooling.
Prerequisites
# Check Python (3.10+ recommended)
python3 --version
# Or on some systems
python --version
Project Initialization Methods
Method 1: Using uv (Recommended - Fastest)
uv is an extremely fast Python package installer and resolver.
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create project with virtual environment
uv init PROJECT_NAME
cd PROJECT_NAME
uv venv
source .venv/bin/activate # Linux/macOS# .venv\Scripts\activate # Windows
Method 2: Using Poetry
# Install Poetry
curl -sSL https://install.python-poetry.org | python3 -
# Create new project
poetry new PROJECT_NAME
cd PROJECT_NAME
# Or initialize in existing directorymkdir PROJECT_NAME && cd PROJECT_NAME
poetry init
# Run the application
python -m my_project.main
# Run tests
pytest
# Run tests with coverage
pytest --cov=src/my_project
# Lint
ruff check .
# Format
ruff format .
# Type check
mypy src/
# Run pre-commit on all files
pre-commit run --all-files