ecapi-sdk 3.5.3__tar.gz → 3.5.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.5.3
3
+ Version: 3.5.4
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
@@ -18,7 +18,7 @@ Description-Content-Type: text/markdown
18
18
 
19
19
  # ecapi-sdk (Python)
20
20
 
21
- ECAPI 的 Python SDK,面向当前重构后的 REST/OpenAPI 契约。当前门面由 `openapi.json` 生成并覆盖其中的全部接口,并随包提供 `py.typed` 与 `client.pyi`,方便 IDE 显示参数、必填字段和 docstring。
21
+ ECAPI 的 Python SDK,面向当前重构后的 REST/OpenAPI 契约。当前门面由 `openapi.json` 生成并覆盖全部 160 个接口,并随包提供 `py.typed` 与 `client.pyi`,方便 IDE 显示参数、必填字段和 docstring。
22
22
 
23
23
  ## 安装
24
24
 
@@ -88,6 +88,16 @@ client.system.get_readiness()
88
88
 
89
89
  client.player.search_ecid({"search": "Steve"})
90
90
  client.player.cutoff_leaderboard.get_leaderboard({"game": "bedwar"})
91
+ client.server.leaderboard.get_top({
92
+ "game": "labour",
93
+ "scoreType": "ONLINE",
94
+ "deadlineType": "WEEK",
95
+ })
96
+ client.player.leaderboard.get_rank("player-ecid", {
97
+ "game": "labour",
98
+ "scoreType": "ONLINE",
99
+ "deadlineType": "MONTH",
100
+ })
91
101
  client.punish.create({
92
102
  "type": "WARNING",
93
103
  "ecid": "player-ecid",
@@ -1,6 +1,6 @@
1
1
  # ecapi-sdk (Python)
2
2
 
3
- ECAPI 的 Python SDK,面向当前重构后的 REST/OpenAPI 契约。当前门面由 `openapi.json` 生成并覆盖其中的全部接口,并随包提供 `py.typed` 与 `client.pyi`,方便 IDE 显示参数、必填字段和 docstring。
3
+ ECAPI 的 Python SDK,面向当前重构后的 REST/OpenAPI 契约。当前门面由 `openapi.json` 生成并覆盖全部 160 个接口,并随包提供 `py.typed` 与 `client.pyi`,方便 IDE 显示参数、必填字段和 docstring。
4
4
 
5
5
  ## 安装
6
6
 
@@ -70,6 +70,16 @@ client.system.get_readiness()
70
70
 
71
71
  client.player.search_ecid({"search": "Steve"})
72
72
  client.player.cutoff_leaderboard.get_leaderboard({"game": "bedwar"})
73
+ client.server.leaderboard.get_top({
74
+ "game": "labour",
75
+ "scoreType": "ONLINE",
76
+ "deadlineType": "WEEK",
77
+ })
78
+ client.player.leaderboard.get_rank("player-ecid", {
79
+ "game": "labour",
80
+ "scoreType": "ONLINE",
81
+ "deadlineType": "MONTH",
82
+ })
73
83
  client.punish.create({
74
84
  "type": "WARNING",
75
85
  "ecid": "player-ecid",
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ecapi-sdk"
7
- version = "3.5.3"
7
+ version = "3.5.4"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -773,10 +773,6 @@ class GameLogAPI(_BaseApi):
773
773
  """分页查询游戏玩家记录"""
774
774
  return self._get(f"/game-logs/players", query, **kwargs)
775
775
 
776
- def get_zombie_escape_supply_draws(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
777
- """分页查询生化大逃杀血清抽取记录"""
778
- return self._get(f"/game-logs/zombie-escape/supply-draws", query, **kwargs)
779
-
780
776
  class EchoMelandAPI(_BaseApi):
781
777
  def add_favorite(self, worldId: Union[int, float], ecid: str, **kwargs: Any) -> Any:
782
778
  """添加玩家家园收藏"""
@@ -628,13 +628,6 @@ class GameLogAPIGetPlayersQuery(GameLogAPIGetPlayersQueryRequired, total=False):
628
628
  current: QueryValue
629
629
  pageSize: QueryValue
630
630
 
631
- class GameLogAPIGetZombieEscapeSupplyDrawsQueryRequired(TypedDict):
632
- ecid: QueryValue
633
-
634
- class GameLogAPIGetZombieEscapeSupplyDrawsQuery(GameLogAPIGetZombieEscapeSupplyDrawsQueryRequired, total=False):
635
- current: QueryValue
636
- pageSize: QueryValue
637
-
638
631
  class EchoMelandAPIUpdateEnderChestBodyRequired(TypedDict):
639
632
  nbtBase64: Optional[str]
640
633
 
@@ -1373,7 +1366,6 @@ class GameLogAPI:
1373
1366
  def get_pit_session_details(self, id: str, **kwargs: Any) -> Any: ...
1374
1367
  def get_pit_sessions(self, query: Optional[GameLogAPIGetPitSessionsQuery] = ..., **kwargs: Any) -> Any: ...
1375
1368
  def get_players(self, query: GameLogAPIGetPlayersQuery, **kwargs: Any) -> Any: ...
1376
- def get_zombie_escape_supply_draws(self, query: GameLogAPIGetZombieEscapeSupplyDrawsQuery, **kwargs: Any) -> Any: ...
1377
1369
 
1378
1370
  class EchoMelandAPI:
1379
1371
  def add_favorite(self, worldId: Union[int, float], ecid: str, **kwargs: Any) -> Any: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.5.3
3
+ Version: 3.5.4
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
@@ -18,7 +18,7 @@ Description-Content-Type: text/markdown
18
18
 
19
19
  # ecapi-sdk (Python)
20
20
 
21
- ECAPI 的 Python SDK,面向当前重构后的 REST/OpenAPI 契约。当前门面由 `openapi.json` 生成并覆盖其中的全部接口,并随包提供 `py.typed` 与 `client.pyi`,方便 IDE 显示参数、必填字段和 docstring。
21
+ ECAPI 的 Python SDK,面向当前重构后的 REST/OpenAPI 契约。当前门面由 `openapi.json` 生成并覆盖全部 160 个接口,并随包提供 `py.typed` 与 `client.pyi`,方便 IDE 显示参数、必填字段和 docstring。
22
22
 
23
23
  ## 安装
24
24
 
@@ -88,6 +88,16 @@ client.system.get_readiness()
88
88
 
89
89
  client.player.search_ecid({"search": "Steve"})
90
90
  client.player.cutoff_leaderboard.get_leaderboard({"game": "bedwar"})
91
+ client.server.leaderboard.get_top({
92
+ "game": "labour",
93
+ "scoreType": "ONLINE",
94
+ "deadlineType": "WEEK",
95
+ })
96
+ client.player.leaderboard.get_rank("player-ecid", {
97
+ "game": "labour",
98
+ "scoreType": "ONLINE",
99
+ "deadlineType": "MONTH",
100
+ })
91
101
  client.punish.create({
92
102
  "type": "WARNING",
93
103
  "ecid": "player-ecid",
File without changes