Examples overview
This section holds step-by-step examples: each guide walks you through a full script (parsing, structure, tests) so you can run and extend it yourself.
Available examples
Section titled “Available examples”- Process log files — Four steps: read logs line by line, parse with
split, aggregate counts and error buckets, then print a report (stdlib only, no regex). - Read from API and process data — Four steps: fetch GitHub commits JSON, normalize records, summarize by author/day, and print a compact report.
- Process cloud policies — Traverse and query cloud permissions policy documents (e.g. AWS IAM–style) with Python. Build the parser, traverser, and query helpers step by step, running and testing after each step.
- Incident records analyzer — Filter, enrich, group, and aggregate a list of incident dicts using
filter,map, a smallgroup_byhelper, andfunctools.reduce(stdlib only).