A web server writes a line for every request, and a busy one writes millions of them. Reading those lines to find out what is going on is one of the most common jobs for a programmer. This project builds a log analyser as a pipeline of small steps: a generator that parses lines, a generator that filters, and functions that count and group. It uses regular expressions, Counter, groupby, statistics and argparse, and warns about lines that it cannot read, and carries on.
More lessons in Complete Python Programming