satori-python 0.16.1__tar.gz → 0.16.2__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.1 → satori_python-0.16.2}/PKG-INFO +1 -1
  2. {satori_python-0.16.1 → satori_python-0.16.2}/pyproject.toml +1 -1
  3. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/__init__.py +1 -1
  4. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/__init__.py +1 -0
  5. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/model.py +4 -0
  6. {satori_python-0.16.1 → satori_python-0.16.2}/LICENSE +0 -0
  7. {satori_python-0.16.1 → satori_python-0.16.2}/README.md +0 -0
  8. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/account.py +0 -0
  9. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/account.pyi +0 -0
  10. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/config.py +0 -0
  11. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/network/__init__.py +0 -0
  12. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/network/base.py +0 -0
  13. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/network/util.py +0 -0
  14. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/network/webhook.py +0 -0
  15. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/network/websocket.py +0 -0
  16. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/client/protocol.py +0 -0
  17. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/const.py +0 -0
  18. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/element.py +0 -0
  19. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/event.py +0 -0
  20. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/exception.py +0 -0
  21. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/parser.py +0 -0
  22. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/__init__.py +0 -0
  23. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/adapter.py +0 -0
  24. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/conection.py +0 -0
  25. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/formdata.py +0 -0
  26. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/model.py +0 -0
  27. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/route.py +0 -0
  28. {satori_python-0.16.1 → satori_python-0.16.2}/src/satori/server/utils.py +0 -0
  29. {satori_python-0.16.1 → satori_python-0.16.2}/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.1
3
+ Version: 0.16.2
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.1"
32
+ version = "0.16.2"
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.1"
44
+ __version__ = "0.16.2"
@@ -232,6 +232,7 @@ class App(Service):
232
232
  return
233
233
  else:
234
234
  account = self.accounts[login_sn]
235
+ account.self_info = event.login
235
236
  if event.type == EventType.LOGIN_UPDATED:
236
237
  if TYPE_CHECKING:
237
238
  assert isinstance(event, events.LoginEvent)
@@ -172,8 +172,12 @@ class Login(ModelBase):
172
172
  def parse(cls, raw: dict):
173
173
  if "self_id" in raw and "user" not in raw:
174
174
  raw["user"] = {"id": raw["self_id"]}
175
+ if "sn" not in raw:
176
+ raw["sn"] = raw["user"]["id"]
175
177
  if "adapter" not in raw:
176
178
  raw["adapter"] = "satori"
179
+ if "status" not in raw:
180
+ raw["status"] = LoginStatus.ONLINE
177
181
  return super().parse(raw)
178
182
 
179
183
  @property
File without changes
File without changes