Related to this, is there a tool like this, but that can show some kind of simple analytics, for example page views over a period of time from an access log produced by python html server.
If you want to write more complicated queries, lnav exposes log data through SQLite vtables[1]. So, you can do a SQL query and get a simple bar chart visualization.
[1] - https://docs.lnav.org/en/latest/sqlext.html#sqlite-interface
Yes, you can use → https://goaccess.io/
You can see it in action here: https://www.logviewplus.com/docs/create_a_custom_report.html