.. _jgdv.util.plugins.selector: ========================== jgdv.util.plugins.selector ========================== .. py:module:: jgdv.util.plugins.selector .. autoapi-nested-parse:: A function to select an appropriate plugin by passed in name or names Functions --------- .. autoapisummary:: jgdv.util.plugins.selector.plugin_selector Module Contents =============== .. py:function:: plugin_selector(plugins, *, target = 'default', fallback = None) -> Selects and loads a plugin from a chainguard, based on a target, with an available fallback constructor if the target is a suitable coderef, it is coerced and loaded instead, bypassing the plugins