satori-python 0.16.0__tar.gz → 0.16.1__tar.gz

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.
Files changed (29) hide show
  1. {satori_python-0.16.0 → satori_python-0.16.1}/PKG-INFO +1 -1
  2. {satori_python-0.16.0 → satori_python-0.16.1}/pyproject.toml +1 -1
  3. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/__init__.py +1 -1
  4. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/network/webhook.py +2 -2
  5. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/protocol.py +1 -1
  6. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/__init__.py +3 -3
  7. {satori_python-0.16.0 → satori_python-0.16.1}/LICENSE +0 -0
  8. {satori_python-0.16.0 → satori_python-0.16.1}/README.md +0 -0
  9. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/__init__.py +0 -0
  10. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/account.py +0 -0
  11. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/account.pyi +0 -0
  12. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/config.py +0 -0
  13. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/network/__init__.py +0 -0
  14. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/network/base.py +0 -0
  15. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/network/util.py +0 -0
  16. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/network/websocket.py +0 -0
  17. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/const.py +0 -0
  18. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/element.py +0 -0
  19. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/event.py +0 -0
  20. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/exception.py +0 -0
  21. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/model.py +0 -0
  22. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/parser.py +0 -0
  23. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/adapter.py +0 -0
  24. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/conection.py +0 -0
  25. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/formdata.py +0 -0
  26. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/model.py +0 -0
  27. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/route.py +0 -0
  28. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/utils.py +0 -0
  29. {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: satori-python
3
- Version: 0.16.0
3
+ Version: 0.16.1
4
4
  Summary: Satori Protocol SDK for python
5
5
  Home-page: https://github.com/RF-Tar-Railt/satori-python
6
6
  Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
@@ -29,7 +29,7 @@ classifiers = [
29
29
  "Programming Language :: Python :: 3.12",
30
30
  "Operating System :: OS Independent",
31
31
  ]
32
- version = "0.16.0"
32
+ version = "0.16.1"
33
33
 
34
34
  [project.license]
35
35
  text = "MIT"
@@ -41,4 +41,4 @@ from .model import Role as Role
41
41
  from .model import Upload as Upload
42
42
  from .model import User as User
43
43
 
44
- __version__ = "0.16.0"
44
+ __version__ = "0.16.1"
@@ -41,9 +41,9 @@ class WebhookNetwork(BaseNetwork[WebhookInfo]):
41
41
  # if "X-Platform" in header and "X-Self-ID" in header:
42
42
  # platform = header["X-Platform"]
43
43
  # self_id = header["X-Self-ID"]
44
- # elif "Satori-Platform" in header and "Satori-Login-ID" in header:
44
+ # elif "Satori-Platform" in header and "Satori-User-ID" in header:
45
45
  # platform = header["Satori-Platform"]
46
- # self_id = header["Satori-Login-ID"]
46
+ # self_id = header["Satori-User-ID"]
47
47
  # else:
48
48
  # return web.Response(status=400)
49
49
  try:
@@ -63,7 +63,7 @@ class ApiProtocol:
63
63
  "X-Platform": self.account.platform,
64
64
  "X-Self-ID": self.account.self_id,
65
65
  "Satori-Platform": self.account.platform,
66
- "Satori-Login-ID": self.account.self_id,
66
+ "Satori-User-ID": self.account.self_id,
67
67
  }
68
68
  aio = Launart.current().get_component(AiohttpClientService)
69
69
  if multipart:
@@ -231,9 +231,9 @@ class Server(Service, RouterMixin):
231
231
  if "X-Platform" not in request.headers and "Satori-Platform" not in request.headers:
232
232
  return Response(status_code=401, content="Missing header X-Platform or Satori-Platform")
233
233
  platform: str = request.headers.get("X-Platform") or request.headers.get("Satori-Platform") # type: ignore
234
- if "X-Self-ID" not in request.headers and "Satori-Login-ID" not in request.headers:
235
- return Response(status_code=401, content="Missing header X-Self-ID or Satori-Login-ID")
236
- self_id: str = request.headers.get("X-Self-ID") or request.headers.get("Satori-Login-ID") # type: ignore
234
+ if "X-Self-ID" not in request.headers and "Satori-User-ID" not in request.headers:
235
+ return Response(status_code=401, content="Missing header X-Self-ID or Satori-User-ID")
236
+ self_id: str = request.headers.get("X-Self-ID") or request.headers.get("Satori-User-ID") # type: ignore
237
237
 
238
238
  for _router in self._adapters:
239
239
  if action not in _router.routes:
File without changes
File without changes