titusz / epubcheck Goto Github PK
View Code? Open in Web Editor NEWPython wrapper for epubcheck
License: BSD 2-Clause "Simplified" License
Python wrapper for epubcheck
License: BSD 2-Clause "Simplified" License
I need to check the epub with 3 version of epubcheck, but you have builtin .jar file in the project.
Any way to override it?
We are trying to use this epubcheck for the checking whether epub has audio or not?
But it is taking 8-10 secs for loading the book itself. This is impacting our performance.
Can you please help us with some options to load the book quickly and get the hasAudio meta info?
I use your package, I have problems with a file.
Can you please update?
https://github.com/w3c/epubcheck/releases/tag/v4.2.4
Thanks!
Is it possible to update to epub check 5.1.0?
I just tried to get the wrapper running under Linux Mint. Installation using pip appears to be successful, but then when I run the wrapper using the CLI:
epubcheck
I end up with this:
Traceback (most recent call last):
File "/usr/local/bin/epubcheck", line 7, in <module>
from epubcheck.cli import main
File "/usr/local/lib/python2.7/dist-packages/epubcheck/cli.py", line 8, in <module>
from six.moves import getcwd
ImportError: cannot import name getcwd
Which is strange because Six is already installed on my system (version: 1.5.2). I'm using Python 2.7.6.
This problem does not occur if I build/install the wrapper from its source using setup.py (sudo python setup.py install
), so I think this is some sort of packaging issue?
Traceback (most recent call last):
File "/usr/local/bin/epubcheck", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/epubcheck/cli.py", line 88, in main
for result in results:
File "/usr/lib/python3.5/multiprocessing/pool.py", line 695, in next
raise value
File "/usr/lib/python3.5/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/usr/local/lib/python3.5/dist-packages/epubcheck/checker.py", line 41, in __init__
self.run()
File "/usr/local/lib/python3.5/dist-packages/epubcheck/checker.py", line 58, in run
self.result_data = json.loads(self._stdout.decode())
File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
On Windows 8.1, epubcheck can't find any files or folders (including the subfolder samples, or an epub file in the epubcheck folder).
I just tried to generate CSV output for a directory with some EPUBs. I used the following command:
epubcheck -c test.csv ./samples-test/
But this results in an TypeErrorr (output file is created, but it is empty):
TypeError: "delimiter" must be string, not bytes
Environment:
I just tried to generate XLS output for a directory with some EPUBs. I used the following command:
epubcheck -x test.xls ./samples-test/
But this results in an AttributeError (output file is created, but it is empty):
AttributeError: 'Databook' object has no attribute 'xls'
Environment:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.