satori-python-core 1.3.0__tar.gz → 1.3.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.
@@ -8,8 +8,6 @@ authors = [
8
8
  {name = "RF-Tar-Railt", email = "rf_tar_railt@qq.com"}
9
9
  ]
10
10
  dependencies = [
11
- "loguru",
12
- "yarl",
13
11
  "typing-extensions",
14
12
  ]
15
13
  description = "Satori Protocol SDK for python, specify common part"
@@ -18,13 +16,13 @@ readme = "README.md"
18
16
  requires-python = ">=3.10,<4.0"
19
17
  classifiers = [
20
18
  "Typing :: Typed",
21
- "Development Status :: 4 - Beta",
19
+ "Development Status :: 5 - Production/Stable",
22
20
  "License :: OSI Approved :: MIT License",
23
- "Programming Language :: Python :: 3.8",
24
- "Programming Language :: Python :: 3.9",
25
21
  "Programming Language :: Python :: 3.10",
26
22
  "Programming Language :: Python :: 3.11",
27
23
  "Programming Language :: Python :: 3.12",
24
+ "Programming Language :: Python :: 3.13",
25
+ "Programming Language :: Python :: 3.14",
28
26
  "Operating System :: OS Independent",
29
27
  ]
30
28
 
@@ -1,24 +1,22 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: satori-python-core
3
- Version: 1.3.0
3
+ Version: 1.3.2
4
4
  Summary: Satori Protocol SDK for python, specify common part
5
5
  Home-page: https://github.com/RF-Tar-Railt/satori-python
6
6
  Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
7
7
  License: MIT
8
8
  Classifier: Typing :: Typed
9
- Classifier: Development Status :: 4 - Beta
9
+ Classifier: Development Status :: 5 - Production/Stable
10
10
  Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Programming Language :: Python :: 3.8
12
- Classifier: Programming Language :: Python :: 3.9
13
11
  Classifier: Programming Language :: Python :: 3.10
14
12
  Classifier: Programming Language :: Python :: 3.11
15
13
  Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
16
  Classifier: Operating System :: OS Independent
17
17
  Project-URL: Homepage, https://github.com/RF-Tar-Railt/satori-python
18
18
  Project-URL: Repository, https://github.com/RF-Tar-Railt/satori-python
19
19
  Requires-Python: <4.0,>=3.10
20
- Requires-Dist: loguru>=0.7.2
21
- Requires-Dist: yarl>=1.9.4
22
20
  Requires-Dist: typing-extensions>=4.7.0
23
21
  Description-Content-Type: text/markdown
24
22
 
@@ -5,8 +5,6 @@ authors = [
5
5
  { name = "RF-Tar-Railt", email = "rf_tar_railt@qq.com" },
6
6
  ]
7
7
  dependencies = [
8
- "loguru>=0.7.2",
9
- "yarl>=1.9.4",
10
8
  "typing-extensions>=4.7.0",
11
9
  ]
12
10
  description = "Satori Protocol SDK for python, specify common part"
@@ -14,16 +12,16 @@ readme = "README.md"
14
12
  requires-python = ">=3.10,<4.0"
15
13
  classifiers = [
16
14
  "Typing :: Typed",
17
- "Development Status :: 4 - Beta",
15
+ "Development Status :: 5 - Production/Stable",
18
16
  "License :: OSI Approved :: MIT License",
19
- "Programming Language :: Python :: 3.8",
20
- "Programming Language :: Python :: 3.9",
21
17
  "Programming Language :: Python :: 3.10",
22
18
  "Programming Language :: Python :: 3.11",
23
19
  "Programming Language :: Python :: 3.12",
20
+ "Programming Language :: Python :: 3.13",
21
+ "Programming Language :: Python :: 3.14",
24
22
  "Operating System :: OS Independent",
25
23
  ]
26
- version = "1.3.0"
24
+ version = "1.3.2"
27
25
 
28
26
  [project.license]
29
27
  text = "MIT"
@@ -45,7 +45,7 @@ from .model import Role as Role
45
45
  from .model import Upload as Upload
46
46
  from .model import User as User
47
47
 
48
- __version__ = "1.3.0"
48
+ __version__ = "1.3.2"
49
49
 
50
50
 
51
51
  MessageReceipt = MessageObject
@@ -122,6 +122,12 @@ class Role(ModelBase):
122
122
  id: str
123
123
  name: str | None = None
124
124
 
125
+ @classmethod
126
+ def parse(cls, raw: str | dict):
127
+ if isinstance(raw, str):
128
+ return cls(id=raw)
129
+ return super().parse(raw)
130
+
125
131
  def dump(self):
126
132
  res = {"id": self.id}
127
133
  if self.name: