🐍 Python Essentials (goal: productive for scripting + AI)

You don’t need Python mastery. You need enough to use the AI ecosystem (LangGraph, evals, notebooks), where Python is the first-class citizen.

Checklist

  • Syntax, comprehensions, dataclasses, type hints, f-strings
  • Virtual envs + package management with uv (modern and fast); pyproject.toml
  • asyncio basics (async/await, gather), since AI SDKs are async-heavy
  • Pydantic (data validation), used everywhere in AI tooling
  • FastAPI basics (to expose a Python agent as a service)
  • Jupyter notebooks for experiments
  • requests/httpx, pytest

πŸ§ͺ Labs (🟒 warm-up β†’ 🟑 core β†’ πŸ”΄ hard β†’ ⚫ boss)

  • 🟒 A uv project + pytest + ruff
  • 🟑 FastAPI service with Pydantic models + SSE streaming
  • 🟑 asyncio: fan out 50 HTTP calls with a semaphore; compare with Go

🧠 Cognitive tasks

  • Transfer: map Python async concepts to Go goroutines and Java virtual threads

πŸ›°οΈ Orbit integration

  • orbit-agents (LangGraph) and orbit-evals are Python services

Go deeper

Resources

  • Official Python tutorial Β· Fluent Python 2e (reference for later) Β· FastAPI docs