beamlit 0.0.33rc46__py3-none-any.whl → 0.0.33rc47__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
beamlit/functions/decorator.py
CHANGED
@@ -39,7 +39,7 @@ def function(*args, function: Function | dict = None, kit=False, **kwargs: dict)
|
|
39
39
|
|
40
40
|
@functools.wraps(func)
|
41
41
|
async def wrapped(*args, **kwargs):
|
42
|
-
if isinstance(args[0], Request):
|
42
|
+
if len(args) > 0 and isinstance(args[0], Request):
|
43
43
|
body = await args[0].json()
|
44
44
|
args = [body.get(param) for param in func.__code__.co_varnames[:func.__code__.co_argcount]]
|
45
45
|
return func(*args, **kwargs)
|
@@ -142,7 +142,7 @@ beamlit/deploy/deploy.py,sha256=junQAo5zf9vC81cS6_6-0AOy4xRvvXlX710-kUK6hRE,9888
|
|
142
142
|
beamlit/deploy/format.py,sha256=PJ8kU7Y1pwiS3tqqyvFaag9LO3jju-4ua574163VPk4,1820
|
143
143
|
beamlit/deploy/parser.py,sha256=Ga0poCZkoRnuTw082QnTcNGCBJncoRAnVsn8-1FsaJE,6907
|
144
144
|
beamlit/functions/__init__.py,sha256=_RPG1Bfg54JGdIPnViAU6n9zD7E1cDNsdXi8oYGskzE,138
|
145
|
-
beamlit/functions/decorator.py,sha256=
|
145
|
+
beamlit/functions/decorator.py,sha256=TyN1ddXg9buQEfqq6DwhH0OzsixcyK3liXdVkkntwVw,1721
|
146
146
|
beamlit/functions/github/__init__.py,sha256=gYnUkeegukOfbymdabuuJkScvH-_ZJygX05BoqkPn0o,49
|
147
147
|
beamlit/functions/github/github.py,sha256=FajzLCNkpXcwfgnC0l9rOGT2eSPLCz8-qrMzK9N_ZNc,598
|
148
148
|
beamlit/functions/github/kit/__init__.py,sha256=jBwPqZv6C23_utukohxqXZwrlicNlI7PYPUj0Den7Cw,136
|
@@ -257,6 +257,6 @@ beamlit/serve/app.py,sha256=DXWxQoMeuA5FYvBMyLrP94OEWQbwLf4GZk3I9fkwSPA,3523
|
|
257
257
|
beamlit/serve/middlewares/__init__.py,sha256=1dVmnOmhAQWvWktqHkKSIX-YoF6fmMU8xkUQuhg_rJU,148
|
258
258
|
beamlit/serve/middlewares/accesslog.py,sha256=Mu4T4_9OvHybjA0ApzZFpgi2C8f3X1NbUk-76v634XM,631
|
259
259
|
beamlit/serve/middlewares/processtime.py,sha256=lDAaIasZ4bwvN-HKHvZpaD9r-yrkVNZYx4abvbjbrCg,411
|
260
|
-
beamlit-0.0.
|
261
|
-
beamlit-0.0.
|
262
|
-
beamlit-0.0.
|
260
|
+
beamlit-0.0.33rc47.dist-info/METADATA,sha256=vBtjbc3XlaoeqiBKNLg3oNK6DOHutXs9zIYpqwpYyE0,2405
|
261
|
+
beamlit-0.0.33rc47.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
262
|
+
beamlit-0.0.33rc47.dist-info/RECORD,,
|
File without changes
|