[QGIS-Developer] qgis.utils module not available in pyqgis docs ?

Denis Rouzaud denis.rouzaud at gmail.com
Tue Oct 12 06:10:54 PDT 2021


Hi Richard,

I gave it a shot at adding utils, but this is not very concluant, see
https://qgis.org/pyqgis/master_PR80/utils/index.html

Many methods are listed as classes (like showException) and some classes
are just copies of the original ones (utils.QgsMessageBar =
qgis.core.QgsMessageBar).

Thoughts?

Denis

Le mer. 15 sept. 2021 à 14:59, Richard Duivenvoorde <rdmailings at duif.net> a
écrit :

> Hi Devs,
>
> Searching for a way to programmatically find out which version of a plugin
> is installed and if there was some interface for it, I used
>
> dir(qgis.utils)
>
> in the Python Console.
>
> And seeing 'metadataParser', I thought to look for it in our pyqgis docs:
> https://qgis.org/pyqgis/master/
>
> But... cannot find any qgis.utils methods or module?
>
> Any (obvious) reason for this?
> Or did we forgot to include it in the building machinery?
>
> Thanks for any info.
>
> Ah...
>
> https://gis.stackexchange.com/questions/203842/seeking-documentation-for-qgis-utils-module
>
> so  help(qgis.utils.pluginMetadata) shows me enough to find out:
>
> qgis.utils.pluginMetadata('myplugin', 'version')
> ('myplugin' string found via qgis.utils.plugins)
>
>
> Regards,
>
> Richard Duivenvoorde
>
> PS didn't I already ask this earlier??????
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20211012/5834fef5/attachment.html>


More information about the QGIS-Developer mailing list