willowfs
Willowfs is a lightweight library for reading and writing structured log files.
pip install willowfs
It has no dependencies outside the standard library and works on Linux, macOS and Windows. See Getting started for a five-minute introduction.