cbbd 1.17.0__py3-none-any.whl → 1.18.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.
- cbbd/__init__.py +8 -2
- cbbd/api/__init__.py +1 -0
- cbbd/api/conferences_api.py +1 -1
- cbbd/api/draft_api.py +1 -1
- cbbd/api/games_api.py +1 -1
- cbbd/api/lines_api.py +1 -1
- cbbd/api/lineups_api.py +359 -0
- cbbd/api/plays_api.py +1 -1
- cbbd/api/rankings_api.py +1 -1
- cbbd/api/ratings_api.py +1 -1
- cbbd/api/recruiting_api.py +1 -1
- cbbd/api/stats_api.py +1 -1
- cbbd/api/teams_api.py +1 -1
- cbbd/api/venues_api.py +1 -1
- cbbd/api_client.py +2 -2
- cbbd/configuration.py +3 -3
- cbbd/exceptions.py +1 -1
- cbbd/models/__init__.py +6 -1
- cbbd/models/adjusted_efficiency_info.py +1 -1
- cbbd/models/adjusted_efficiency_info_rankings.py +1 -1
- cbbd/models/conference_history.py +1 -1
- cbbd/models/conference_history_teams_inner.py +1 -1
- cbbd/models/conference_info.py +1 -1
- cbbd/models/draft_pick.py +1 -1
- cbbd/models/draft_position.py +1 -1
- cbbd/models/draft_team.py +1 -1
- cbbd/models/game_box_score_players.py +1 -1
- cbbd/models/game_box_score_players_players_inner.py +1 -1
- cbbd/models/game_box_score_team.py +1 -1
- cbbd/models/game_box_score_team_stats.py +1 -1
- cbbd/models/game_box_score_team_stats_points.py +1 -1
- cbbd/models/game_info.py +1 -1
- cbbd/models/game_line_info.py +1 -1
- cbbd/models/game_lines.py +1 -1
- cbbd/models/game_media_info.py +1 -1
- cbbd/models/game_media_info_broadcasts_inner.py +1 -1
- cbbd/models/game_status.py +1 -1
- cbbd/models/line_provider_info.py +1 -1
- cbbd/models/lineup_stats.py +109 -0
- cbbd/models/lineup_unit_stats.py +116 -0
- cbbd/models/lineup_unit_stats_four_factors.py +78 -0
- cbbd/models/lineup_unit_stats_two_pointers.py +97 -0
- cbbd/models/play_info.py +1 -1
- cbbd/models/play_info_on_floor_inner.py +1 -1
- cbbd/models/play_info_participants_inner.py +1 -1
- cbbd/models/play_type_info.py +1 -1
- cbbd/models/player_season_stats.py +1 -1
- cbbd/models/player_season_stats_win_shares.py +1 -1
- cbbd/models/player_subsititution.py +1 -1
- cbbd/models/player_subsititution_sub_in.py +1 -1
- cbbd/models/poll_team_info.py +1 -1
- cbbd/models/recruit.py +1 -1
- cbbd/models/recruit_committed_to.py +1 -1
- cbbd/models/recruit_hometown.py +1 -1
- cbbd/models/season_type.py +1 -1
- cbbd/models/shooting_stats.py +76 -0
- cbbd/models/shot_info.py +1 -1
- cbbd/models/shot_info_location.py +1 -1
- cbbd/models/shot_info_shooter.py +1 -1
- cbbd/models/srs_info.py +1 -1
- cbbd/models/team_info.py +1 -1
- cbbd/models/team_roster.py +1 -1
- cbbd/models/team_roster_player.py +1 -1
- cbbd/models/team_roster_player_hometown.py +1 -1
- cbbd/models/team_season_stats.py +1 -1
- cbbd/models/team_season_unit_stats.py +1 -1
- cbbd/models/team_season_unit_stats_field_goals.py +1 -1
- cbbd/models/team_season_unit_stats_fouls.py +1 -1
- cbbd/models/team_season_unit_stats_four_factors.py +1 -1
- cbbd/models/team_season_unit_stats_points.py +1 -1
- cbbd/models/team_season_unit_stats_rebounds.py +1 -1
- cbbd/models/team_season_unit_stats_turnovers.py +1 -1
- cbbd/models/venue_info.py +1 -1
- cbbd/rest.py +1 -1
- {cbbd-1.17.0.dist-info → cbbd-1.18.0.dist-info}/METADATA +1 -1
- cbbd-1.18.0.dist-info/RECORD +80 -0
- {cbbd-1.17.0.dist-info → cbbd-1.18.0.dist-info}/WHEEL +1 -1
- cbbd-1.17.0.dist-info/RECORD +0 -74
- {cbbd-1.17.0.dist-info → cbbd-1.18.0.dist-info}/top_level.txt +0 -0
cbbd/models/draft_position.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/draft_team.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/game_info.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/game_line_info.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/game_lines.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/game_media_info.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/game_status.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -0,0 +1,109 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
College Basketball Data API
|
5
|
+
|
6
|
+
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
|
+
Contact: admin@collegefootballdata.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
|
22
|
+
from typing import List, Union
|
23
|
+
from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist
|
24
|
+
from cbbd.models.lineup_unit_stats import LineupUnitStats
|
25
|
+
from cbbd.models.play_info_participants_inner import PlayInfoParticipantsInner
|
26
|
+
|
27
|
+
class LineupStats(BaseModel):
|
28
|
+
"""
|
29
|
+
LineupStats
|
30
|
+
"""
|
31
|
+
team_id: StrictInt = Field(default=..., alias="teamId")
|
32
|
+
team: StrictStr = Field(...)
|
33
|
+
conference: StrictStr = Field(...)
|
34
|
+
id_hash: StrictStr = Field(default=..., alias="idHash")
|
35
|
+
athletes: conlist(PlayInfoParticipantsInner) = Field(...)
|
36
|
+
total_seconds: Union[StrictFloat, StrictInt] = Field(default=..., alias="totalSeconds")
|
37
|
+
pace: Union[StrictFloat, StrictInt] = Field(...)
|
38
|
+
offense_rating: Union[StrictFloat, StrictInt] = Field(default=..., alias="offenseRating")
|
39
|
+
defense_rating: Union[StrictFloat, StrictInt] = Field(default=..., alias="defenseRating")
|
40
|
+
net_rating: Union[StrictFloat, StrictInt] = Field(default=..., alias="netRating")
|
41
|
+
team_stats: LineupUnitStats = Field(default=..., alias="teamStats")
|
42
|
+
opponent_stats: LineupUnitStats = Field(default=..., alias="opponentStats")
|
43
|
+
__properties = ["teamId", "team", "conference", "idHash", "athletes", "totalSeconds", "pace", "offenseRating", "defenseRating", "netRating", "teamStats", "opponentStats"]
|
44
|
+
|
45
|
+
class Config:
|
46
|
+
"""Pydantic configuration"""
|
47
|
+
allow_population_by_field_name = True
|
48
|
+
validate_assignment = True
|
49
|
+
|
50
|
+
def to_str(self) -> str:
|
51
|
+
"""Returns the string representation of the model using alias"""
|
52
|
+
return pprint.pformat(self.dict(by_alias=True))
|
53
|
+
|
54
|
+
def to_json(self) -> str:
|
55
|
+
"""Returns the JSON representation of the model using alias"""
|
56
|
+
return json.dumps(self.to_dict())
|
57
|
+
|
58
|
+
@classmethod
|
59
|
+
def from_json(cls, json_str: str) -> LineupStats:
|
60
|
+
"""Create an instance of LineupStats from a JSON string"""
|
61
|
+
return cls.from_dict(json.loads(json_str))
|
62
|
+
|
63
|
+
def to_dict(self):
|
64
|
+
"""Returns the dictionary representation of the model using alias"""
|
65
|
+
_dict = self.dict(by_alias=True,
|
66
|
+
exclude={
|
67
|
+
},
|
68
|
+
exclude_none=True)
|
69
|
+
# override the default output from pydantic by calling `to_dict()` of each item in athletes (list)
|
70
|
+
_items = []
|
71
|
+
if self.athletes:
|
72
|
+
for _item in self.athletes:
|
73
|
+
if _item:
|
74
|
+
_items.append(_item.to_dict())
|
75
|
+
_dict['athletes'] = _items
|
76
|
+
# override the default output from pydantic by calling `to_dict()` of team_stats
|
77
|
+
if self.team_stats:
|
78
|
+
_dict['teamStats'] = self.team_stats.to_dict()
|
79
|
+
# override the default output from pydantic by calling `to_dict()` of opponent_stats
|
80
|
+
if self.opponent_stats:
|
81
|
+
_dict['opponentStats'] = self.opponent_stats.to_dict()
|
82
|
+
return _dict
|
83
|
+
|
84
|
+
@classmethod
|
85
|
+
def from_dict(cls, obj: dict) -> LineupStats:
|
86
|
+
"""Create an instance of LineupStats from a dict"""
|
87
|
+
if obj is None:
|
88
|
+
return None
|
89
|
+
|
90
|
+
if not isinstance(obj, dict):
|
91
|
+
return LineupStats.parse_obj(obj)
|
92
|
+
|
93
|
+
_obj = LineupStats.parse_obj({
|
94
|
+
"team_id": obj.get("teamId"),
|
95
|
+
"team": obj.get("team"),
|
96
|
+
"conference": obj.get("conference"),
|
97
|
+
"id_hash": obj.get("idHash"),
|
98
|
+
"athletes": [PlayInfoParticipantsInner.from_dict(_item) for _item in obj.get("athletes")] if obj.get("athletes") is not None else None,
|
99
|
+
"total_seconds": obj.get("totalSeconds"),
|
100
|
+
"pace": obj.get("pace"),
|
101
|
+
"offense_rating": obj.get("offenseRating"),
|
102
|
+
"defense_rating": obj.get("defenseRating"),
|
103
|
+
"net_rating": obj.get("netRating"),
|
104
|
+
"team_stats": LineupUnitStats.from_dict(obj.get("teamStats")) if obj.get("teamStats") is not None else None,
|
105
|
+
"opponent_stats": LineupUnitStats.from_dict(obj.get("opponentStats")) if obj.get("opponentStats") is not None else None
|
106
|
+
})
|
107
|
+
return _obj
|
108
|
+
|
109
|
+
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
College Basketball Data API
|
5
|
+
|
6
|
+
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
|
+
Contact: admin@collegefootballdata.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
|
22
|
+
from typing import Union
|
23
|
+
from pydantic import BaseModel, Field, StrictFloat, StrictInt
|
24
|
+
from cbbd.models.lineup_unit_stats_four_factors import LineupUnitStatsFourFactors
|
25
|
+
from cbbd.models.lineup_unit_stats_two_pointers import LineupUnitStatsTwoPointers
|
26
|
+
from cbbd.models.shooting_stats import ShootingStats
|
27
|
+
|
28
|
+
class LineupUnitStats(BaseModel):
|
29
|
+
"""
|
30
|
+
LineupUnitStats
|
31
|
+
"""
|
32
|
+
possessions: StrictInt = Field(...)
|
33
|
+
points: StrictInt = Field(...)
|
34
|
+
blocks: StrictInt = Field(...)
|
35
|
+
assists: StrictInt = Field(...)
|
36
|
+
steals: StrictInt = Field(...)
|
37
|
+
turnovers: StrictInt = Field(...)
|
38
|
+
defensive_rebounds: StrictInt = Field(default=..., alias="defensiveRebounds")
|
39
|
+
offensive_rebounds: StrictInt = Field(default=..., alias="offensiveRebounds")
|
40
|
+
true_shooting: Union[StrictFloat, StrictInt] = Field(default=..., alias="trueShooting")
|
41
|
+
field_goals: ShootingStats = Field(default=..., alias="fieldGoals")
|
42
|
+
two_pointers: LineupUnitStatsTwoPointers = Field(default=..., alias="twoPointers")
|
43
|
+
three_pointers: ShootingStats = Field(default=..., alias="threePointers")
|
44
|
+
free_throws: ShootingStats = Field(default=..., alias="freeThrows")
|
45
|
+
four_factors: LineupUnitStatsFourFactors = Field(default=..., alias="fourFactors")
|
46
|
+
__properties = ["possessions", "points", "blocks", "assists", "steals", "turnovers", "defensiveRebounds", "offensiveRebounds", "trueShooting", "fieldGoals", "twoPointers", "threePointers", "freeThrows", "fourFactors"]
|
47
|
+
|
48
|
+
class Config:
|
49
|
+
"""Pydantic configuration"""
|
50
|
+
allow_population_by_field_name = True
|
51
|
+
validate_assignment = True
|
52
|
+
|
53
|
+
def to_str(self) -> str:
|
54
|
+
"""Returns the string representation of the model using alias"""
|
55
|
+
return pprint.pformat(self.dict(by_alias=True))
|
56
|
+
|
57
|
+
def to_json(self) -> str:
|
58
|
+
"""Returns the JSON representation of the model using alias"""
|
59
|
+
return json.dumps(self.to_dict())
|
60
|
+
|
61
|
+
@classmethod
|
62
|
+
def from_json(cls, json_str: str) -> LineupUnitStats:
|
63
|
+
"""Create an instance of LineupUnitStats from a JSON string"""
|
64
|
+
return cls.from_dict(json.loads(json_str))
|
65
|
+
|
66
|
+
def to_dict(self):
|
67
|
+
"""Returns the dictionary representation of the model using alias"""
|
68
|
+
_dict = self.dict(by_alias=True,
|
69
|
+
exclude={
|
70
|
+
},
|
71
|
+
exclude_none=True)
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of field_goals
|
73
|
+
if self.field_goals:
|
74
|
+
_dict['fieldGoals'] = self.field_goals.to_dict()
|
75
|
+
# override the default output from pydantic by calling `to_dict()` of two_pointers
|
76
|
+
if self.two_pointers:
|
77
|
+
_dict['twoPointers'] = self.two_pointers.to_dict()
|
78
|
+
# override the default output from pydantic by calling `to_dict()` of three_pointers
|
79
|
+
if self.three_pointers:
|
80
|
+
_dict['threePointers'] = self.three_pointers.to_dict()
|
81
|
+
# override the default output from pydantic by calling `to_dict()` of free_throws
|
82
|
+
if self.free_throws:
|
83
|
+
_dict['freeThrows'] = self.free_throws.to_dict()
|
84
|
+
# override the default output from pydantic by calling `to_dict()` of four_factors
|
85
|
+
if self.four_factors:
|
86
|
+
_dict['fourFactors'] = self.four_factors.to_dict()
|
87
|
+
return _dict
|
88
|
+
|
89
|
+
@classmethod
|
90
|
+
def from_dict(cls, obj: dict) -> LineupUnitStats:
|
91
|
+
"""Create an instance of LineupUnitStats from a dict"""
|
92
|
+
if obj is None:
|
93
|
+
return None
|
94
|
+
|
95
|
+
if not isinstance(obj, dict):
|
96
|
+
return LineupUnitStats.parse_obj(obj)
|
97
|
+
|
98
|
+
_obj = LineupUnitStats.parse_obj({
|
99
|
+
"possessions": obj.get("possessions"),
|
100
|
+
"points": obj.get("points"),
|
101
|
+
"blocks": obj.get("blocks"),
|
102
|
+
"assists": obj.get("assists"),
|
103
|
+
"steals": obj.get("steals"),
|
104
|
+
"turnovers": obj.get("turnovers"),
|
105
|
+
"defensive_rebounds": obj.get("defensiveRebounds"),
|
106
|
+
"offensive_rebounds": obj.get("offensiveRebounds"),
|
107
|
+
"true_shooting": obj.get("trueShooting"),
|
108
|
+
"field_goals": ShootingStats.from_dict(obj.get("fieldGoals")) if obj.get("fieldGoals") is not None else None,
|
109
|
+
"two_pointers": LineupUnitStatsTwoPointers.from_dict(obj.get("twoPointers")) if obj.get("twoPointers") is not None else None,
|
110
|
+
"three_pointers": ShootingStats.from_dict(obj.get("threePointers")) if obj.get("threePointers") is not None else None,
|
111
|
+
"free_throws": ShootingStats.from_dict(obj.get("freeThrows")) if obj.get("freeThrows") is not None else None,
|
112
|
+
"four_factors": LineupUnitStatsFourFactors.from_dict(obj.get("fourFactors")) if obj.get("fourFactors") is not None else None
|
113
|
+
})
|
114
|
+
return _obj
|
115
|
+
|
116
|
+
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
College Basketball Data API
|
5
|
+
|
6
|
+
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
|
+
Contact: admin@collegefootballdata.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
|
22
|
+
from typing import Union
|
23
|
+
from pydantic import BaseModel, Field, StrictFloat, StrictInt
|
24
|
+
|
25
|
+
class LineupUnitStatsFourFactors(BaseModel):
|
26
|
+
"""
|
27
|
+
LineupUnitStatsFourFactors
|
28
|
+
"""
|
29
|
+
free_throw_rate: Union[StrictFloat, StrictInt] = Field(default=..., alias="freeThrowRate")
|
30
|
+
offensive_rebound_pct: Union[StrictFloat, StrictInt] = Field(default=..., alias="offensiveReboundPct")
|
31
|
+
turnover_ratio: Union[StrictFloat, StrictInt] = Field(default=..., alias="turnoverRatio")
|
32
|
+
effective_field_goal_pct: Union[StrictFloat, StrictInt] = Field(default=..., alias="effectiveFieldGoalPct")
|
33
|
+
__properties = ["freeThrowRate", "offensiveReboundPct", "turnoverRatio", "effectiveFieldGoalPct"]
|
34
|
+
|
35
|
+
class Config:
|
36
|
+
"""Pydantic configuration"""
|
37
|
+
allow_population_by_field_name = True
|
38
|
+
validate_assignment = True
|
39
|
+
|
40
|
+
def to_str(self) -> str:
|
41
|
+
"""Returns the string representation of the model using alias"""
|
42
|
+
return pprint.pformat(self.dict(by_alias=True))
|
43
|
+
|
44
|
+
def to_json(self) -> str:
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
46
|
+
return json.dumps(self.to_dict())
|
47
|
+
|
48
|
+
@classmethod
|
49
|
+
def from_json(cls, json_str: str) -> LineupUnitStatsFourFactors:
|
50
|
+
"""Create an instance of LineupUnitStatsFourFactors from a JSON string"""
|
51
|
+
return cls.from_dict(json.loads(json_str))
|
52
|
+
|
53
|
+
def to_dict(self):
|
54
|
+
"""Returns the dictionary representation of the model using alias"""
|
55
|
+
_dict = self.dict(by_alias=True,
|
56
|
+
exclude={
|
57
|
+
},
|
58
|
+
exclude_none=True)
|
59
|
+
return _dict
|
60
|
+
|
61
|
+
@classmethod
|
62
|
+
def from_dict(cls, obj: dict) -> LineupUnitStatsFourFactors:
|
63
|
+
"""Create an instance of LineupUnitStatsFourFactors from a dict"""
|
64
|
+
if obj is None:
|
65
|
+
return None
|
66
|
+
|
67
|
+
if not isinstance(obj, dict):
|
68
|
+
return LineupUnitStatsFourFactors.parse_obj(obj)
|
69
|
+
|
70
|
+
_obj = LineupUnitStatsFourFactors.parse_obj({
|
71
|
+
"free_throw_rate": obj.get("freeThrowRate"),
|
72
|
+
"offensive_rebound_pct": obj.get("offensiveReboundPct"),
|
73
|
+
"turnover_ratio": obj.get("turnoverRatio"),
|
74
|
+
"effective_field_goal_pct": obj.get("effectiveFieldGoalPct")
|
75
|
+
})
|
76
|
+
return _obj
|
77
|
+
|
78
|
+
|
@@ -0,0 +1,97 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
College Basketball Data API
|
5
|
+
|
6
|
+
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
|
+
Contact: admin@collegefootballdata.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
|
22
|
+
from typing import Union
|
23
|
+
from pydantic import BaseModel, Field, StrictFloat, StrictInt
|
24
|
+
from cbbd.models.shooting_stats import ShootingStats
|
25
|
+
|
26
|
+
class LineupUnitStatsTwoPointers(BaseModel):
|
27
|
+
"""
|
28
|
+
LineupUnitStatsTwoPointers
|
29
|
+
"""
|
30
|
+
made: StrictInt = Field(...)
|
31
|
+
attempted: StrictInt = Field(...)
|
32
|
+
pct: Union[StrictFloat, StrictInt] = Field(...)
|
33
|
+
jumpers: ShootingStats = Field(...)
|
34
|
+
layups: ShootingStats = Field(...)
|
35
|
+
dunks: ShootingStats = Field(...)
|
36
|
+
tip_ins: ShootingStats = Field(default=..., alias="tipIns")
|
37
|
+
__properties = ["made", "attempted", "pct", "jumpers", "layups", "dunks", "tipIns"]
|
38
|
+
|
39
|
+
class Config:
|
40
|
+
"""Pydantic configuration"""
|
41
|
+
allow_population_by_field_name = True
|
42
|
+
validate_assignment = True
|
43
|
+
|
44
|
+
def to_str(self) -> str:
|
45
|
+
"""Returns the string representation of the model using alias"""
|
46
|
+
return pprint.pformat(self.dict(by_alias=True))
|
47
|
+
|
48
|
+
def to_json(self) -> str:
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
50
|
+
return json.dumps(self.to_dict())
|
51
|
+
|
52
|
+
@classmethod
|
53
|
+
def from_json(cls, json_str: str) -> LineupUnitStatsTwoPointers:
|
54
|
+
"""Create an instance of LineupUnitStatsTwoPointers from a JSON string"""
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
56
|
+
|
57
|
+
def to_dict(self):
|
58
|
+
"""Returns the dictionary representation of the model using alias"""
|
59
|
+
_dict = self.dict(by_alias=True,
|
60
|
+
exclude={
|
61
|
+
},
|
62
|
+
exclude_none=True)
|
63
|
+
# override the default output from pydantic by calling `to_dict()` of jumpers
|
64
|
+
if self.jumpers:
|
65
|
+
_dict['jumpers'] = self.jumpers.to_dict()
|
66
|
+
# override the default output from pydantic by calling `to_dict()` of layups
|
67
|
+
if self.layups:
|
68
|
+
_dict['layups'] = self.layups.to_dict()
|
69
|
+
# override the default output from pydantic by calling `to_dict()` of dunks
|
70
|
+
if self.dunks:
|
71
|
+
_dict['dunks'] = self.dunks.to_dict()
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of tip_ins
|
73
|
+
if self.tip_ins:
|
74
|
+
_dict['tipIns'] = self.tip_ins.to_dict()
|
75
|
+
return _dict
|
76
|
+
|
77
|
+
@classmethod
|
78
|
+
def from_dict(cls, obj: dict) -> LineupUnitStatsTwoPointers:
|
79
|
+
"""Create an instance of LineupUnitStatsTwoPointers from a dict"""
|
80
|
+
if obj is None:
|
81
|
+
return None
|
82
|
+
|
83
|
+
if not isinstance(obj, dict):
|
84
|
+
return LineupUnitStatsTwoPointers.parse_obj(obj)
|
85
|
+
|
86
|
+
_obj = LineupUnitStatsTwoPointers.parse_obj({
|
87
|
+
"made": obj.get("made"),
|
88
|
+
"attempted": obj.get("attempted"),
|
89
|
+
"pct": obj.get("pct"),
|
90
|
+
"jumpers": ShootingStats.from_dict(obj.get("jumpers")) if obj.get("jumpers") is not None else None,
|
91
|
+
"layups": ShootingStats.from_dict(obj.get("layups")) if obj.get("layups") is not None else None,
|
92
|
+
"dunks": ShootingStats.from_dict(obj.get("dunks")) if obj.get("dunks") is not None else None,
|
93
|
+
"tip_ins": ShootingStats.from_dict(obj.get("tipIns")) if obj.get("tipIns") is not None else None
|
94
|
+
})
|
95
|
+
return _obj
|
96
|
+
|
97
|
+
|
cbbd/models/play_info.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/play_type_info.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/poll_team_info.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/recruit.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 1.18.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|