[QGIS-Developer] Automatically install and update plugins

Alessandro Pasotti apasotti at gmail.com
Wed Nov 6 03:20:57 PST 2019


On Wed, Nov 6, 2019 at 12:10 PM <Bauer.Josef at swm.de> wrote:

> Hi Allesandro,
>
>
>
> thank you for the answer. That sounds very promising. I think that is what
> we need.
>
>
>
> But can you tell me what exact Python API we have to use? I can’t find
> anything related to that topic in the API documentation [0] (we are using
> the LTR version QGIS 3.4).
>
>
>

Yeah, there is not much QGIS core API for plugins management, it's mainly
done in the Python side:
https://github.com/qgis/QGIS/blob/master/python/pyplugin_installer/installer.py




> [0] https://qgis.org/pyqgis/3.4/index.html
>
>
>
> Tanks und kind regards,
>
> Josef
>
>
>
> *Von:* Alessandro Pasotti <apasotti at gmail.com>
> *Gesendet:* Mittwoch, 6. November 2019 11:50
> *An:* Bauer.Josef extern IT-DS-TS <Bauer.Josef at swm.de>
> *Cc:* QGIS Developer Mailing List <qgis-developer at lists.osgeo.org>
> *Betreff:* Re: [QGIS-Developer] Automatically install and update plugins
>
>
>
>
>
>
>
> On Wed, Nov 6, 2019 at 11:38 AM <Bauer.Josef at swm.de> wrote:
>
> Dear QGIS Developer,
>
>
>
> we have written some plugins that we would like to be installed and
> updated automatically (without any user interaction). We have also setup an
> internal plugins server. We can install the plugins from our plugin server
> manually, but is there also the possibility to install and update them
> without any user interactions (we have pre-configured the plugins in the
> QGIS3.ini)?
>
>
>
>
>
> basically, you need to create a custom startup py file and deploy it (it
> can also live on a network share), the startup script will contain the
> instructions (using the QGIS python API)
>
> to upgrade the plugins you need automatically.
>
>
>
> See the links for some more information:
>
>
>
>
> https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/intro.html#the-startup-py-file
>
>
> https://docs.qgis.org/testing/en/docs/user_manual/introduction/qgis_configuration.html#deploying-qgis-within-an-organization
>
>
>
>
>
> Hope this helps.
>
>
>
> --
>
> Alessandro Pasotti
> w3:   www.itopen.it
>


-- 
Alessandro Pasotti
w3:   www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20191106/426824bb/attachment.html>


More information about the QGIS-Developer mailing list