GNServer 0.0.0.0.26__py3-none-any.whl → 0.0.0.0.28__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.
- GNServer/_app.py +4 -1
- GNServer/_client.py +1 -1
- {gnserver-0.0.0.0.26.dist-info → gnserver-0.0.0.0.28.dist-info}/METADATA +2 -1
- gnserver-0.0.0.0.28.dist-info/RECORD +9 -0
- gnserver-0.0.0.0.26.dist-info/RECORD +0 -9
- {gnserver-0.0.0.0.26.dist-info → gnserver-0.0.0.0.28.dist-info}/WHEEL +0 -0
- {gnserver-0.0.0.0.26.dist-info → gnserver-0.0.0.0.28.dist-info}/licenses/LICENSE +0 -0
- {gnserver-0.0.0.0.26.dist-info → gnserver-0.0.0.0.28.dist-info}/top_level.txt +0 -0
GNServer/_app.py
CHANGED
@@ -605,6 +605,9 @@ class App:
|
|
605
605
|
|
606
606
|
if "request" in sig.parameters:
|
607
607
|
kw["request"] = request
|
608
|
+
|
609
|
+
params = set(sig.parameters.keys())
|
610
|
+
kw = {k: v for k, v in kw.items() if k in params}
|
608
611
|
|
609
612
|
if inspect.isasyncgenfunction(r.handler):
|
610
613
|
return r.handler(**kw)
|
@@ -671,7 +674,7 @@ class App:
|
|
671
674
|
@self.post('/!gn-vm-host/ping', cors=gn.CORSObject(None))
|
672
675
|
async def r_ping(request: gn.GNRequest):
|
673
676
|
|
674
|
-
if request.client.
|
677
|
+
if request.client.ip != '127.0.0.1':
|
675
678
|
raise GNExceptions.Forbidden()
|
676
679
|
return gn.GNResponse('ok', {'time': datetime.datetime.now(datetime.UTC).isoformat()})
|
677
680
|
|
GNServer/_client.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: GNServer
|
3
|
-
Version: 0.0.0.0.
|
3
|
+
Version: 0.0.0.0.28
|
4
4
|
Summary: GNServer
|
5
5
|
Home-page: https://github.com/KeyisB/libs/tree/main/GNServer
|
6
6
|
Author: KeyisB
|
@@ -14,6 +14,7 @@ License-File: LICENSE
|
|
14
14
|
Requires-Dist: aioquic
|
15
15
|
Requires-Dist: anyio
|
16
16
|
Requires-Dist: KeyisBClient
|
17
|
+
Requires-Dist: KeyisBTools
|
17
18
|
Requires-Dist: aiofiles
|
18
19
|
Requires-Dist: uvloop
|
19
20
|
Dynamic: author
|
@@ -0,0 +1,9 @@
|
|
1
|
+
GNServer/___client.py,sha256=hmeUL2Vqp-BnwJeRcLZAaIfRNVxBrRRB_AFk9ofkei4,25459
|
2
|
+
GNServer/__init__.py,sha256=V50sMYrrPdOGuI1iJm-SW7izhX-eggDH16AHvtIKjmM,1480
|
3
|
+
GNServer/_app.py,sha256=CZQ1EM-m0FsMTOVyjNIMeDvS0B1MtZMsGV0O1deMyTc,30778
|
4
|
+
GNServer/_client.py,sha256=uF5h5pu0noJ1uNWSdC-kxGvBUwUUmyyAQTt_altNJ_g,29861
|
5
|
+
gnserver-0.0.0.0.28.dist-info/licenses/LICENSE,sha256=WH_t7dKZyWJ5Ld07eYIkUG4Tv6zZWXtAdsUqYAUesn0,1084
|
6
|
+
gnserver-0.0.0.0.28.dist-info/METADATA,sha256=lrvZv_aAc4ggrW0gIWvQerVUexDwivGvyVsNWoDr-cQ,833
|
7
|
+
gnserver-0.0.0.0.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
8
|
+
gnserver-0.0.0.0.28.dist-info/top_level.txt,sha256=-UOUBuD4u7Qkb1o5PdcwyA3kx8xCH2lwy0tJHi26Wb4,9
|
9
|
+
gnserver-0.0.0.0.28.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
GNServer/___client.py,sha256=hmeUL2Vqp-BnwJeRcLZAaIfRNVxBrRRB_AFk9ofkei4,25459
|
2
|
-
GNServer/__init__.py,sha256=V50sMYrrPdOGuI1iJm-SW7izhX-eggDH16AHvtIKjmM,1480
|
3
|
-
GNServer/_app.py,sha256=WYK16u-G6TDEMBa3MVaJP3-HzTh4NIcmzsyOdxaSsm0,30664
|
4
|
-
GNServer/_client.py,sha256=TMBVo1C0nj7uSbnQHXoQDFMRB9Mb_tIc9C0zrIaOOlc,29869
|
5
|
-
gnserver-0.0.0.0.26.dist-info/licenses/LICENSE,sha256=WH_t7dKZyWJ5Ld07eYIkUG4Tv6zZWXtAdsUqYAUesn0,1084
|
6
|
-
gnserver-0.0.0.0.26.dist-info/METADATA,sha256=bC3T30RqCGzP7Y1QSjq_0MRXmD6gVIh0YcSLM3kl-UM,805
|
7
|
-
gnserver-0.0.0.0.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
8
|
-
gnserver-0.0.0.0.26.dist-info/top_level.txt,sha256=-UOUBuD4u7Qkb1o5PdcwyA3kx8xCH2lwy0tJHi26Wb4,9
|
9
|
-
gnserver-0.0.0.0.26.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|