engin 0.2.0__py3-none-any.whl → 0.2.1__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.
engin/_block.py CHANGED
@@ -10,6 +10,8 @@ from engin.exceptions import InvalidBlockError
10
10
  if TYPE_CHECKING:
11
11
  from engin._engin import Engin
12
12
 
13
+ _BUILTIN_CLASS_FUNCTIONS = ("__annotate_func__",)
14
+
13
15
 
14
16
  def provide(
15
17
  func_: Func | None = None, *, scope: str | None = None, override: bool = False
@@ -84,6 +86,8 @@ class Block:
84
86
  @classmethod
85
87
  def _method_options(cls) -> Iterable[Provide | Invoke]:
86
88
  for name, method in inspect.getmembers(cls, inspect.isfunction):
89
+ if name in _BUILTIN_CLASS_FUNCTIONS:
90
+ continue
87
91
  if option := getattr(method, "_opt", None):
88
92
  if not isinstance(option, Provide | Invoke):
89
93
  raise InvalidBlockError(
@@ -1,21 +1,20 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: engin
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A dependency-injection powered application framework
5
- Project-URL: Homepage, https://github.com/invokermain/engin
6
- Project-URL: Documentation, https://engin.readthedocs.io/en/latest/
7
- Project-URL: Repository, https://github.com/invokermain/engin.git
8
- Project-URL: Changelog, https://github.com/invokermain/engin/blob/main/CHANGELOG.md
5
+ Keywords: Dependency Injection,Application Framework
9
6
  License-Expression: MIT
10
- License-File: LICENSE
11
- Keywords: Application Framework,Dependency Injection
12
- Requires-Python: >=3.10
13
7
  Requires-Dist: anyio>=4
14
8
  Requires-Dist: exceptiongroup>=1
15
9
  Requires-Dist: typing-extensions>=4
10
+ Requires-Dist: typer>=0.15 ; extra == 'cli'
11
+ Requires-Dist: tomli>=2.0 ; python_full_version < '3.11' and extra == 'cli'
12
+ Requires-Python: >=3.10
13
+ Project-URL: Changelog, https://github.com/invokermain/engin/blob/main/CHANGELOG.md
14
+ Project-URL: Documentation, https://engin.readthedocs.io/en/latest/
15
+ Project-URL: Homepage, https://github.com/invokermain/engin
16
+ Project-URL: Repository, https://github.com/invokermain/engin.git
16
17
  Provides-Extra: cli
17
- Requires-Dist: tomli>=2.0; (python_version < '3.11') and extra == 'cli'
18
- Requires-Dist: typer>=0.15; extra == 'cli'
19
18
  Description-Content-Type: text/markdown
20
19
 
21
20
  # Engin 🏎️
@@ -30,8 +29,8 @@ Description-Content-Type: text/markdown
30
29
 
31
30
  ---
32
31
 
33
- Engin is a lightweight application framework powered by dependency injection, it helps
34
- you build and maintain large monoliths and many microservices.
32
+ Engin is a lightweight application framework powered by dependency injection. It helps
33
+ you build and maintain everything from large monoliths to hundreds of microservices.
35
34
 
36
35
 
37
36
  ## Features
@@ -1,6 +1,12 @@
1
1
  engin/__init__.py,sha256=O0vS570kZFBq7Kwy4FgeJFIhfo4aIg5mv_Z_9vAQRio,577
2
2
  engin/_assembler.py,sha256=Afi9i5wcbhbzqhJlCB_oa9LcR6RMYaQoR40JfSfnuGo,12235
3
- engin/_block.py,sha256=IacP4PoJKRhSQCbQSdoyCtmu362a4vj6qoUQKyaJwzI,3062
3
+ engin/_block.py,sha256=Rwcpg9j_-tVd0lNJJYZOBgFi0cNKOJ_04MZzMIk9hAc,3187
4
+ engin/_cli/__init__.py,sha256=Ixk3NoZeIN8Bj53I625uqJdLyyT9Gpbe_4GtNy-KQwM,636
5
+ engin/_cli/_check.py,sha256=w9GA9RmCgSflvSU7EQqXKiOCqgrZB-pLS_UoJOqV56E,1666
6
+ engin/_cli/_common.py,sha256=dY9YEqoo1yNIZNPptM-GZjU1LaPcnkSqmIUcWkSii54,3293
7
+ engin/_cli/_graph.html,sha256=5Dw5eyhsrU8KrpdhGn1mxo5kTUTJLMSzT-MBKvSv13g,29073
8
+ engin/_cli/_graph.py,sha256=MsxsNpL1v0v1AUT57ZS97l1diwacqRaPdVBObHHIGJE,6753
9
+ engin/_cli/_inspect.py,sha256=_uzldpHA51IX4srpUGzL4lZNiepqucsO9M3Zo83XBBM,3159
4
10
  engin/_dependency.py,sha256=Z2eS-w_5TM_JgnOtrzCbwtQT6yGmkg-o0-zG02Nk1XU,9722
5
11
  engin/_engin.py,sha256=ip4kazNp7pz7tLLi2jFwFJ7oCLLC9bj0p3sWU0EE0dA,10129
6
12
  engin/_graph.py,sha256=y1g7Lm_Zy5GPEgRsggCKV5DDaDzcwUl8v3IZCK8jyGI,1631
@@ -10,18 +16,11 @@ engin/_option.py,sha256=nZcdrehp1QwgxMUoIpsM0PJuu1q1pbXzhcVsetbsHpc,223
10
16
  engin/_supervisor.py,sha256=E7bGOGP11qIcbueMUkn-felJdP_bLMJmTBrenQtNdTU,4853
11
17
  engin/_type_utils.py,sha256=H3Tl-kJr2wY2RhaTXP9GrMqa2RsXMijHbjHKe1AxGmc,2276
12
18
  engin/exceptions.py,sha256=lSMOJI4Yl-VIM0yDzFWbPhC0mQm4f0WvGULr9SldIaY,2353
13
- engin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- engin/_cli/__init__.py,sha256=Ixk3NoZeIN8Bj53I625uqJdLyyT9Gpbe_4GtNy-KQwM,636
15
- engin/_cli/_check.py,sha256=w9GA9RmCgSflvSU7EQqXKiOCqgrZB-pLS_UoJOqV56E,1666
16
- engin/_cli/_common.py,sha256=dY9YEqoo1yNIZNPptM-GZjU1LaPcnkSqmIUcWkSii54,3293
17
- engin/_cli/_graph.html,sha256=5Dw5eyhsrU8KrpdhGn1mxo5kTUTJLMSzT-MBKvSv13g,29073
18
- engin/_cli/_graph.py,sha256=MsxsNpL1v0v1AUT57ZS97l1diwacqRaPdVBObHHIGJE,6753
19
- engin/_cli/_inspect.py,sha256=_uzldpHA51IX4srpUGzL4lZNiepqucsO9M3Zo83XBBM,3159
20
19
  engin/extensions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
20
  engin/extensions/asgi.py,sha256=7vQFaVs1jxq1KbhHGN8k7x2UFab6SPUq2_hXfX6HiXU,3329
22
21
  engin/extensions/fastapi.py,sha256=7N6i-eZUEZRPo7kcvjS7kbRSY5QAPyKJXSeongSQ-OA,6371
23
- engin-0.2.0.dist-info/METADATA,sha256=RtzssuxOEpDcTkl_eMXR_-utl6UMq7Ey-ayQgpUrVtw,4123
24
- engin-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
- engin-0.2.0.dist-info/entry_points.txt,sha256=sW247zZUMxm0b5UKYvPuqQQljYDtU-j2zK3cu7gHwM0,41
26
- engin-0.2.0.dist-info/licenses/LICENSE,sha256=XHh5LPUPKZWTBqBv2xxN2RU7D59nHoiJGb5RIt8f45w,1070
27
- engin-0.2.0.dist-info/RECORD,,
22
+ engin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
+ engin-0.2.1.dist-info/WHEEL,sha256=ZbtZh9LqsQoZs-WmwRO6z-tavdkb5LzNxvrOv2F_OXE,78
24
+ engin-0.2.1.dist-info/entry_points.txt,sha256=MpK_1W7JQVbtK2hJ0ehBWQG2O6C5m_HVIAhC_LpGmv0,42
25
+ engin-0.2.1.dist-info/METADATA,sha256=l92ASKlLENk4-Ng1yVV-Nw8Fq83q-DvcD8VtmRoFd_0,4128
26
+ engin-0.2.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.9.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -1,2 +1,3 @@
1
1
  [console_scripts]
2
2
  engin = engin._cli:app
3
+
@@ -1,4 +0,0 @@
1
- Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
3
- Root-Is-Purelib: true
4
- Tag: py3-none-any
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 Tim OSullivan
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.