[Qgis-developer] A common set of functions for QGIS plugins

Vincent Picavet (ml) vincent.ml at oslandia.com
Tue Nov 3 01:21:40 PST 2015


Hello Victor,

A definite +1 on this.
Also maybe a parent QGISPlugin class all plugins would inherit from ?

As a side note on plugin, but important, Hugo intends at the hackfest to
propose and discuss having plugins be Python modules, so that we can use
PIP to deal with module and plugins dependencies.
This would solve this problem and let us use common Python tools, be it
on the plugin side, or the module management side, and ease packaging
also for the distributions.

Vincent

On 02/11/2015 23:53, Nathan Woodrow wrote:
> Hey Victor,
> 
> Just added you with write access to my project if you want.  I don't
> really mind if you wanted to work on the same one together.  My
> motivations were the same as you in the end.  Mainly just flesh
> something out in a sandbox and then we can add it to core once we have
> it nutted out.
> 
> Regards,
> 
> On Tue, Nov 3, 2015 at 8:43 AM, Victor Olaya <volayaf at gmail.com
> <mailto:volayaf at gmail.com>> wrote:
> 
>     Hey Nathan
> 
>     I knew about your project...but forgot about it :-) Sorry for that.
> 
>     What would you suggest doing? merging them maybe? I like that idea. In
>     the end, the plan is just to have a sandbox to add those functions and
>     eventually move them to core (btw, qgis.py sounds good to me...)
> 
>     I can make a PR to your repo if you think it is a good idea, and we
>     keep on working there.
> 
>     Let me know also if you have ideas about what to add to fill those
>     modules with useful stuff
> 
>     Cheers!
> 
>     2015-11-02 14:29 GMT+01:00 Nathan Woodrow <madmanwoo at gmail.com
>     <mailto:madmanwoo at gmail.com>>:
>     > Hey Victor,
>     >
>     > Working on the same kind of thing over here:
>     > https://github.com/NathanW2/parfait
>     >
>     > IMO I would rather see a new module and not put it in qgis.utils. 
>     Something
>     > like qgis.py or qgis.wrappers or something like that that.
>     >
>     > - Nathan
>     >
>     > On Mon, Nov 2, 2015 at 11:20 PM, Victor Olaya <volayaf at gmail.com
>     <mailto:volayaf at gmail.com>> wrote:
>     >>
>     >> >
>     >> > I'm in two minds as to whether it would be a good thing to have an
>     >> > 'official' one. While I can see the use, surely if these things are
>     >> > useful
>     >> > then they should be included in the mainline API with proper API
>     >> > guarantees?
>     >> > I'm not sure I'd want to rely on a library that doesn't have an API
>     >> > guarantee, and if you're making the guarantee then why not in
>     core? If
>     >> > they
>     >> > are *required* for a plugin to be accepted, then they must be
>     in core
>     >> > and
>     >> > have an API guarantee.
>     >> >
>     >>
>     >> My ideas is definitely to put this into core (that's what I wrote in
>     >> my email when i detailed the plans that i have for this), but I have
>     >> started it as a separate repo to make it easier to collaborate and to
>     >> start moving ASAP.
>     >>
>     >> I could write a QEP with this idea, get it approved, throw a bunch of
>     >> empty py modules in qgis.utils and then start working, but I like to
>     >> first do some work, get people into it, and then do the bureucracy to
>     >> pass this to core (I am sure no one will say no to this once a nice
>     >> collection of functions is ready)
>     >>
>     >> I will wait for other people to voice their opinion, and if most
>     >> people agree on going taht other way, I have nothing against it
>     >> _______________________________________________
>     >> Qgis-developer mailing list
>     >> Qgis-developer at lists.osgeo.org
>     <mailto:Qgis-developer at lists.osgeo.org>
>     >> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>     >
>     >
> 
> 
> 
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
> 



More information about the Qgis-developer mailing list