I ran this on calibre just out of curiosity as calibre is the biggest opensource python app I know. I am not sure if it will be useful to Kovid or not but it looked interesting.
https://codereview.doctor/kovidgoyal/calibre/
https://codereview.doctor/kovidgoyal/calibre/






