reyserver 1.1.75__py3-none-any.whl → 1.1.77__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/rclient.py CHANGED
@@ -54,6 +54,7 @@ class ServerClient(ServerBase):
54
54
  self.password = password
55
55
  self.url = url
56
56
  self.token = self.get_token(username, password)
57
+ self.request = copy_type_hints(self._request, request)
57
58
 
58
59
 
59
60
  def get_token(
@@ -125,7 +126,7 @@ class ServerClient(ServerBase):
125
126
  return response
126
127
 
127
128
 
128
- request = copy_type_hints(_request, request)
129
+ # request = copy_type_hints(_request, request)
129
130
 
130
131
 
131
132
  def upload_file(
reyserver/rpublic.py CHANGED
@@ -46,9 +46,9 @@ def home(server: Bind.Server = Bind.server) -> HTMLResponse:
46
46
 
47
47
 
48
48
  @router_public.get('/public/{path:path}')
49
- def get_public_file(path: str = Bind.i.path) -> FileResponse:
49
+ def download_public_file(path: str = Bind.i.path) -> FileResponse:
50
50
  """
51
- Get public file.
51
+ Download public file.
52
52
 
53
53
  Parameters
54
54
  ----------
reyserver/rserver.py CHANGED
@@ -327,9 +327,9 @@ class Server(ServerBase, Singleton):
327
327
 
328
328
  # Add.
329
329
  self.api_public_dir = public_dir
330
- self.app.include_router(router_public, tags=['public'])
331
330
  subapp = StaticFiles(directory=public_dir)
332
331
  self.app.mount('/public', subapp)
332
+ self.app.include_router(router_public, tags=['public'])
333
333
 
334
334
 
335
335
  def add_api_auth(self, key: str | None = None, sess_seconds: int = 28800) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reyserver
3
- Version: 1.1.75
3
+ Version: 1.1.77
4
4
  Summary: Backend server method set.
5
5
  Project-URL: homepage, https://github.com/reyxbo/reyserver/
6
6
  Author-email: Rey <reyxbo@163.com>
@@ -2,12 +2,12 @@ reyserver/__init__.py,sha256=umEAldZYjSIpHJQHUOXlgXqMgOiRC-FRGmRZjrji7as,423
2
2
  reyserver/rall.py,sha256=SoG4PX2YAz94EuelDNhk1wvwNkrLfzskiWoknEBZitk,315
3
3
  reyserver/rauth.py,sha256=SGBtopM4fwn7pFjFPmrh6mD61c0iSJmqYEYUpgoCayA,15217
4
4
  reyserver/rbase.py,sha256=hdBRiaGho12D7qoH8P8w7sZK7Jd6xTJSJXIiVoiFNFw,7654
5
- reyserver/rclient.py,sha256=og5YuWm-PODkFn9njBwYQpGlk0j1BfqFuEarlCFSQYI,6229
5
+ reyserver/rclient.py,sha256=w79RJEjAfIlQatCeZZIlrGLH_A5vEw9HvpHp3a5bNYw,6295
6
6
  reyserver/rfile.py,sha256=qqJrCwDr27ymXgBs1n6nFwqUrZZs-rxa97isaCOaGNY,8872
7
- reyserver/rpublic.py,sha256=_JoD3c-jYExarhyvl167zu29j22mUicXeBevjgqSjzk,1085
8
- reyserver/rserver.py,sha256=5vgYxrZ_s-Njk3zXs4M-Fktx4q6ks0lsHDVgYdMAiE4,10817
7
+ reyserver/rpublic.py,sha256=iZvEgIUYtXavStpTzXDB71jd7X8NaEx3yZBnBHrtmPI,1095
8
+ reyserver/rserver.py,sha256=Bjde4jRQdeijJSWpz0eU0Dy3sNKxsQiY2xBmWoFaiuA,10817
9
9
  reyserver/rtest.py,sha256=z7i-tKwDzqErebLgF-M2hBg5HUKStK8b9398Yca9s-g,777
10
- reyserver-1.1.75.dist-info/METADATA,sha256=vJJ2Nb0RV621nqe2VlZut5_jp_do4xXgLwfMw_80wpY,1666
11
- reyserver-1.1.75.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
- reyserver-1.1.75.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
13
- reyserver-1.1.75.dist-info/RECORD,,
10
+ reyserver-1.1.77.dist-info/METADATA,sha256=0dzV3A8ROwrPWrQeHkrJT1FbLgKC3f3mJ1R36pUNpZU,1666
11
+ reyserver-1.1.77.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
+ reyserver-1.1.77.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
13
+ reyserver-1.1.77.dist-info/RECORD,,