I want to be able to create .mobi files with python, but i haven't found anything about it after an hour of searching. I don't want to use Calibre or softwares like it, just plain python.
I'd recommend to take a look at this repo, if you don't want to use calibre
(which is great and has a CLI). While this script has created for creating a .mobi
for the Guardian, you can modify it to your taste.