[Qgis-developer] how to turn my plugin into a processing subplugin

Victor Olaya volayaf at gmail.com
Thu Dec 1 23:16:15 PST 2016


If you convert your plugin functionality into Processing scripts, then
it's very easy to distribute them, no need create a plugin manually
and add them to it.

Just create your scripts and make sure they are available in the
toolbox. Then, in the "Scripts" group of the toolbox, you will find a
tool called "Create script collection plugin". Just select the scripts
that you want to distribute, and it will package them into a plugin
that you can share in the plugins server. Installing the plugin will
add the scripts to the toolbox.

Hope this helps

2016-12-01 22:25 GMT+01:00 Nyall Dawson <nyall.dawson at gmail.com>:
>
>
> On 29 Nov 2016 1:22 AM, "Julie Pierson" <julie.pierson at cnrs.fr> wrote:
>
> Hi all,
>
> I would like to answer this issue for my plugin :
> https://github.com/UMR-PASSAGES/DissolveWithStats/issues/2, and turn it into
> a processing subplugin. I read this :
> https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/processing.html,
> but I'm still not sure how to go on.
>
> I'm guessing that my script will be accessible from the Scripts/Tools part
> of the processing toolbox. But I don't understand :
> - where these scripts are hosted, and how do I submit it
> - where do I start ? Should I just make  a new version of my plugin without
> the GUI ?
>
>
> Have a look at
> https://github.com/jdugge/BufferByPercentage/commit/c52d161b40abf6bbd45e7ec421eb311623592e90
>
> That's a similar commit which added a processing module to an existing
> plugin.
>
> The hardest(?) part is refactoring your plugin to split all the logic out
> from any existing gui. Buts that's a good thing to do in any case.
>
> Nyall
>
>
> Sorry if the answers are obvious !
>
> Thanks,
>
> Julie.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list