Python epubcheck wrapper
Maintained. Last release 3 weeks ago, commits in 3 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install epubcheckPython wrappers and CLI for EpubCheck
A command line tool and lib that wraps EpubCheck for Python.
Introduction
The original EpubCheck is the standard Java-based validation tool for EPUB maintained by DAISY Consortium on behalf of the W3C, originally developed by the IDPF.
This package provides a Python library and command line tool for convenient validation of EPUB files by wrapping the original EpubCheck 5.4.0.
- Free software: BSD 3-Clause license (same as upstream EpubCheck)
Installation
If you have Python on your system you can do the usual:
$ pip install epubcheck
You must have Python & Java installed on your system. The original Java EpubCheck command line client itself is bundled in the PyPi package.
This package is tested with Python 3.10 - 3.15 on Linux, Mac and Windows. It should also work with PyPy.
Run without installing
With uv you can run the command line tool directly, without installing it into an environment first:
$ uvx epubcheck /path/to/book.epub
uvx downloads the package into a temporary, cached environment and runs it. Any of the command
line options below work the same way. To install it permanently as a standalone tool instead, use:
$ uv tool install epubcheck
Quickstart
Command line usage examples
Validate all epub files in the current directory:
$ epubcheck
Validate a single EPUB file:
$ epubcheck /path/to/book.epub