Originally Posted by astra_lestat
Uhm. BD creates books for Kindle or CyBook Gen3 or Iliad without any additional tools. Why would you write another tool for the purpose?
I'm not aware of a way to generate .mobi files from BD. There is a PRC (or perhaps PDB, don't have it in front of me at the moment) option, but that has never worked properly for me. Is that what you are referring to?
Doing research on the topic, I found HarryT's thread https://www.mobileread.com/forums/showthread.php?t=17914
and automated the process.