View Single Post
Old 01-05-2022, 08:31 PM   #5
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jhowell View Post
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.
davidfor is offline   Reply With Quote