This is my 103 lines python version: https://github.com/cristiandima/scribe. I wrote it about four years ago for my own blog and I still use it to this day.
It does however depend on a few libs and comes with separate html template files for a theme so I am not exactly sure where I stand on the golf course.
It does however depend on a few libs and comes with separate html template files for a theme so I am not exactly sure where I stand on the golf course.