Python

Writing Python you can trust in production. CivicGrid's API is built with FastAPI, and its data checks are Python scripts that run every week.

Python basics

Each lesson explains one idea in plain words, then adds a piece to one real tool, a website checker, that you build across the whole track. Along the way, you'll see how the same ideas run CivicGrid's API and data checks.

  1. 1What Python is forStart · 15 min
  2. 2Values and variablesStart · 25 min
  3. 3Lists, dictionaries and loopsStart · 30 min
  4. 4Functions and errorsStart · 25 min
  5. 5Files and dataStart · 25 min
  6. 6Talking to APIsStart · 30 min
  7. 7Scripts you can trustStart · 25 min
  8. 8Running it on a scheduleStart · 30 min
  9. 9Alerts and settingsStart · 25 min
  10. 10Build your own API with FastAPIStart · 30 min

Python documentation (opens in a new tab)

The official tutorial and the standard library reference.

Free

FastAPI (opens in a new tab)

A Python framework for building APIs, with automatic docs and type checking.

Free