Skip to content

Latest commit

 

History

History
81 lines (61 loc) · 1.8 KB

File metadata and controls

81 lines (61 loc) · 1.8 KB

AIOpsLab Setup Guide

Prerequisites Installation

For Windows:

  1. Install Python 3.11+:

    • Download from python.org
    • Or use Windows Store: winget install Python.Python.3.11
    • Or use Chocolatey: choco install python --version=3.11.0
  2. Install Poetry:

    # Method 1: Official installer
    (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
    
    # Method 2: Using pip
    pip install poetry
    
    # Method 3: Using pipx (recommended)
    pip install pipx
    pipx install poetry
  3. Add Poetry to PATH:

    • Add %APPDATA%\Python\Scripts to your PATH environment variable
    • Or restart your terminal/VS Code

Project Setup

  1. Configure Poetry to use Python 3.11:

    poetry env use python3.11
  2. Install project dependencies:

    poetry install
  3. Activate the virtual environment:

    poetry shell

Usage

Running the CLI

poetry run python cli.py

Running Tests

poetry run python -m pytest tests/ -v

Code Formatting

poetry run black .

Type Checking

poetry run pyright

VS Code Integration

The workspace is configured with:

  • Tasks: Use Ctrl+Shift+P → "Tasks: Run Task" to run predefined tasks
  • Debug: Use F5 to start debugging the CLI or current file
  • Extensions: Python, Black Formatter, Pylint, and Kubernetes tools are installed

Next Steps

  1. Install Python 3.11+ and Poetry following the instructions above
  2. Run poetry install to set up the project
  3. Review the README.md for detailed project information
  4. Check TutorialSetup.md for additional setup instructions
  5. Explore the aiopslab/ directory for core functionality