haps icon indicating copy to clipboard operation
haps copied to clipboard

Pure Python dependency injection library

Results 4 haps issues
Sort by recently updated
recently updated
newest added

Lets assume such a situation ``` from abc import ABC, abstractmethod from haps import base, egg, Container as IoC, PROFILES from haps.config import Configuration @base class IMailService(ABC): @abstractmethod def send_mail(self,...

I often run into the case where I don't actually want to define an interface for my implementation, but still make use of the autodiscovery and DI for instances of...

In order to make use of the awesome [python-decouple](https://github.com/henriquebastos/python-decouple) library in conjunction with haps, I wrote the following monkeypatch: ``` from typing import Any import decouple from haps.config import Configuration...

Suppose the following case: - I'm getting a `ClientFoo` from an external library _"Ext"_. `ClientFoo` is very complex and it is difficult to do composition over inheritance, and I don't...