reyserver 1.1.72__py3-none-any.whl → 1.1.73__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/rfile.py +2 -2
- reyserver/rserver.py +11 -12
- {reyserver-1.1.72.dist-info → reyserver-1.1.73.dist-info}/METADATA +1 -1
- {reyserver-1.1.72.dist-info → reyserver-1.1.73.dist-info}/RECORD +6 -6
- {reyserver-1.1.72.dist-info → reyserver-1.1.73.dist-info}/WHEEL +0 -0
- {reyserver-1.1.72.dist-info → reyserver-1.1.73.dist-info}/licenses/LICENSE +0 -0
reyserver/rfile.py
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
from fastapi import APIRouter
|
|
13
13
|
from fastapi.responses import FileResponse
|
|
14
14
|
from reydb import rorm, DatabaseEngine, DatabaseEngineAsync
|
|
15
|
-
from reykit.ros import
|
|
15
|
+
from reykit.ros import get_md5
|
|
16
16
|
|
|
17
17
|
from .rbase import Bind, exit_api
|
|
18
18
|
|
|
@@ -213,7 +213,7 @@ async def upload_file(
|
|
|
213
213
|
name: str = Bind.i.forms_n,
|
|
214
214
|
note: str = Bind.i.forms_n,
|
|
215
215
|
sess: Bind.Sess = Bind.sess.file,
|
|
216
|
-
server: Bind.Server = Bind.server
|
|
216
|
+
server: Bind.Server = Bind.server # type: ignore
|
|
217
217
|
) -> DatabaseORMTableInfo:
|
|
218
218
|
"""
|
|
219
219
|
Upload file.
|
reyserver/rserver.py
CHANGED
|
@@ -41,6 +41,17 @@ class Server(ServerBase, Singleton):
|
|
|
41
41
|
Can view document api '/docs', '/redoc', '/openapi.json'.
|
|
42
42
|
"""
|
|
43
43
|
|
|
44
|
+
is_started_auth: bool = False
|
|
45
|
+
'Whether start authentication.'
|
|
46
|
+
api_public_dir: str
|
|
47
|
+
'Public directory.'
|
|
48
|
+
api_auth_key: str
|
|
49
|
+
'Authentication API JWT encryption key.'
|
|
50
|
+
api_auth_sess_seconds: int
|
|
51
|
+
'Authentication API session valid seconds.'
|
|
52
|
+
api_file_store: FileStore
|
|
53
|
+
'File API store instance.'
|
|
54
|
+
|
|
44
55
|
|
|
45
56
|
def __init__(
|
|
46
57
|
self,
|
|
@@ -95,18 +106,6 @@ class Server(ServerBase, Singleton):
|
|
|
95
106
|
self.app.add_middleware(HTTPSRedirectMiddleware)
|
|
96
107
|
self.__add_base_middleware()
|
|
97
108
|
|
|
98
|
-
# API.
|
|
99
|
-
self.is_started_auth: bool = False
|
|
100
|
-
'Whether start authentication.'
|
|
101
|
-
self.api_public_dir: str
|
|
102
|
-
'Public directory.'
|
|
103
|
-
self.api_auth_key: str
|
|
104
|
-
'Authentication API JWT encryption key.'
|
|
105
|
-
self.api_auth_sess_seconds: int
|
|
106
|
-
'Authentication API session valid seconds.'
|
|
107
|
-
self.api_file_store: FileStore
|
|
108
|
-
'File API store instance.'
|
|
109
|
-
|
|
110
109
|
|
|
111
110
|
def __create_lifespan(
|
|
112
111
|
self,
|
|
@@ -3,9 +3,9 @@ reyserver/rall.py,sha256=riyDRTUsigco_Bee1H4aZFb8IgvjnxdX9qcnVb9i9mE,270
|
|
|
3
3
|
reyserver/rauth.py,sha256=SGBtopM4fwn7pFjFPmrh6mD61c0iSJmqYEYUpgoCayA,15217
|
|
4
4
|
reyserver/rbase.py,sha256=OKXZ_VOfPEVgO3oVn6j-pqHjnIbDL0UoZtp8GcN9hzw,8990
|
|
5
5
|
reyserver/rclient.py,sha256=og5YuWm-PODkFn9njBwYQpGlk0j1BfqFuEarlCFSQYI,6229
|
|
6
|
-
reyserver/rfile.py,sha256=
|
|
7
|
-
reyserver/rserver.py,sha256=
|
|
8
|
-
reyserver-1.1.
|
|
9
|
-
reyserver-1.1.
|
|
10
|
-
reyserver-1.1.
|
|
11
|
-
reyserver-1.1.
|
|
6
|
+
reyserver/rfile.py,sha256=qqJrCwDr27ymXgBs1n6nFwqUrZZs-rxa97isaCOaGNY,8872
|
|
7
|
+
reyserver/rserver.py,sha256=65_HggjGw3zVMNoXXKu0jGFAex3l9qdJXc3TwFLALkI,10761
|
|
8
|
+
reyserver-1.1.73.dist-info/METADATA,sha256=bjU1kszFLnVkm0nkvh_m_gHujNMolagKQh-ZsARc3I8,1666
|
|
9
|
+
reyserver-1.1.73.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
10
|
+
reyserver-1.1.73.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
|
11
|
+
reyserver-1.1.73.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|