{
  "id": "python",
  "name": "Python 3.12+",
  "icon": "🐍",
  "runtime": "Python 3.12+",
  "minVersion": "3.12.0",
  "packageManager": "uv|pip",
  "extensions": [".py", ".pyi"],
  "testExtensions": ["test_*.py", "*_test.py"],
  "detectFiles": ["pyproject.toml", "requirements.txt", "Pipfile", "setup.py", "manage.py"],
  "commands": {
    "test": "pytest --tb=short",
    "lint": "ruff check .",
    "format": "ruff format .",
    "serve": "uvicorn app.main:app --reload",
    "typecheck": "mypy ."
  },
  "qualityGates": [
    { "name": "mypy", "command": "mypy .", "required": true, "order": 1 },
    { "name": "ruff", "command": "ruff check .", "required": true, "order": 2 },
    { "name": "pytest", "command": "pytest --tb=short", "required": true, "order": 3 },
    { "name": "security", "command": "pip-audit --strict", "required": false, "order": 4, "description": "Local dependency vulnerability audit (OWASP 2025-A03 supply chain). Non-blocking: needs network + pip-audit installed. CI security.yml runs the full SAST/secret/SBOM suite." }
  ],
  "frameworks": [
    {
      "id": "fastapi",
      "name": "FastAPI + Uvicorn",
      "icon": "⚡",
      "detectFiles": ["app/main.py"],
      "default": true,
      "skills": ["fastapi-patterns", "async-patterns", "openapi-design"]
    },
    {
      "id": "django",
      "name": "Django 5+",
      "icon": "🎸",
      "detectFiles": ["manage.py"],
      "skills": ["django-patterns", "openapi-design"]
    },
    {
      "id": "flask",
      "name": "Flask",
      "icon": "🧪",
      "detectFiles": ["app.py", "wsgi.py"],
      "skills": ["openapi-design"]
    },
    {
      "id": "scripts",
      "name": "Local Scripts / Automation",
      "icon": "🤖",
      "skills": ["scripting-automation"]
    }
  ],
  "databases": [
    { "id": "mysql", "name": "MySQL / MariaDB", "icon": "🐬", "default": true },
    { "id": "postgresql", "name": "PostgreSQL", "icon": "🐘", "skills": ["postgres-patterns"] },
    { "id": "sqlite", "name": "SQLite (local)", "icon": "📦" },
    { "id": "mongodb", "name": "MongoDB", "icon": "🍃" },
    { "id": "none", "name": "No database", "icon": "⬜" }
  ],
  "frontendOptions": [
    { "id": "react", "name": "React (SPA)", "icon": "⚛️", "frameworks": ["fastapi", "flask", "django"] },
    { "id": "htmx", "name": "HTMX + Jinja2", "icon": "🔄", "frameworks": ["fastapi", "flask", "django"] },
    { "id": "none", "name": "API only / CLI only", "icon": "🔌", "default": true }
  ],
  "deployTargets": [
    { "id": "github", "name": "GitHub (git push)", "icon": "🐙" }
  ],
  "skills": [
    "python-patterns",
    "pydantic-validation",
    "pytest-testing",
    "python-performance",
    "api-security-python",
    "docker-patterns",
    "podman-patterns",
    "tool-resilience",
    "dead-code-hygiene",
    "owned-infra-ops",
    "own-subscription-integration",
    "typesafe-jev",
    "security-assessment-ops",
    "email-push-marketing"
  ],
  "requirements": [
    {
      "name": "Python",
      "command": "python3",
      "versionFlag": "--version",
      "minVersion": "3.12.0",
      "installCommand": {
        "macos": "brew install python@3.12",
        "linux": "sudo apt install -y python3.12 python3.12-venv"
      },
      "versionRegex": "Python\\s+(\\d+\\.\\d+\\.\\d+)"
    },
    {
      "name": "pip",
      "command": "pip3",
      "versionFlag": "--version",
      "minVersion": "23.0.0",
      "installCommand": {
        "macos": "python3 -m ensurepip --upgrade",
        "linux": "python3 -m ensurepip --upgrade"
      },
      "versionRegex": "pip\\s+(\\d+\\.\\d+\\.?\\d*)"
    }
  ]
}
