Topic

Programming for DevOps

Automation, data files and services in Python and command line tools and HTTP services in Go.

  • 6 hands-on labs
  • Beginner to advanced
  • DevOps plan

Opens with the DevOps plan. Cloud, AI, Data and Teams include it too.

Labs

6 labs in order. Beginner to advanced.

Each lab is a real machine built only for you, with a guide and checks that read what you actually did.

  1. Beginner

    Automation with Python

    Write a real Python tool for operations: parse a web server's log, summarise it, test it, and post the result to an API with a token that never appears in the code.

  2. Intermediate

    Python for data files: YAML, CSV, JSON and time zones

    Use Python the way operations work needs it: a virtual environment with pinned packages, YAML read safely, CSV and JSON in and out, timestamps compared as real moments across time zones, files written atomically and the tricky parts tested.

  3. Intermediate

    A command line tool in Go

    Write a health checker in Go: read a list of services, check them all at once with goroutines and a timeout, build one static binary and prove it with tests.

  4. Intermediate

    A Go command line tool for logs: streams, gzip and tests

    Build the kind of small, fast Go tool operations teams keep around: subcommands with their own flags, logs of any size streamed line by line through io.Reader, gzipped rotations read transparently, JSON output, table driven tests and a benchmark.

  5. Advanced

    Automate checks with Python: subprocess, logging, retries and timers

    Turn a manual morning check into a Python tool that runs itself: subprocess without a shell, structured logging to a rotating file, retries with exponential backoff, a meaningful exit status, tests that never sleep and a systemd timer.

  6. Advanced

    A Go HTTP service: routing, middleware and graceful shutdown

    Build a small production grade HTTP API with nothing but Go's standard library: method and path routing, strict JSON input, a middleware that gives every request an ID and a log line, tests that never open a port, and a systemd service that shuts down without dropping a request.

Learning paths

On these learning paths.