ebooklib
A Python library for reading and writing EPUB ebook files. It provides high-level interfaces such as EpubBook and handles structures including the ZIP container, manifest, spine and table of contents, but does not parse HTML content.
Timeline (last 90 days)
ebooklib is a high-level library responsible for the ZIP container, manifest, spine and table of contents, but it does not itself parse HTML content.
After evaluation, the author chose ebooklib to manage the container and lxml to manipulate content, considering this the best balance between convenience and control.
When reading and writing EPUBs, ebooklib sometimes inconsistently adds or removes xml:lang attributes and DOCTYPE declarations, and the team fixes this by post-processing the serialized string.
Most EPUBs are UTF-8 encoded, but occasionally encodings such as Windows-1252 are encountered, which ebooklib handles poorly, requiring chardet for encoding detection.
All Facts (4)
ebooklib is a high-level library responsible for the ZIP container, manifest, spine and table of contents, but it does not itself parse HTML content.
50%UnverifiedAfter evaluation, the author chose ebooklib to manage the container and lxml to manipulate content, considering this the best balance between convenience and control.
50%UnverifiedWhen reading and writing EPUBs, ebooklib sometimes inconsistently adds or removes xml:lang attributes and DOCTYPE declarations, and the team fixes this by post-processing the serialized string.
50%UnverifiedMost EPUBs are UTF-8 encoded, but occasionally encodings such as Windows-1252 are encountered, which ebooklib handles poorly, requiring chardet for encoding detection.
50%