Inject different implementation based on yaml configuration
Inject different implementation based on yaml configuration Question: Using python package dependency injector, I need to instantiate/inject a different implementation of an interface based on a yaml configuration file. class SomeInterface(abc.ABC): @abc.abstractmethod def some_method(self): pass class Impl1(SomeInterface): def some_method(self): # e.g. file-based implementation class Impl2(SomeInterface): def some_method(self): # e.g. service-based implementation I have different yaml …