MOBI libraries for Python
- mobi is KindleUnpack packaged as a library: one function unpacks an unencrypted MOBI, AZW or AZW3 into a temporary folder and returns the path of the resulting EPUB, HTML or PDF file. GPL-3.0.
- PyMuPDF opens MOBI files as paged documents to extract text, render pages and convert to PDF. It handles uncompressed and PalmDOC-compressed files. AGPL-3.0 or commercial.
To work with the book’s content in Python, unpack with mobi and then read the EPUB with EbookLib. To create Kindle files from Python, write an EPUB and convert it with Calibre’s ebook-convert.
- mobi mobi is a Python library based on KindleUnpack that unpacks unencrypted MOBI, AZW and AZW3 Kindle e-books to EPUB, HTML or PDF. Installation and code examples.
- PyMuPDF PyMuPDF opens MOBI e-books in Python: extract text, render pages to PNG and convert MOBI to PDF. Installation, supported MOBI variants and code examples.