PY

Python — Advanced

AdvancedPython 3.11+ · 9 lessons

Go deep: decorators and context managers, advanced typing, concurrency with asyncio, threads and processes, building validated REST APIs with FastAPI, talking to PostgreSQL, and packaging and deploying Python services.

Lessons

  1. 1Decorators & Context ManagersWrap functions with reusable behaviour and manage resources with `with`.Solution4-question quiz
  2. 2Advanced Typing: Generics & ProtocolsGeneric functions and classes, Protocols for duck typing, and overloads.Solution4-question quiz
  3. 3Async Programming with asyncioRun many I/O-bound tasks concurrently with async / await.Solution4-question quiz
  4. 4Threads, Processes & the GILUse concurrent.futures to speed up I/O-bound and CPU-bound work.Solution4-question quiz
  5. 5Building REST APIs with FastAPITyped routes, automatic validation with Pydantic, dependencies and interactive docs.Solution4-question quiz
  6. 6Working with PostgreSQL from PythonConnect with psycopg 3, run parameterised queries, use transactions and pools.Solution4-question quiz
  7. 7Command-Line Tools with argparseTurn scripts into proper commands with arguments, options, subcommands, help text and exit codes.Solution4-question quiz
  8. 8Project Structure, Quality Tools & Deploymentpyproject.toml, src layout, ruff, logging, configuration and Docker.Solution4-question quiz
  9. 9Project: A Results Analysis ToolCombine everything — dataclasses, validation, statistics, ranking and reports — into a small, tested package.Solution4-question quiz
Start with lesson 1 →
Ask AI