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
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to