Python epubcheck wrapper
This package provides a Python libary and command line tool for convenient validation of EPUB files by wrapping the original EpubCheck 4.0.1.
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 2.7, 3.3, 3.4, 3.5 on Linux and Windows. It should also work with PyPy.
Validata all epub files in the current directory:
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)
To run the all tests run:
Note, to combine the coverage data from all the tox environments run:
set PYTEST_ADDOPTS=--cov-append tox
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|epubcheck-0.3.1-py2.py3-none-any.whl (8.3 MB) Copy SHA256 Checksum SHA256||py2.py3||Wheel||Apr 20, 2016|
|epubcheck-0.3.1.zip (8.3 MB) Copy SHA256 Checksum SHA256||–||Source||Apr 20, 2016|