Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 332 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 332 Bytes

fe-python-di

Simple python dependency injection implementation.

pip install fe-python-di
from di import DI

di = DI()

# set preconfigured component to container
di[InjectedService] = InjectedService()

# get instance by type name
some_service: SomeYourComponentName = di.get(SomeYourComponentName)