typedepends
typedepends is a Python library designed to help manage and resolve dependencies between Python objects based on their types. It allows developers to declare that a certain object or function requires other specific types to be available before it can be instantiated or executed. This can be useful in scenarios where the order of initialization or the availability of certain resources is critical.
The core concept behind typedepends is the idea of type-based dependency injection. Instead of manually passing
typedepends typically works by inspecting the type hints of a target object or function. It then searches
The library offers mechanisms for registering providers, which are objects or factories responsible for creating instances