u-toolkit 0.1.11__py3-none-any.whl → 0.1.12__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.
- u_toolkit/fastapi/cbv.py +4 -1
- {u_toolkit-0.1.11.dist-info → u_toolkit-0.1.12.dist-info}/METADATA +1 -1
- {u_toolkit-0.1.11.dist-info → u_toolkit-0.1.12.dist-info}/RECORD +5 -5
- {u_toolkit-0.1.11.dist-info → u_toolkit-0.1.12.dist-info}/WHEEL +0 -0
- {u_toolkit-0.1.11.dist-info → u_toolkit-0.1.12.dist-info}/entry_points.txt +0 -0
u_toolkit/fastapi/cbv.py
CHANGED
@@ -125,13 +125,15 @@ def iter_endpoints(
|
|
125
125
|
paths = [prefix]
|
126
126
|
|
127
127
|
methods: list[_MethodInfo] = []
|
128
|
+
from_valid_method = False
|
128
129
|
if method := get_method(name):
|
129
130
|
methods.append(method)
|
130
131
|
elif valid_method:
|
131
132
|
methods.extend(valid_method(name, handle) or [])
|
133
|
+
from_valid_method = True
|
132
134
|
|
133
135
|
for method, pattern in methods:
|
134
|
-
handle_name = pattern.sub("", name)
|
136
|
+
handle_name = name if from_valid_method else pattern.sub("", name)
|
135
137
|
path = handle_name.replace("__", "/")
|
136
138
|
if path:
|
137
139
|
paths.append(path)
|
@@ -406,6 +408,7 @@ class CBV:
|
|
406
408
|
)
|
407
409
|
method = getattr(instance, endpoint_info.original_handle_name)
|
408
410
|
endpoint = decorator(method)
|
411
|
+
endpoint.__name__ = endpoint_info.handle_name
|
409
412
|
route(endpoint)
|
410
413
|
|
411
414
|
return cls
|
@@ -11,7 +11,7 @@ u_toolkit/object.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
u_toolkit/path.py,sha256=IkyIHcU9hKBCOZfF30FrKf4CfL-MH91fjeYF9EY7eos,128
|
12
12
|
u_toolkit/signature.py,sha256=-Q6n28PYBYYdd2OXBKESeVkL2rYpV6EaY3IVwQmzezQ,2161
|
13
13
|
u_toolkit/fastapi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
|
-
u_toolkit/fastapi/cbv.py,sha256=
|
14
|
+
u_toolkit/fastapi/cbv.py,sha256=s8si0Oc7pE_4M8wX-911aEZw5TJ-4-MtTLQHN71htcU,12097
|
15
15
|
u_toolkit/fastapi/config.py,sha256=kGpokR9XXr1KxMA1GVKYkCdKwqIQAIwOJ-v6sGbqzAQ,267
|
16
16
|
u_toolkit/fastapi/exception.py,sha256=P9apEEQvbBMmffiHX57768gmemMeAy69-nb-1JQZAZE,4624
|
17
17
|
u_toolkit/fastapi/helpers.py,sha256=BCMMLxa1c6BMA_rKq-hCi0iyEjrR3Z5rPMeTvgaVJB0,447
|
@@ -30,7 +30,7 @@ u_toolkit/sqlalchemy/type_vars.py,sha256=m2VeV41CBIK_1QX3w2kgz-n556sILAGZ-Kaz3TD
|
|
30
30
|
u_toolkit/sqlalchemy/orm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
31
31
|
u_toolkit/sqlalchemy/orm/fields.py,sha256=3zoYil23I6YLtc_59aHDt9w5l1NBTkePT9AfXI3DMiY,593
|
32
32
|
u_toolkit/sqlalchemy/orm/models.py,sha256=V8vf4ps3phAmwxyaFYK7pw8Igz7h097o4QBjKB0gwC8,705
|
33
|
-
u_toolkit-0.1.
|
34
|
-
u_toolkit-0.1.
|
35
|
-
u_toolkit-0.1.
|
36
|
-
u_toolkit-0.1.
|
33
|
+
u_toolkit-0.1.12.dist-info/METADATA,sha256=Vtf8jjzNczvmnfEM3I0ZRPW6EPYl9W7x5JbGERtj5Yg,366
|
34
|
+
u_toolkit-0.1.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
35
|
+
u_toolkit-0.1.12.dist-info/entry_points.txt,sha256=hTfAYCd5vvRiqgnJk2eBsoRIiIVB9pK8WZm3Q3jjKFU,45
|
36
|
+
u_toolkit-0.1.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|