reyserver 1.1.78__py3-none-any.whl → 1.1.80__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.
Potentially problematic release.
This version of reyserver might be problematic. Click here for more details.
- reyserver/rall.py +1 -0
- reyserver/rbind.py +4 -3
- reyserver/rclient.py +1 -1
- reyserver/rserver.py +2 -2
- reyserver/rtest.py +1 -1
- {reyserver-1.1.78.dist-info → reyserver-1.1.80.dist-info}/METADATA +1 -1
- reyserver-1.1.80.dist-info/RECORD +15 -0
- reyserver-1.1.78.dist-info/RECORD +0 -15
- {reyserver-1.1.78.dist-info → reyserver-1.1.80.dist-info}/WHEEL +0 -0
- {reyserver-1.1.78.dist-info → reyserver-1.1.80.dist-info}/licenses/LICENSE +0 -0
reyserver/rall.py
CHANGED
reyserver/rbind.py
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"""
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
from typing import
|
|
12
|
+
from typing import overload, TYPE_CHECKING
|
|
13
13
|
from fastapi import FastAPI, Request, UploadFile
|
|
14
14
|
from fastapi.params import (
|
|
15
15
|
Depends,
|
|
@@ -313,8 +313,9 @@ class ServerBind(ServerBase, metaclass=StaticMeta):
|
|
|
313
313
|
'Dependency type.'
|
|
314
314
|
Conn = DatabaseConnectionAsync
|
|
315
315
|
Sess = DatabaseORMSessionAsync
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
if TYPE_CHECKING:
|
|
317
|
+
Server = rserver.Server
|
|
318
|
+
'Server type.'
|
|
318
319
|
server: Depend = Depend(depend_server)
|
|
319
320
|
'Server instance dependency type.'
|
|
320
321
|
i = ServerBindInstance()
|
reyserver/rclient.py
CHANGED
|
@@ -118,7 +118,7 @@ class ServerClient(ServerBase):
|
|
|
118
118
|
return response
|
|
119
119
|
|
|
120
120
|
# Try request.
|
|
121
|
-
self.token = self.
|
|
121
|
+
self.token = self.get_token(self.username, self.password)
|
|
122
122
|
headers['Authorization'] = f'Bearer {self.token}'
|
|
123
123
|
kwargs['check'] = True
|
|
124
124
|
response = request(*args, **kwargs)
|
reyserver/rserver.py
CHANGED
|
@@ -334,9 +334,9 @@ class Server(ServerBase, Singleton):
|
|
|
334
334
|
self.app.include_router(router_public, tags=['public'])
|
|
335
335
|
|
|
336
336
|
|
|
337
|
-
def
|
|
337
|
+
def add_api_redirect_all(self, server_url: str) -> None:
|
|
338
338
|
"""
|
|
339
|
-
Add redirect API.
|
|
339
|
+
Add redirect all API.
|
|
340
340
|
Redirect all requests to the target server.
|
|
341
341
|
|
|
342
342
|
Parameters
|
reyserver/rtest.py
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
reyserver/__init__.py,sha256=iT5IWIBDvaeYvxs0HuV6mZfN2D0G4xkb_0DhX-VpsDk,454
|
|
2
|
+
reyserver/rall.py,sha256=a3e8o1wtV_wBlR2m-df94SQ7TakC9-jPUoxNZfix1nM,364
|
|
3
|
+
reyserver/rauth.py,sha256=7mANcRcbJ3e4u0PDSMquBeCWKchHbmVeFOVv7syU7Q0,15236
|
|
4
|
+
reyserver/rbase.py,sha256=mq6ChIcxb8-RUZgYqJZ8LOa0XTr0d8VU-xVzhJ0q5AQ,1134
|
|
5
|
+
reyserver/rbind.py,sha256=QrRCT8p-2bwxxBQNZmFq4RAsVHs3_mRuobsbHo1Uc9M,6792
|
|
6
|
+
reyserver/rclient.py,sha256=Q-nU-knvvuyO7hHYnAvKteVkUhk26K4kGKVExrO8Kww,6290
|
|
7
|
+
reyserver/rfile.py,sha256=xudSM-bVRqzCvifCUTgiZwitPzPNe1KQ2GXLgHtu2zg,8891
|
|
8
|
+
reyserver/rpublic.py,sha256=ixKDWdDihdVQ8Pqjpril7veJ9kkFK9yiRm8CTwmck4Q,1095
|
|
9
|
+
reyserver/rredirect.py,sha256=c7wgXn5UeF53irMlbJ8vctec2KEc3DuHhBOa8NBoFjA,857
|
|
10
|
+
reyserver/rserver.py,sha256=GnsGTsjTUogIqY8o1onKzYqIAoGUSVXWnpxJoW7nvSg,11329
|
|
11
|
+
reyserver/rtest.py,sha256=MPYsyRzO3mZL5LJfUeBY1cafXvDsT2BGqoXq49wmJeo,777
|
|
12
|
+
reyserver-1.1.80.dist-info/METADATA,sha256=ZV5cAro5bMrbz0Aojifa_ApMY4LNVnciqYMrcsjfvvU,1666
|
|
13
|
+
reyserver-1.1.80.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
14
|
+
reyserver-1.1.80.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
|
15
|
+
reyserver-1.1.80.dist-info/RECORD,,
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
reyserver/__init__.py,sha256=iT5IWIBDvaeYvxs0HuV6mZfN2D0G4xkb_0DhX-VpsDk,454
|
|
2
|
-
reyserver/rall.py,sha256=Kzh52bdDFxB0pcFLFnEh6q4mL4t9POAYJBhT4w0hxmA,342
|
|
3
|
-
reyserver/rauth.py,sha256=7mANcRcbJ3e4u0PDSMquBeCWKchHbmVeFOVv7syU7Q0,15236
|
|
4
|
-
reyserver/rbase.py,sha256=mq6ChIcxb8-RUZgYqJZ8LOa0XTr0d8VU-xVzhJ0q5AQ,1134
|
|
5
|
-
reyserver/rbind.py,sha256=RBI6qfQvvO7H9S9lJfTK-OP01CzhN9oq8XERjaRXF5w,6752
|
|
6
|
-
reyserver/rclient.py,sha256=w79RJEjAfIlQatCeZZIlrGLH_A5vEw9HvpHp3a5bNYw,6295
|
|
7
|
-
reyserver/rfile.py,sha256=xudSM-bVRqzCvifCUTgiZwitPzPNe1KQ2GXLgHtu2zg,8891
|
|
8
|
-
reyserver/rpublic.py,sha256=ixKDWdDihdVQ8Pqjpril7veJ9kkFK9yiRm8CTwmck4Q,1095
|
|
9
|
-
reyserver/rredirect.py,sha256=c7wgXn5UeF53irMlbJ8vctec2KEc3DuHhBOa8NBoFjA,857
|
|
10
|
-
reyserver/rserver.py,sha256=3fuXVwU_PPbDLCIYxvRJotSVhbY_0Vtpph7nh8M0S3Q,11321
|
|
11
|
-
reyserver/rtest.py,sha256=z7i-tKwDzqErebLgF-M2hBg5HUKStK8b9398Yca9s-g,777
|
|
12
|
-
reyserver-1.1.78.dist-info/METADATA,sha256=9mU07KCPhizs7VT1o_kTJpOZbTaYYr2sIh46DVc_5DY,1666
|
|
13
|
-
reyserver-1.1.78.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
14
|
-
reyserver-1.1.78.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
|
15
|
-
reyserver-1.1.78.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|