anydi 0.60.2__py3-none-any.whl → 0.61.0__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/_container.py CHANGED
@@ -58,6 +58,13 @@ class Container:
58
58
  # Register default scopes
59
59
  self.register_scope("request")
60
60
 
61
+ # Register self as provider
62
+ self._register_provider(
63
+ lambda: self,
64
+ "singleton",
65
+ Container,
66
+ )
67
+
61
68
  # Register providers
62
69
  providers = providers or []
63
70
  for provider in providers:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: anydi
3
- Version: 0.60.2
3
+ Version: 0.61.0
4
4
  Summary: Dependency Injection library
5
5
  Keywords: dependency injection,dependencies,di,async,asyncio,application
6
6
  Author: Anton Ruhlov
@@ -1,6 +1,6 @@
1
1
  anydi/__init__.py,sha256=bQKzn9qfNnIMi1m3J-DdSknSDwNg8j08fdQg_-Edkto,613
2
2
  anydi/_async_lock.py,sha256=3dwZr0KthXFYha0XKMyXf8jMmGb1lYoNC0O5w29V9ic,1104
3
- anydi/_container.py,sha256=Yr4X-3K4qgdCz_6LMbjjntp_-E8pOgorRYkt2dQUSuM,27746
3
+ anydi/_container.py,sha256=oJ1EQnQ1tvi3Y0XNJvhmjVKVd-KzzRbNVaazIRuG3w4,27900
4
4
  anydi/_context.py,sha256=-9QqeMWo9OpZVXZxZCQgIsswggl3Ch7lgx1KiFX_ezc,3752
5
5
  anydi/_decorators.py,sha256=J3W261ZAG7q4XKm4tbAv1wsWr9ysx9_5MUbUvSJB_MQ,2809
6
6
  anydi/_injector.py,sha256=IxKTh2rzMHrsW554tbiJl33Hb5sRGKYY_NU1rC4UvxE,4378
@@ -20,7 +20,7 @@ anydi/ext/starlette/middleware.py,sha256=9CQtGg5ZzUz2gFSzJr8U4BWzwNjK8XMctm3n52M
20
20
  anydi/ext/typer.py,sha256=Jw3DspLeCD_yF_GSk4eDlC3bZJWMNYpJ3H6zs5PTVAc,5133
21
21
  anydi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  anydi/testing.py,sha256=cHg3mMScZbEep9smRqSNQ81BZMQOkyugHe8TvKdPnEg,1347
23
- anydi-0.60.2.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
24
- anydi-0.60.2.dist-info/entry_points.txt,sha256=AgOcQYM5KyS4D37QcYb00tiid0QA-pD1VrjHHq4QAps,44
25
- anydi-0.60.2.dist-info/METADATA,sha256=h2TRAy4zFSXKRfRXPD6SnzQTFUi0jom2d6NbWRbyeB0,8007
26
- anydi-0.60.2.dist-info/RECORD,,
23
+ anydi-0.61.0.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
24
+ anydi-0.61.0.dist-info/entry_points.txt,sha256=AgOcQYM5KyS4D37QcYb00tiid0QA-pD1VrjHHq4QAps,44
25
+ anydi-0.61.0.dist-info/METADATA,sha256=s2qDGW7f-s4bAkHDjl_QNl1AJY8VHHkXNwDJK1_VEQ8,8007
26
+ anydi-0.61.0.dist-info/RECORD,,
File without changes