[QGIS-Developer] plugins.qgis.org API: Get all available versions of a plugin?
F. Shah
insar at me.com
Thu Apr 2 10:16:09 PDT 2020
@Sebastian
I had a look into django app and found that its possible to get the information of all the plugins.
The xml_plugin function in orginal django app takes 3 parameters as below,
def xml_plugins(request, qg_version=None, stable_only=None, package_name=None):
Looking at this, I thought to try passing a package_name and this seems to work.
I guess that's what you are looking for. Try this for qgist workbench plugin
https://plugins.qgis.org/plugins/plugins.xml?package_name=workbench&qgis=3.10
Hope this helps,
regards,
FS
On April 2, 2020 at 6:56 PM, "Sebastian M. Ernst" <ernst at pleiszenburg.de> wrote:
@FS,
thanks for your reply.
I already expected that I had to parse the HTML ...
@all,
How hard is it to patch this feature into the current infrastructure? Is
it more a coding issue or a server resource issue (i.e. handling such
requests)? Reading `/qgis-app/plugins/urls.py` and
`/qgis-app/plugins/views.py` (from QGIS-Django), it appears that "all"
that would be required is a new view of `PluginsList`. Disclaimer: I
have very little experience with Django and your infrastructure.
Best regards,
Sebastian
Am 02.04.20 um 18:37 schrieb F. Shah:
Hi Sebastian,
I fear it is not possible with the current infrastructure. As per the
documentation in QGIS-Django this plugin.xml API only accept two
parameters i.e. qgis: qgis_Version and stable_only: 0/1, default to 0.
More information is
here: https://github.com/qgis/QGIS-Django/blob/33b7786e5201f14e9a80f512da9e76f7b94ad772/qgis-app/plugins/docs/introduction.rst#plugins-xml>" rel="noopener noreferrer">https://github.com/qgis/QGIS-Django/blob/master/qgis-app/plugins/docs/introduction.rst#plugins-xml<https://github.com/qgis/QGIS-Django/blob/33b7786e5201f14e9a80f512da9e76f7b94ad772/qgis-app/plugins/docs/introduction.rst#plugins-xml>
Hope this helps.
regards,
FS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200402/2b186389/attachment.html>
More information about the QGIS-Developer
mailing list