EPUB libraries for Python
- EbookLib is the standard library for EPUB in Python: read metadata, chapters and images, and create books with a table of contents, cover and spine. Licensed AGPL-3.0.
- PyMuPDF opens EPUB like a PDF: it lays out the book into pages, extracts plain text, renders pages to images and converts the book to PDF. Licensed AGPL-3.0 or commercial.
Pick EbookLib to work with the EPUB structure (XHTML files, metadata, manifest) and PyMuPDF to get page-based text or images. Both are AGPL: check the license before using them in a closed-source network service.
- EbookLib EbookLib is the standard Python library for reading and writing EPUB 2 and EPUB 3 e-books. How to install it, read metadata and chapters, extract images.
- PyMuPDF PyMuPDF opens EPUB e-books in Python: extract text, read metadata and the table of contents, render pages to PNG and convert EPUB to PDF. Installation.