Re: [Qgis-developer] Plugins discussion

2015-11-07 Thread Stéphane Brunner
Hello, To get all the qgis plugin hosted on pypi we should be able to use a keywords. An to get the list of plugin that have some keywords: from xmlrpclib import ServerProxy pypi = ServerProxy("http://pypi.python.org/pypi;, allow_none=True) sp.search({"keywords": ["gdal", "dap"]}) returns:

Re: [Qgis-developer] Plugins discussion

2015-11-07 Thread Stéphane Brunner
Hello, And we can use entrypoints to load the plugin: from pkg_resources import working_set def register_plugins(): for entry_point in working_set.iter_entry_points('qgis.plugins'): plugin = entry_point.load(require=True) if not issubclass(plugin, Plugin): raise