ecapi-sdk 3.5.3__tar.gz → 3.6.0__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.
- {ecapi_sdk-3.5.3 → ecapi_sdk-3.6.0}/PKG-INFO +12 -2
- {ecapi_sdk-3.5.3 → ecapi_sdk-3.6.0}/README.md +11 -1
- {ecapi_sdk-3.5.3 → ecapi_sdk-3.6.0}/pyproject.toml +1 -1
- {ecapi_sdk-3.5.3 → ecapi_sdk-3.6.0}/src/ecapi_sdk/client.py +4 -4
- {ecapi_sdk-3.5.3 → ecapi_sdk-3.6.0}/src/ecapi_sdk/client.pyi +7 -8
- {ecapi_sdk-3.5.3 → ecapi_sdk-3.6.0}/src/ecapi_sdk.egg-info/PKG-INFO +12 -2
- {ecapi_sdk-3.5.3 → ecapi_sdk-3.6.0}/setup.cfg +0 -0
- {ecapi_sdk-3.5.3 → ecapi_sdk-3.6.0}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.5.3 → ecapi_sdk-3.6.0}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.5.3 → ecapi_sdk-3.6.0}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.5.3 → ecapi_sdk-3.6.0}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.5.3 → ecapi_sdk-3.6.0}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ecapi-sdk
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.6.0
|
|
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`
|
|
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`
|
|
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",
|
|
@@ -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
|
"""添加玩家家园收藏"""
|
|
@@ -1032,6 +1028,10 @@ class PlayerSourceAccountAPI(_BaseApi):
|
|
|
1032
1028
|
return self._get(f"/players/{quote(str(ecid), safe='')}/source-accounts", None, **kwargs)
|
|
1033
1029
|
|
|
1034
1030
|
class PlayerStatusAPI(_BaseApi):
|
|
1031
|
+
def create_query(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
1032
|
+
"""批量查询玩家服内状态"""
|
|
1033
|
+
return self._post(f"/player-status-queries", payload, **kwargs)
|
|
1034
|
+
|
|
1035
1035
|
def get(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
1036
1036
|
"""查询玩家服内状态"""
|
|
1037
1037
|
return self._get(f"/player-statuses", query, **kwargs)
|
|
@@ -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
|
|
|
@@ -895,6 +888,12 @@ class PlayerSourceAccountAPICreateDisplayNameQueryBodyRequired(TypedDict):
|
|
|
895
888
|
class PlayerSourceAccountAPICreateDisplayNameQueryBody(PlayerSourceAccountAPICreateDisplayNameQueryBodyRequired, total=False):
|
|
896
889
|
pass
|
|
897
890
|
|
|
891
|
+
class PlayerStatusAPICreateQueryBodyRequired(TypedDict):
|
|
892
|
+
playerNames: Sequence[Any]
|
|
893
|
+
|
|
894
|
+
class PlayerStatusAPICreateQueryBody(PlayerStatusAPICreateQueryBodyRequired, total=False):
|
|
895
|
+
pass
|
|
896
|
+
|
|
898
897
|
class PlayerStatusAPIGetQueryRequired(TypedDict):
|
|
899
898
|
displayName: QueryValue
|
|
900
899
|
|
|
@@ -1373,7 +1372,6 @@ class GameLogAPI:
|
|
|
1373
1372
|
def get_pit_session_details(self, id: str, **kwargs: Any) -> Any: ...
|
|
1374
1373
|
def get_pit_sessions(self, query: Optional[GameLogAPIGetPitSessionsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1375
1374
|
def get_players(self, query: GameLogAPIGetPlayersQuery, **kwargs: Any) -> Any: ...
|
|
1376
|
-
def get_zombie_escape_supply_draws(self, query: GameLogAPIGetZombieEscapeSupplyDrawsQuery, **kwargs: Any) -> Any: ...
|
|
1377
1375
|
|
|
1378
1376
|
class EchoMelandAPI:
|
|
1379
1377
|
def add_favorite(self, worldId: Union[int, float], ecid: str, **kwargs: Any) -> Any: ...
|
|
@@ -1464,6 +1462,7 @@ class PlayerSourceAccountAPI:
|
|
|
1464
1462
|
def list_bindings(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1465
1463
|
|
|
1466
1464
|
class PlayerStatusAPI:
|
|
1465
|
+
def create_query(self, payload: PlayerStatusAPICreateQueryBody, **kwargs: Any) -> Any: ...
|
|
1467
1466
|
def get(self, query: PlayerStatusAPIGetQuery, **kwargs: Any) -> Any: ...
|
|
1468
1467
|
|
|
1469
1468
|
class ServerAPI:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ecapi-sdk
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.6.0
|
|
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`
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|