01-01-2017, 11:32 AM | #1 |
Connoisseur
Posts: 55
Karma: 8430
Join Date: Mar 2016
Device: PW3, Clara HD, PB740
|
Newcomer's thoughts about writing calibre plugins
Hello,
Here are a recollection of thoughts I had while developing a calibre plugin. I hope it doesn't sound like an endless flow of complaints~, and apologize if it reads like so.
|
01-01-2017, 09:13 PM | #2 |
creator of calibre
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Certainly plugin writing could use more tutorials -- unfortunately I am not the person to write them, as I am too familiar with the codebase, so I cannot put myself in a plugin developers shoes -- contributions are welcome.
As for what the external API of the Boss class is, it is documented here: https://manual.calibre-ebook.com/pol...book.boss.Boss which is linked to from the tutorial on writing editor plugins. You can run any python script you like in the full calibre environment using calibre-debug file.py which can be used for unit testing your plugins. I'm not particularly inclined to make the plugin loading code more complex/slower just to support github's inability to create top-level zip files. As far as distributing plugins using github is concerned, I suggest you simply distribute them as source, a user installing a plugin from source simply has to run (to install plugin) git clone https://.../whatever && calibre-customize -b whatever and to update plugin cd whatever && git pull && calibre-customize -b . |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Thoughts on writing | crich70 | Writers' Corner | 10 | 03-19-2015 12:26 PM |
Getting PyCharm code completion while writing Calibre plugins | trying | Development | 6 | 03-30-2014 05:47 AM |
Any Thoughts on Scheduling Teaching and Writing | bmcox | Writers' Corner | 2 | 01-14-2014 12:59 AM |
Thoughts from P.D. James about writing... | HarryT | Writers' Corner | 9 | 11-10-2013 03:04 PM |
Calibre Portable like the Calibre on PC (espec. settings and plugins)? | manawydan | Devices | 6 | 01-23-2013 06:45 AM |