|  07-29-2016, 09:40 AM | #1 | 
| Junior Member            Posts: 5 Karma: 6000 Join Date: Aug 2013 Device: Kindle Paperwhite | 
				
				Plugin with depedencies
			 
			
			I would like to use 3rd party library (available on pypi) inside a plugin. This library itself needs another library on pip. How can I use it in my plugin?
		 | 
|   |   | 
|  07-29-2016, 12:02 PM | #2 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Add it to the plugin zip file (you will need to adjust the import statements inside the copy you place in the zip file, if it is a multi-file library)
		 | 
|   |   | 
| Advert | |
|  | 
|  07-30-2016, 12:39 AM | #3 | 
| Junior Member            Posts: 5 Karma: 6000 Join Date: Aug 2013 Device: Kindle Paperwhite | 
			
			Thanks. But, doing this for each dependency recursively will be tedious and error prone. Is there a better alternative (for instance using virtualenv?).
		 | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| [Plugin] PunctuationSmarten Sigil plugin | DiapDealer | Plugins | 154 | 10-02-2025 06:05 PM | 
| [FileType Plugin] YVES Bible Plugin | ClashTheBunny | Plugins | 27 | 01-16-2023 01:25 AM | 
| Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM | 
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM | 
| New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |