You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a bug report but more of a general question about pluggy.
I know there was talks a few years ago of changing the way entry_points are loaded but it hasn't been implemented.
As the developer of the host application, I can easily create a class that contains hook implementations (what the example from the documentation calls "A hook implementation namespace") and register it with the PluginManager but unless I'm missing something obvious, plugin authors can only define their hook implementations as functions (at least this is what all the examples I've seen seem to suggest).
So my question is, is there any plans of allowing/facilitating "Class based plugins" to be loaded via entry_points?
I "hacked" pluggy (just added a couple lines of code) to be able to do it for my program but maybe a solution from the developers could also be useful to others.
The text was updated successfully, but these errors were encountered:
This is not a bug report but more of a general question about pluggy.
I know there was talks a few years ago of changing the way entry_points are loaded but it hasn't been implemented.
As the developer of the host application, I can easily create a class that contains hook implementations (what the example from the documentation calls "A hook implementation namespace") and register it with the PluginManager but unless I'm missing something obvious, plugin authors can only define their hook implementations as functions (at least this is what all the examples I've seen seem to suggest).
So my question is, is there any plans of allowing/facilitating "Class based plugins" to be loaded via entry_points?
I "hacked" pluggy (just added a couple lines of code) to be able to do it for my program but maybe a solution from the developers could also be useful to others.
The text was updated successfully, but these errors were encountered: