ddapi 0.9.0__tar.gz → 0.9.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ddapi
3
- Version: 0.9.0
3
+ Version: 0.9.2
4
4
  Summary: DDnet api
5
5
  Home-page: https://github.com/ByFox213/ddapi
6
6
  Author: ByFox
@@ -2,6 +2,6 @@
2
2
  from .main import DDnetApi, DDstats, Status
3
3
  from .scheme import *
4
4
 
5
- __version__ = "0.9.0"
5
+ __version__ = "0.9.2"
6
6
  __author__ = 'ByFox'
7
7
  __LICENSE__ = "MIT"
@@ -1,7 +1,3 @@
1
1
  from .ddnet import *
2
2
  from .ddstats_tw import *
3
3
  from .status_tw import *
4
-
5
- __version__ = "0.9.0"
6
- __author__ = 'ByFox'
7
- __LICENSE__ = "MIT"
@@ -168,13 +168,13 @@ class Community(BaseModel):
168
168
 
169
169
 
170
170
  class Info(BaseModel):
171
- max_clients: int
172
- max_players: int
173
- passworded: bool
174
- game_type: str
175
- name: str
176
- map: Map
177
- version: str
171
+ max_clients: int = None
172
+ max_players: int = None
173
+ passworded: bool = None
174
+ game_type: str = None
175
+ name: str = None
176
+ map: Map = None
177
+ version: str = None
178
178
  clients: Optional[list[Client]] = None
179
179
  requires_login: Optional[bool] = None
180
180
  community: Optional[Community] = None
@@ -177,6 +177,12 @@ class RecentTop10s(BaseModel):
177
177
  server: str
178
178
 
179
179
 
180
+ class GeneralActivity(BaseModel):
181
+ total_seconds_played: int
182
+ start_of_playtime: datetime
183
+ average_seconds_played: int
184
+
185
+
180
186
  class Player(BaseModel):
181
187
  points_graph: list[PointG]
182
188
  recent_finishes: list[RecentFinishes]
@@ -193,6 +199,7 @@ class Player(BaseModel):
193
199
  most_played_categories: Optional[list[MostPlayed]] = None
194
200
  most_played_locations: Optional[list[MostPlayed]] = None
195
201
  playtime_per_month: list[PlaytimePerMonth]
202
+ general_activity: GeneralActivity
196
203
  favourite_rank1s_teammates: Optional[list[FavouriteRank1sTeammates]] = None
197
204
  all_top_10s: Optional[list[AllTop10s]] = None
198
205
  recent_top_10s: Optional[list[RecentTop10s]] = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ddapi
3
- Version: 0.9.0
3
+ Version: 0.9.2
4
4
  Summary: DDnet api
5
5
  Home-page: https://github.com/ByFox213/ddapi
6
6
  Author: ByFox
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = ddapi
3
- version = 0.9.0
3
+ version = 0.9.1
4
4
  author = ByFox
5
5
  description = DDnet api
6
6
  long_description = file: README.md
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="ddapi",
8
- version="0.9.0",
8
+ version="0.9.2",
9
9
  author="ByFox",
10
10
  description="DDnet api",
11
11
  long_description=long_description,
File without changes
File without changes
File without changes
File without changes