anydi 0.22.0__py3-none-any.whl → 0.37.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anydi/__init__.py +14 -14
- anydi/_container.py +811 -571
- anydi/_context.py +39 -281
- anydi/_provider.py +232 -0
- anydi/_types.py +49 -96
- anydi/_utils.py +108 -77
- anydi/ext/_utils.py +49 -28
- anydi/ext/django/__init__.py +9 -0
- anydi/ext/django/_container.py +18 -0
- anydi/ext/django/_settings.py +39 -0
- anydi/ext/django/_utils.py +128 -0
- anydi/ext/django/apps.py +85 -0
- anydi/ext/django/middleware.py +28 -0
- anydi/ext/django/ninja/__init__.py +16 -0
- anydi/ext/django/ninja/_operation.py +75 -0
- anydi/ext/django/ninja/_signature.py +64 -0
- anydi/ext/fastapi.py +11 -27
- anydi/ext/faststream.py +58 -0
- anydi/ext/pydantic_settings.py +48 -0
- anydi/ext/pytest_plugin.py +67 -41
- anydi/ext/starlette/middleware.py +2 -16
- {anydi-0.22.0.dist-info → anydi-0.37.4.dist-info}/METADATA +71 -24
- anydi-0.37.4.dist-info/RECORD +29 -0
- {anydi-0.22.0.dist-info → anydi-0.37.4.dist-info}/WHEEL +1 -1
- anydi-0.37.4.dist-info/entry_points.txt +2 -0
- anydi/_logger.py +0 -3
- anydi/_module.py +0 -124
- anydi/_scanner.py +0 -233
- anydi-0.22.0.dist-info/RECORD +0 -20
- anydi-0.22.0.dist-info/entry_points.txt +0 -3
- {anydi-0.22.0.dist-info → anydi-0.37.4.dist-info/licenses}/LICENSE +0 -0
anydi/__init__.py
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
"""AnyDI public objects and functions."""
|
|
2
2
|
|
|
3
|
-
from typing import Any
|
|
4
|
-
|
|
5
|
-
from ._container import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
from typing import Any, cast
|
|
4
|
+
|
|
5
|
+
from ._container import (
|
|
6
|
+
Container,
|
|
7
|
+
Module,
|
|
8
|
+
injectable,
|
|
9
|
+
provider,
|
|
10
|
+
request,
|
|
11
|
+
singleton,
|
|
12
|
+
transient,
|
|
13
|
+
)
|
|
14
|
+
from ._provider import Provider
|
|
15
|
+
from ._types import Marker, Scope
|
|
15
16
|
|
|
16
17
|
# Alias for dependency auto marker
|
|
17
|
-
auto =
|
|
18
|
+
auto = cast(Any, Marker())
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
__all__ = [
|
|
@@ -23,7 +24,6 @@ __all__ = [
|
|
|
23
24
|
"Provider",
|
|
24
25
|
"Scope",
|
|
25
26
|
"auto",
|
|
26
|
-
"dep",
|
|
27
27
|
"injectable",
|
|
28
28
|
"provider",
|
|
29
29
|
"request",
|