python-ballchasing 0.5.4__py3-none-any.whl → 0.6.0__py3-none-any.whl
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.
- ballchasing/__init__.py +1 -0
- ballchasing/api.py +212 -31
- ballchasing/constants.py +12 -9
- ballchasing/exceptions.py +37 -0
- ballchasing/rate_limit.py +13 -1
- ballchasing/stats_info.tsv +29 -1
- ballchasing/typed/__init__.py +2 -5
- ballchasing/typed/_base.py +106 -0
- ballchasing/typed/deep_group.py +26 -440
- ballchasing/typed/deep_replay.py +23 -286
- ballchasing/typed/methods.py +145 -0
- ballchasing/typed/models.py +954 -0
- ballchasing/typed/shallow_group.py +3 -18
- ballchasing/typed/shallow_replay.py +5 -66
- ballchasing/typed/shared.py +6 -243
- ballchasing/util/iterators.py +1 -1
- ballchasing/util/stats.py +3 -3
- {python_ballchasing-0.5.4.dist-info → python_ballchasing-0.6.0.dist-info}/METADATA +18 -2
- python_ballchasing-0.6.0.dist-info/RECORD +25 -0
- {python_ballchasing-0.5.4.dist-info → python_ballchasing-0.6.0.dist-info}/WHEEL +1 -1
- python_ballchasing-0.6.0.dist-info/top_level.txt +1 -0
- python_ballchasing-0.5.4.dist-info/RECORD +0 -26
- python_ballchasing-0.5.4.dist-info/top_level.txt +0 -3
- scripts/get_maps.py +0 -147
- scripts/make_types.py +0 -194
- scripts/test.py +0 -52
- scripts/test_typed.py +0 -88
- tests/test_fixes.py +0 -439
- {python_ballchasing-0.5.4.dist-info → python_ballchasing-0.6.0.dist-info}/licenses/LICENSE +0 -0
ballchasing/typed/deep_group.py
CHANGED
|
@@ -1,440 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
shooting_percentage: float = 0.0
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@dataclass
|
|
31
|
-
class PlayerCumulativeBoostStatsDG(_BaseModel):
|
|
32
|
-
bpm: float = 0.0
|
|
33
|
-
bcpm: float = 0.0
|
|
34
|
-
avg_amount: float = 0.0
|
|
35
|
-
amount_collected: int = 0
|
|
36
|
-
amount_stolen: int = 0
|
|
37
|
-
amount_collected_big: int = 0
|
|
38
|
-
amount_stolen_big: int = 0
|
|
39
|
-
amount_collected_small: int = 0
|
|
40
|
-
amount_stolen_small: int = 0
|
|
41
|
-
count_collected_big: int = 0
|
|
42
|
-
count_stolen_big: int = 0
|
|
43
|
-
count_collected_small: int = 0
|
|
44
|
-
count_stolen_small: int = 0
|
|
45
|
-
time_zero_boost: float = 0.0
|
|
46
|
-
percent_zero_boost: float = 0.0
|
|
47
|
-
time_full_boost: float = 0.0
|
|
48
|
-
percent_full_boost: float = 0.0
|
|
49
|
-
amount_overfill: int = 0
|
|
50
|
-
amount_overfill_stolen: int = 0
|
|
51
|
-
amount_used_while_supersonic: int = 0
|
|
52
|
-
time_boost_0_25: float = 0.0
|
|
53
|
-
time_boost_25_50: float = 0.0
|
|
54
|
-
time_boost_50_75: float = 0.0
|
|
55
|
-
time_boost_75_100: float = 0.0
|
|
56
|
-
percent_boost_0_25: float = 0.0
|
|
57
|
-
percent_boost_25_50: float = 0.0
|
|
58
|
-
percent_boost_50_75: float = 0.0
|
|
59
|
-
percent_boost_75_100: float = 0.0
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
@dataclass
|
|
63
|
-
class PlayerCumulativeMovementStatsDG(_BaseModel):
|
|
64
|
-
avg_speed: float = 0.0
|
|
65
|
-
total_distance: int = 0
|
|
66
|
-
time_supersonic_speed: float = 0.0
|
|
67
|
-
time_boost_speed: float = 0.0
|
|
68
|
-
time_slow_speed: float = 0.0
|
|
69
|
-
time_ground: float = 0.0
|
|
70
|
-
time_low_air: float = 0.0
|
|
71
|
-
time_high_air: float = 0.0
|
|
72
|
-
time_powerslide: float = 0.0
|
|
73
|
-
count_powerslide: int = 0
|
|
74
|
-
avg_powerslide_duration: float = 0.0
|
|
75
|
-
avg_speed_percentage: float = 0.0
|
|
76
|
-
percent_slow_speed: float = 0.0
|
|
77
|
-
percent_boost_speed: float = 0.0
|
|
78
|
-
percent_supersonic_speed: float = 0.0
|
|
79
|
-
percent_ground: float = 0.0
|
|
80
|
-
percent_low_air: float = 0.0
|
|
81
|
-
percent_high_air: float = 0.0
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
@dataclass
|
|
85
|
-
class PlayerCumulativePositioningStatsDG(_BaseModel):
|
|
86
|
-
avg_distance_to_ball: float = 0.0
|
|
87
|
-
avg_distance_to_ball_possession: float = 0.0
|
|
88
|
-
avg_distance_to_ball_no_possession: float = 0.0
|
|
89
|
-
time_defensive_third: float = 0.0
|
|
90
|
-
time_neutral_third: float = 0.0
|
|
91
|
-
time_offensive_third: float = 0.0
|
|
92
|
-
time_defensive_half: float = 0.0
|
|
93
|
-
time_offensive_half: float = 0.0
|
|
94
|
-
time_behind_ball: float = 0.0
|
|
95
|
-
time_infront_ball: float = 0.0
|
|
96
|
-
time_most_back: float = 0.0
|
|
97
|
-
time_most_forward: float = 0.0
|
|
98
|
-
goals_against_while_last_defender: int = 0
|
|
99
|
-
time_closest_to_ball: float = 0.0
|
|
100
|
-
time_farthest_from_ball: float = 0.0
|
|
101
|
-
percent_defensive_third: float = 0.0
|
|
102
|
-
percent_offensive_third: float = 0.0
|
|
103
|
-
percent_neutral_third: float = 0.0
|
|
104
|
-
percent_defensive_half: float = 0.0
|
|
105
|
-
percent_offensive_half: float = 0.0
|
|
106
|
-
percent_behind_ball: float = 0.0
|
|
107
|
-
percent_infront_ball: float = 0.0
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
@dataclass
|
|
111
|
-
class PlayerCumulativeDemoStatsDG(_BaseModel):
|
|
112
|
-
inflicted: int = 0
|
|
113
|
-
taken: int = 0
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
@dataclass
|
|
117
|
-
class PlayerCumulativeStatsDG(_BaseModel, _DictToTypeMixin):
|
|
118
|
-
games: int = 0
|
|
119
|
-
wins: int = 0
|
|
120
|
-
win_percentage: float = 0
|
|
121
|
-
play_duration: int = 0
|
|
122
|
-
core: Optional[PlayerCumulativeCoreStatsDG] = None
|
|
123
|
-
boost: Optional[PlayerCumulativeBoostStatsDG] = None
|
|
124
|
-
movement: Optional[PlayerCumulativeMovementStatsDG] = None
|
|
125
|
-
positioning: Optional[PlayerCumulativePositioningStatsDG] = None
|
|
126
|
-
demo: Optional[PlayerCumulativeDemoStatsDG] = None
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
@dataclass
|
|
130
|
-
class PlayerAverageCoreStatsDG(_BaseModel):
|
|
131
|
-
shots: float = 0.0
|
|
132
|
-
shots_against: int = 0
|
|
133
|
-
goals: float = 0.0
|
|
134
|
-
goals_against: float = 0.0
|
|
135
|
-
saves: float = 0.0
|
|
136
|
-
assists: float = 0.0
|
|
137
|
-
score: float = 0.0
|
|
138
|
-
mvp: int = 0
|
|
139
|
-
shooting_percentage: float = 0.0
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
@dataclass
|
|
143
|
-
class PlayerAverageBoostStatsDG(_BaseModel):
|
|
144
|
-
bpm: float = 0.0
|
|
145
|
-
bcpm: float = 0.0
|
|
146
|
-
avg_amount: float = 0.0
|
|
147
|
-
amount_collected: float = 0.0
|
|
148
|
-
amount_stolen: float = 0.0
|
|
149
|
-
amount_collected_big: int = 0
|
|
150
|
-
amount_stolen_big: float = 0.0
|
|
151
|
-
amount_collected_small: float = 0.0
|
|
152
|
-
amount_stolen_small: int = 0
|
|
153
|
-
count_collected_big: float = 0.0
|
|
154
|
-
count_stolen_big: float = 0.0
|
|
155
|
-
count_collected_small: float = 0.0
|
|
156
|
-
count_stolen_small: float = 0.0
|
|
157
|
-
time_zero_boost: float = 0.0
|
|
158
|
-
percent_zero_boost: float = 0.0
|
|
159
|
-
time_full_boost: float = 0.0
|
|
160
|
-
percent_full_boost: float = 0.0
|
|
161
|
-
amount_overfill: int = 0
|
|
162
|
-
amount_overfill_stolen: int = 0
|
|
163
|
-
amount_used_while_supersonic: float = 0.0
|
|
164
|
-
time_boost_0_25: float = 0.0
|
|
165
|
-
time_boost_25_50: float = 0.0
|
|
166
|
-
time_boost_50_75: float = 0.0
|
|
167
|
-
time_boost_75_100: float = 0.0
|
|
168
|
-
percent_boost_0_25: float = 0.0
|
|
169
|
-
percent_boost_25_50: float = 0.0
|
|
170
|
-
percent_boost_50_75: float = 0.0
|
|
171
|
-
percent_boost_75_100: float = 0.0
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
@dataclass
|
|
175
|
-
class PlayerAverageMovementStatsDG(_BaseModel):
|
|
176
|
-
avg_speed: float = 0.0
|
|
177
|
-
total_distance: int = 0
|
|
178
|
-
time_supersonic_speed: float = 0.0
|
|
179
|
-
time_boost_speed: float = 0.0
|
|
180
|
-
time_slow_speed: float = 0.0
|
|
181
|
-
time_ground: float = 0.0
|
|
182
|
-
time_low_air: float = 0.0
|
|
183
|
-
time_high_air: float = 0.0
|
|
184
|
-
time_powerslide: float = 0.0
|
|
185
|
-
count_powerslide: float = 0.0
|
|
186
|
-
avg_powerslide_duration: float = 0.0
|
|
187
|
-
avg_speed_percentage: float = 0.0
|
|
188
|
-
percent_slow_speed: float = 0.0
|
|
189
|
-
percent_boost_speed: float = 0.0
|
|
190
|
-
percent_supersonic_speed: float = 0.0
|
|
191
|
-
percent_ground: float = 0.0
|
|
192
|
-
percent_low_air: float = 0.0
|
|
193
|
-
percent_high_air: float = 0.0
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
@dataclass
|
|
197
|
-
class PlayerAveragePositioningStatsDG(_BaseModel):
|
|
198
|
-
avg_distance_to_ball: float = 0.0
|
|
199
|
-
avg_distance_to_ball_possession: float = 0.0
|
|
200
|
-
avg_distance_to_ball_no_possession: float = 0.0
|
|
201
|
-
time_defensive_third: float = 0.0
|
|
202
|
-
time_neutral_third: float = 0.0
|
|
203
|
-
time_offensive_third: float = 0.0
|
|
204
|
-
time_defensive_half: float = 0.0
|
|
205
|
-
time_offensive_half: float = 0.0
|
|
206
|
-
time_behind_ball: float = 0.0
|
|
207
|
-
time_infront_ball: float = 0.0
|
|
208
|
-
time_most_back: float = 0.0
|
|
209
|
-
time_most_forward: float = 0.0
|
|
210
|
-
goals_against_while_last_defender: float = 0.0
|
|
211
|
-
time_closest_to_ball: float = 0.0
|
|
212
|
-
time_farthest_from_ball: float = 0.0
|
|
213
|
-
percent_defensive_third: float = 0.0
|
|
214
|
-
percent_offensive_third: float = 0.0
|
|
215
|
-
percent_neutral_third: float = 0.0
|
|
216
|
-
percent_defensive_half: float = 0.0
|
|
217
|
-
percent_offensive_half: float = 0.0
|
|
218
|
-
percent_behind_ball: float = 0.0
|
|
219
|
-
percent_infront_ball: float = 0.0
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
@dataclass
|
|
223
|
-
class PlayerAverageDemoStatsDG(_BaseModel):
|
|
224
|
-
inflicted: float = 0.0
|
|
225
|
-
taken: float = 0.0
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
@dataclass
|
|
229
|
-
class PlayerAverageStatsDG(_BaseModel, _DictToTypeMixin):
|
|
230
|
-
core: Optional[PlayerAverageCoreStatsDG] = None
|
|
231
|
-
boost: Optional[PlayerAverageBoostStatsDG] = None
|
|
232
|
-
movement: Optional[PlayerAverageMovementStatsDG] = None
|
|
233
|
-
positioning: Optional[PlayerAveragePositioningStatsDG] = None
|
|
234
|
-
demo: Optional[PlayerAverageDemoStatsDG] = None
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
@dataclass
|
|
238
|
-
class TeamCumulativeCoreStatsDG(_BaseModel):
|
|
239
|
-
shots: int = 0
|
|
240
|
-
shots_against: int = 0
|
|
241
|
-
goals: int = 0
|
|
242
|
-
goals_against: int = 0
|
|
243
|
-
saves: int = 0
|
|
244
|
-
assists: int = 0
|
|
245
|
-
score: int = 0
|
|
246
|
-
shooting_percentage: float = 0.0
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
@dataclass
|
|
250
|
-
class TeamCumulativeBoostStatsDG(_BaseModel):
|
|
251
|
-
amount_collected: int = 0
|
|
252
|
-
amount_stolen: int = 0
|
|
253
|
-
amount_collected_big: int = 0
|
|
254
|
-
amount_stolen_big: int = 0
|
|
255
|
-
amount_collected_small: int = 0
|
|
256
|
-
amount_stolen_small: int = 0
|
|
257
|
-
count_collected_big: int = 0
|
|
258
|
-
count_stolen_big: int = 0
|
|
259
|
-
count_collected_small: int = 0
|
|
260
|
-
count_stolen_small: int = 0
|
|
261
|
-
time_zero_boost: float = 0.0
|
|
262
|
-
percent_zero_boost: float = 0.0
|
|
263
|
-
time_full_boost: float = 0.0
|
|
264
|
-
percent_full_boost: float = 0.0
|
|
265
|
-
amount_overfill: int = 0
|
|
266
|
-
amount_overfill_stolen: int = 0
|
|
267
|
-
amount_used_while_supersonic: int = 0
|
|
268
|
-
time_boost_0_25: float = 0.0
|
|
269
|
-
time_boost_25_50: float = 0.0
|
|
270
|
-
time_boost_50_75: float = 0.0
|
|
271
|
-
time_boost_75_100: float = 0.0
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
@dataclass
|
|
275
|
-
class TeamCumulativeMovementStatsDG(_BaseModel):
|
|
276
|
-
total_distance: int = 0
|
|
277
|
-
time_supersonic_speed: float = 0.0
|
|
278
|
-
time_boost_speed: float = 0.0
|
|
279
|
-
time_slow_speed: float = 0.0
|
|
280
|
-
time_ground: float = 0.0
|
|
281
|
-
time_low_air: int = 0
|
|
282
|
-
time_high_air: float = 0.0
|
|
283
|
-
time_powerslide: float = 0.0
|
|
284
|
-
count_powerslide: int = 0
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
@dataclass
|
|
288
|
-
class TeamCumulativePositioningStatsDG(_BaseModel):
|
|
289
|
-
time_defensive_third: float = 0.0
|
|
290
|
-
time_neutral_third: float = 0.0
|
|
291
|
-
time_offensive_third: float = 0.0
|
|
292
|
-
time_defensive_half: float = 0.0
|
|
293
|
-
time_offensive_half: float = 0.0
|
|
294
|
-
time_behind_ball: float = 0.0
|
|
295
|
-
time_infront_ball: float = 0.0
|
|
296
|
-
avg_distance_to_ball: int = 0
|
|
297
|
-
avg_distance_to_ball_possession: int = 0
|
|
298
|
-
avg_distance_to_ball_no_possession: int = 0
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
@dataclass
|
|
302
|
-
class TeamCumulativeDemoStatsDG(_BaseModel):
|
|
303
|
-
inflicted: int = 0
|
|
304
|
-
taken: int = 0
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
@dataclass
|
|
308
|
-
class TeamCumulativeStatsDG(_BaseModel, _DictToTypeMixin):
|
|
309
|
-
games: int = 0
|
|
310
|
-
wins: int = 0
|
|
311
|
-
win_percentage: float = 0
|
|
312
|
-
play_duration: int = 0
|
|
313
|
-
core: Optional[TeamCumulativeCoreStatsDG] = None
|
|
314
|
-
boost: Optional[TeamCumulativeBoostStatsDG] = None
|
|
315
|
-
movement: Optional[TeamCumulativeMovementStatsDG] = None
|
|
316
|
-
positioning: Optional[TeamCumulativePositioningStatsDG] = None
|
|
317
|
-
demo: Optional[TeamCumulativeDemoStatsDG] = None
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
@dataclass
|
|
321
|
-
class TeamAverageCoreStatsDG(_BaseModel):
|
|
322
|
-
shots: float = 0.0
|
|
323
|
-
shots_against: int = 0
|
|
324
|
-
goals: int = 0
|
|
325
|
-
goals_against: float = 0.0
|
|
326
|
-
saves: float = 0.0
|
|
327
|
-
assists: float = 0.0
|
|
328
|
-
score: float = 0.0
|
|
329
|
-
shooting_percentage: float = 0.0
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
@dataclass
|
|
333
|
-
class TeamAverageBoostStatsDG(_BaseModel):
|
|
334
|
-
bpm: int = 0
|
|
335
|
-
bcpm: float = 0.0
|
|
336
|
-
avg_amount: float = 0.0
|
|
337
|
-
amount_collected: float = 0.0
|
|
338
|
-
amount_stolen: float = 0.0
|
|
339
|
-
amount_collected_big: float = 0.0
|
|
340
|
-
amount_stolen_big: float = 0.0
|
|
341
|
-
amount_collected_small: float = 0.0
|
|
342
|
-
amount_stolen_small: float = 0.0
|
|
343
|
-
count_collected_big: float = 0.0
|
|
344
|
-
count_stolen_big: float = 0.0
|
|
345
|
-
count_collected_small: float = 0.0
|
|
346
|
-
count_stolen_small: float = 0.0
|
|
347
|
-
time_zero_boost: float = 0.0
|
|
348
|
-
percent_zero_boost: float = 0.0
|
|
349
|
-
time_full_boost: float = 0.0
|
|
350
|
-
percent_full_boost: float = 0.0
|
|
351
|
-
amount_overfill: int = 0
|
|
352
|
-
amount_overfill_stolen: int = 0
|
|
353
|
-
amount_used_while_supersonic: int = 0
|
|
354
|
-
time_boost_0_25: float = 0.0
|
|
355
|
-
time_boost_25_50: float = 0.0
|
|
356
|
-
time_boost_50_75: float = 0.0
|
|
357
|
-
time_boost_75_100: float = 0.0
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
@dataclass
|
|
361
|
-
class TeamAverageMovementStatsDG(_BaseModel):
|
|
362
|
-
total_distance: float = 0.0
|
|
363
|
-
time_supersonic_speed: float = 0.0
|
|
364
|
-
time_boost_speed: float = 0.0
|
|
365
|
-
time_slow_speed: float = 0.0
|
|
366
|
-
time_ground: float = 0.0
|
|
367
|
-
time_low_air: float = 0.0
|
|
368
|
-
time_high_air: float = 0.0
|
|
369
|
-
time_powerslide: float = 0.0
|
|
370
|
-
count_powerslide: float = 0.0
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
@dataclass
|
|
374
|
-
class TeamAveragePositioningStatsDG(_BaseModel):
|
|
375
|
-
time_defensive_third: float = 0.0
|
|
376
|
-
time_neutral_third: float = 0.0
|
|
377
|
-
time_offensive_third: float = 0.0
|
|
378
|
-
time_defensive_half: float = 0.0
|
|
379
|
-
time_offensive_half: float = 0.0
|
|
380
|
-
time_behind_ball: float = 0.0
|
|
381
|
-
time_infront_ball: float = 0.0
|
|
382
|
-
avg_distance_to_ball: float = 0.0
|
|
383
|
-
avg_distance_to_ball_possession: float = 0.0
|
|
384
|
-
avg_distance_to_ball_no_possession: int = 0
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
@dataclass
|
|
388
|
-
class TeamAverageDemoStatsDG(_BaseModel):
|
|
389
|
-
inflicted: float = 0.0
|
|
390
|
-
taken: float = 0.0
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
@dataclass
|
|
394
|
-
class TeamAverageStatsDG(_BaseModel, _DictToTypeMixin):
|
|
395
|
-
core: Optional[TeamAverageCoreStatsDG] = None
|
|
396
|
-
boost: Optional[TeamAverageBoostStatsDG] = None
|
|
397
|
-
movement: Optional[TeamAverageMovementStatsDG] = None
|
|
398
|
-
positioning: Optional[TeamAveragePositioningStatsDG] = None
|
|
399
|
-
demo: Optional[TeamAverageDemoStatsDG] = None
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
@dataclass
|
|
403
|
-
class PlayerDG(_BaseModel):
|
|
404
|
-
platform: str = ""
|
|
405
|
-
id: str = ""
|
|
406
|
-
name: str = ""
|
|
407
|
-
team: str = ""
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
@dataclass
|
|
411
|
-
class PlayerWithStatsDG(PlayerDG, _DictToTypeMixin):
|
|
412
|
-
# platform: str = ""
|
|
413
|
-
# id: str = ""
|
|
414
|
-
# name: str = ""
|
|
415
|
-
# team: str = ""
|
|
416
|
-
cumulative: Optional[PlayerCumulativeStatsDG] = None
|
|
417
|
-
game_average: Optional[PlayerAverageStatsDG] = None
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
@dataclass
|
|
421
|
-
class TeamDG(_BaseModel, _DictToTypeMixin):
|
|
422
|
-
name: str = ""
|
|
423
|
-
players: List[PlayerDG] = field(default_factory=list)
|
|
424
|
-
cumulative: Optional[TeamCumulativeStatsDG] = None
|
|
425
|
-
game_average: Optional[TeamAverageStatsDG] = None
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
@dataclass
|
|
429
|
-
class DeepGroup(BaseGroup):
|
|
430
|
-
# id: str = ""
|
|
431
|
-
# link: str = ""
|
|
432
|
-
# name: str = ""
|
|
433
|
-
# created: Optional[datetime] = ""
|
|
434
|
-
# player_identification: str = ""
|
|
435
|
-
# team_identification: str = ""
|
|
436
|
-
# shared: bool = False
|
|
437
|
-
status: str = ""
|
|
438
|
-
creator: Optional[CreatorDG] = None
|
|
439
|
-
players: List[PlayerWithStatsDG] = field(default_factory=list)
|
|
440
|
-
teams: List[TeamDG] = field(default_factory=list)
|
|
1
|
+
"""Former home of the full group classes, kept for compatibility: they are generated into models.py now."""
|
|
2
|
+
from ballchasing.typed.models import BaseGroup # noqa: F401
|
|
3
|
+
from ballchasing.typed.models import ( # noqa: F401
|
|
4
|
+
DeepGroup, Demo, GroupDuplicates, GroupPlayer, GroupPlayerAverage, GroupPlayerCore, GroupPlayerCumulative,
|
|
5
|
+
GroupPlayerStats, GroupTeamAverage, GroupTeamCumulative, GroupTeamStats, PlayerBoost, PlayerMovement,
|
|
6
|
+
PlayerPositioning, TeamBoost, TeamCore, TeamMovement, TeamPositioning, User,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
CreatorDG = User
|
|
10
|
+
PlayerCumulativeCoreStatsDG = PlayerAverageCoreStatsDG = GroupPlayerCore
|
|
11
|
+
PlayerCumulativeBoostStatsDG = PlayerAverageBoostStatsDG = PlayerBoost
|
|
12
|
+
PlayerCumulativeMovementStatsDG = PlayerAverageMovementStatsDG = PlayerMovement
|
|
13
|
+
PlayerCumulativePositioningStatsDG = PlayerAveragePositioningStatsDG = PlayerPositioning
|
|
14
|
+
PlayerCumulativeDemoStatsDG = PlayerAverageDemoStatsDG = Demo
|
|
15
|
+
PlayerCumulativeStatsDG = GroupPlayerCumulative
|
|
16
|
+
PlayerAverageStatsDG = GroupPlayerAverage
|
|
17
|
+
TeamCumulativeCoreStatsDG = TeamAverageCoreStatsDG = TeamCore
|
|
18
|
+
TeamCumulativeBoostStatsDG = TeamAverageBoostStatsDG = TeamBoost
|
|
19
|
+
TeamCumulativeMovementStatsDG = TeamAverageMovementStatsDG = TeamMovement
|
|
20
|
+
TeamCumulativePositioningStatsDG = TeamAveragePositioningStatsDG = TeamPositioning
|
|
21
|
+
TeamCumulativeDemoStatsDG = TeamAverageDemoStatsDG = Demo
|
|
22
|
+
TeamCumulativeStatsDG = GroupTeamCumulative
|
|
23
|
+
TeamAverageStatsDG = GroupTeamAverage
|
|
24
|
+
PlayerDG = GroupPlayer
|
|
25
|
+
PlayerWithStatsDG = GroupPlayerStats
|
|
26
|
+
TeamDG = GroupTeamStats
|