antidote icon indicating copy to clipboard operation
antidote copied to clipboard

Dependency injection for Python

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

Almost certainly a `mypy` issue. Let's say I have this: ```python from antidote import interface @interface class Greeting(Protocol): ``` I run `mypy`, it's happy. I change a docstring or comment,...

While one currently can inject into an async function, providing asynchronously something is not possible. Having an async counterpart or method for each provider should be possible. It does require...

enhancement

Currently `@inject` does not support any context manager. It would be great to have something like: ```python from contextlib import contextmanager from antidote import inject, resource @resource @contextamanger def database_connection():...

enhancement

`ScopeGlobalVar` allows to define a global scope variable but it would be great to have an equivalent that behaves like an actual `ContextVar`. This would also require a `'scoped-context'` lifetime...

enhancement