Quote:
Originally Posted by jhowell
If you are writing a calibre plugin you can use the standard Python zipfile module.
|
Or you can use the calibre libraries and handle the epub as an epub. Depending on what they are actually trying to do, that could be the best thing.
@PenguinClaw: Without a better idea of what you are doing, we can't give a better answer than this. If you are just curious about how an epub is constructed, use the unpack function or just unpack it with your favourite tool. Or, look at it in the editor. If you are planning to do something where you navigate to a point in the book and make a change or extract something, then you should look at the calibre libraries. And there are examples of doing this in different plugins.