<div dir="ltr">Generally speaking it is not recommended, but I have done it with several of my plugins (KML Tools, Date/Time Tools). If your python package is OS dependent (not pure python) then you don't want to include it with your plugin. My Density Analysis plugin can use the optional H3 library (which I think might be worthwhile for QGIS to include as a part of its libraries), but it is machine dependent so I did not include it. It is not ideal to have users pip install the library, but you have to weigh the costs vs. the benefits of using some library. <div><br></div><div>Good luck!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 21, 2022 at 1:19 PM Gerald Kogler via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm actually developing a QGIS plugin which depends on pysftp package to <br>
upload files to a server. For now I thought on asking users to install <br>
it manually, but it would be great to automatize the installation process.<br>
<br>
So the options I see would be:<br>
1. Install external package using pip from inside the plugin.<br>
2. Include and ship external package with the plugin.<br>
3. Ask user to install it manually using pip install.<br>
<br>
Is there a recommended way to handle this situation?<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>