ddapi 0.14.2__tar.gz → 0.14.3__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.
- {ddapi-0.14.2 → ddapi-0.14.3}/PKG-INFO +1 -1
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/__init__.py +1 -1
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/api/ddnet.py +4 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/scheme/ddnet.py +25 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi.egg-info/PKG-INFO +1 -1
- {ddapi-0.14.2 → ddapi-0.14.3}/setup.cfg +1 -1
- {ddapi-0.14.2 → ddapi-0.14.3}/setup.py +1 -1
- {ddapi-0.14.2 → ddapi-0.14.3}/LICENSE +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/README.md +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/_api.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/api/__init__.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/api/ddstats.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/api/status.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/cache/__init__.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/cache/base.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/cache/empty.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/cache/memory.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/enum.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/scheme/__init__.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/scheme/ddstats_tw.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/scheme/status_tw.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/types.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi/util.py +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi.egg-info/SOURCES.txt +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi.egg-info/dependency_links.txt +0 -0
- {ddapi-0.14.2 → ddapi-0.14.3}/ddapi/ddapi.egg-info/top_level.txt +0 -0
|
@@ -8,6 +8,7 @@ from ddapi.scheme import (
|
|
|
8
8
|
QueryMapper,
|
|
9
9
|
Master,
|
|
10
10
|
DMap,
|
|
11
|
+
DDSkins,
|
|
11
12
|
)
|
|
12
13
|
|
|
13
14
|
__all__ = ("DDnetApi",)
|
|
@@ -31,6 +32,9 @@ class DDnetApi(API):
|
|
|
31
32
|
async def status(self) -> DDStatus:
|
|
32
33
|
return await self._generate_model_instance(DDStatus.api(), DDStatus)
|
|
33
34
|
|
|
35
|
+
async def skins(self) -> DDSkins:
|
|
36
|
+
return await self._generate_model_instance(DDSkins.api(), DDSkins)
|
|
37
|
+
|
|
34
38
|
async def releases_map(self) -> ReleasesMaps:
|
|
35
39
|
return await self._generate_model_instance(
|
|
36
40
|
ReleasesMaps.api(), ReleasesMaps, "maps"
|
|
@@ -11,6 +11,31 @@ from ddapi.enum import MasterEnum
|
|
|
11
11
|
rm_list = ["DD-Persian", "/vDQMHSss8W", ""]
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
class DDSkinHD(BaseModel):
|
|
15
|
+
uhd: bool
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class DDSkin(BaseModel):
|
|
19
|
+
name: str
|
|
20
|
+
type: str
|
|
21
|
+
hd: DDSkinHD
|
|
22
|
+
creator: str
|
|
23
|
+
license: str
|
|
24
|
+
bodypart: str
|
|
25
|
+
gameversion: str
|
|
26
|
+
date: datetime
|
|
27
|
+
skinpack: str
|
|
28
|
+
imgtype: str
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class DDSkins(BaseModel):
|
|
32
|
+
skins: list[DDSkin]
|
|
33
|
+
|
|
34
|
+
@staticmethod
|
|
35
|
+
def api() -> str:
|
|
36
|
+
return "https://skins.ddnet.org/skin/skins.json"
|
|
37
|
+
|
|
38
|
+
|
|
14
39
|
class DRank(BaseModel):
|
|
15
40
|
points: int | None = None
|
|
16
41
|
rank: int | None = None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|