Implementing a plug-in mechanism

Simon Ward simon+python at bleah.co.uk
Thu Mar 16 05:35:59 EDT 2023


On Thu, Mar 16, 2023 at 07:45:18AM +1300, dn via Python-list wrote:
>There is a PyPi library called pluggy (not used it). I've used informal 
>approaches using an ABC as a framework/reminder (see @George's 
>response).

typing.Protocol is also useful here as the plugin interface can be 
defined separately not requiring inheriting from an ABC.

Simon
-- 
A complex system that works is invariably found to have evolved from a
simple system that works.—John Gall


More information about the Python-list mailing list