injectable icon indicating copy to clipboard operation
injectable copied to clipboard

Python Dependency Injection for Humans™

Results 7 injectable issues
Sort by recently updated
recently updated
newest added

[PEP-593](https://www.python.org/dev/peps/pep-0593/) defines the a standard for annotation metadata other than type hinting through the use of [`typing.Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated). This framework should comply with this recommendation and give full support to [`typing.Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated)....

enhancement
help wanted

It's currently not ideal to use this library together with Python's async/await. We should support asynchronous constructors and factories. Async constructors are also a bigger problem since one cannot declare...

enhancement

`index` var is not really required as it has no use in `autowired()`. --- Find the other issues found here - [https://deepsource.io/gh/chsatyap/injectable/issues/?category=all](https://deepsource.io/gh/chsatyap/injectable/issues/?category=all) This PR also adds `.deepsource.toml` configuration file to...

enhancement
review

Supplying fake/mocked/stubbed injectables should be really easy. An example feature would be to introduce a helper fixture for pytest: ```python @pytest.fixture() def given_injectable(): originals: Dict[Union[type, str], Tuple[Set[Injectable], bool]] = {}...

When a function decorated with `@autowired` is inspected to get it's signature the original function's signature with required kwargs should be overwritten by a signature exposing injectables as optional kwargs....

enhancement
under evaluation

@chsatyap opened Pull Request #23 to suggest the use of DeepSource. As part of the new tools adoption process evaluation on the actual need for such a tool must be...

enhancement
under evaluation

## What does this PR do? This PR adds the feature addressed at issue https://github.com/roo-oliv/injectable/issues/108 ### Context I use injectable in production but when using a static type checker (mypy...