A command line tool and lib that wraps EpubCheck for Python.
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 libary and command line tool for convenient validation of EPUB files by wrapping the original EpubCheck 4.2.6.
- Free software: BSD license
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.8 - 3.12 on Linux, Mac and Windows. It should also work with PyPy.
Validata all epub files in the current directory:
$ epubcheck
Validate a single EPUB file:
$ epubcheck /path/to/book.epub
Validate all files in /epubfolder and create a detailed Excel report::
$ epubcheck /path/epubfolder --xls report.xls
Show command line help::
$ epubcheck -h
from epubcheck import EpubCheck
result = EpubCheck('src/epubcheck/samples/invalid.epub')
print(result.valid)
print(result.messages)
https://epubcheck.readthedocs.io/en/latest/
Install poetry checkout this repository and run:
poetry install
Run code formatting, coverage, and tests with:
poe all
- Update to epubcheck 5.1.0
- Update dependencies
- Remove support for Python 3.6 and 3.7
- Add support for Python 3.11 and 3.12
- Bump versioning to match original epubcheck version
- Modernize packaging and CI
- Fix xls and csv export
- Updated dependencies
- Update the epubcheck.jar to v4.2.6
- Remove support for < Python 3.6
- Update the epubcheck.jar to v4.2.2 (see: https://github.com/w3c/epubcheck/releases/tag/v4.2.2)
- Added custom PY2/PY3 compat module and removed dependancy on six
- Add commandline support with Excel batch reporting
- Moved development status from Alpha to Beta
- EpubCheck results as native python objects
- More documentation
- First release on PyPI.
- Titusz Pan - https://github.com/titusz
- Sean Quinn - https://github.com/swquinn
- Curtis Smith - https://github.com/csmithd
EpubCheck is a project coordinated by IDPF. Most of the EpubCheck functionality comes from the schema validation tool Jing and schemas that were developed by IDPF and DAISY. Initial EpubCheck development was largely done at Adobe Systems.