<div dir="ltr">Hi Richard,<div><br></div><div>I gave it a shot at adding utils, but this is not very concluant, see <a href="https://qgis.org/pyqgis/master_PR80/utils/index.html">https://qgis.org/pyqgis/master_PR80/utils/index.html</a></div><div><br></div><div>Many methods are listed as classes (like showException) and some classes are just copies of the original ones (utils.QgsMessageBar = qgis.core.QgsMessageBar).</div><div><br></div><div>Thoughts?</div><div><br></div><div>Denis</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 15 sept. 2021 à 14:59, Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Devs,<br>
<br>
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<br>
<br>
dir(qgis.utils)<br>
<br>
in the Python Console.<br>
<br>
And seeing 'metadataParser', I thought to look for it in our pyqgis docs:<br>
<a href="https://qgis.org/pyqgis/master/" rel="noreferrer" target="_blank">https://qgis.org/pyqgis/master/</a><br>
<br>
But... cannot find any qgis.utils methods or module?<br>
<br>
Any (obvious) reason for this? <br>
Or did we forgot to include it in the building machinery?<br>
<br>
Thanks for any info.<br>
<br>
Ah...<br>
<a href="https://gis.stackexchange.com/questions/203842/seeking-documentation-for-qgis-utils-module" rel="noreferrer" target="_blank">https://gis.stackexchange.com/questions/203842/seeking-documentation-for-qgis-utils-module</a><br>
<br>
so  help(qgis.utils.pluginMetadata) shows me enough to find out:<br>
<br>
qgis.utils.pluginMetadata('myplugin', 'version')<br>
('myplugin' string found via qgis.utils.plugins)<br>
<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<br>
PS didn't I already ask this earlier??????<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>