cbbd 1.12.0__py3-none-any.whl → 1.13.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- cbbd/__init__.py +7 -2
- cbbd/api/__init__.py +1 -0
- cbbd/api/conferences_api.py +1 -1
- cbbd/api/draft_api.py +477 -0
- cbbd/api/games_api.py +1 -1
- cbbd/api/lines_api.py +1 -1
- cbbd/api/plays_api.py +1 -1
- cbbd/api/rankings_api.py +1 -1
- cbbd/api/ratings_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 +5 -1
- cbbd/models/adjusted_efficiency_info.py +9 -3
- cbbd/models/adjusted_efficiency_info_rankings.py +76 -0
- 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 +154 -0
- cbbd/models/draft_position.py +74 -0
- cbbd/models/draft_team.py +82 -0
- 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/play_info.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/poll_team_info.py +1 -1
- cbbd/models/season_type.py +1 -1
- 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 +6 -2
- 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.12.0.dist-info → cbbd-1.13.0.dist-info}/METADATA +1 -1
- cbbd-1.13.0.dist-info/RECORD +67 -0
- cbbd-1.12.0.dist-info/RECORD +0 -62
- {cbbd-1.12.0.dist-info → cbbd-1.13.0.dist-info}/WHEEL +0 -0
- {cbbd-1.12.0.dist-info → cbbd-1.13.0.dist-info}/top_level.txt +0 -0
cbbd/models/__init__.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
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.
|
8
8
|
|
9
|
-
The version of the OpenAPI document: 1.
|
9
|
+
The version of the OpenAPI document: 1.13.0
|
10
10
|
Contact: admin@collegefootballdata.com
|
11
11
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
12
12
|
|
@@ -16,9 +16,13 @@
|
|
16
16
|
|
17
17
|
# import models into model package
|
18
18
|
from cbbd.models.adjusted_efficiency_info import AdjustedEfficiencyInfo
|
19
|
+
from cbbd.models.adjusted_efficiency_info_rankings import AdjustedEfficiencyInfoRankings
|
19
20
|
from cbbd.models.conference_history import ConferenceHistory
|
20
21
|
from cbbd.models.conference_history_teams_inner import ConferenceHistoryTeamsInner
|
21
22
|
from cbbd.models.conference_info import ConferenceInfo
|
23
|
+
from cbbd.models.draft_pick import DraftPick
|
24
|
+
from cbbd.models.draft_position import DraftPosition
|
25
|
+
from cbbd.models.draft_team import DraftTeam
|
22
26
|
from cbbd.models.game_box_score_players import GameBoxScorePlayers
|
23
27
|
from cbbd.models.game_box_score_players_players_inner import GameBoxScorePlayersPlayersInner
|
24
28
|
from cbbd.models.game_box_score_team import GameBoxScoreTeam
|
@@ -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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -21,6 +21,7 @@ import json
|
|
21
21
|
|
22
22
|
from typing import Union
|
23
23
|
from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr
|
24
|
+
from cbbd.models.adjusted_efficiency_info_rankings import AdjustedEfficiencyInfoRankings
|
24
25
|
|
25
26
|
class AdjustedEfficiencyInfo(BaseModel):
|
26
27
|
"""
|
@@ -33,7 +34,8 @@ class AdjustedEfficiencyInfo(BaseModel):
|
|
33
34
|
offensive_rating: Union[StrictFloat, StrictInt] = Field(default=..., alias="offensiveRating")
|
34
35
|
defensive_rating: Union[StrictFloat, StrictInt] = Field(default=..., alias="defensiveRating")
|
35
36
|
net_rating: Union[StrictFloat, StrictInt] = Field(default=..., alias="netRating")
|
36
|
-
|
37
|
+
rankings: AdjustedEfficiencyInfoRankings = Field(...)
|
38
|
+
__properties = ["season", "teamId", "team", "conference", "offensiveRating", "defensiveRating", "netRating", "rankings"]
|
37
39
|
|
38
40
|
class Config:
|
39
41
|
"""Pydantic configuration"""
|
@@ -59,6 +61,9 @@ class AdjustedEfficiencyInfo(BaseModel):
|
|
59
61
|
exclude={
|
60
62
|
},
|
61
63
|
exclude_none=True)
|
64
|
+
# override the default output from pydantic by calling `to_dict()` of rankings
|
65
|
+
if self.rankings:
|
66
|
+
_dict['rankings'] = self.rankings.to_dict()
|
62
67
|
return _dict
|
63
68
|
|
64
69
|
@classmethod
|
@@ -77,7 +82,8 @@ class AdjustedEfficiencyInfo(BaseModel):
|
|
77
82
|
"conference": obj.get("conference"),
|
78
83
|
"offensive_rating": obj.get("offensiveRating"),
|
79
84
|
"defensive_rating": obj.get("defensiveRating"),
|
80
|
-
"net_rating": obj.get("netRating")
|
85
|
+
"net_rating": obj.get("netRating"),
|
86
|
+
"rankings": AdjustedEfficiencyInfoRankings.from_dict(obj.get("rankings")) if obj.get("rankings") is not None else None
|
81
87
|
})
|
82
88
|
return _obj
|
83
89
|
|
@@ -0,0 +1,76 @@
|
|
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.13.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 AdjustedEfficiencyInfoRankings(BaseModel):
|
26
|
+
"""
|
27
|
+
AdjustedEfficiencyInfoRankings
|
28
|
+
"""
|
29
|
+
net: Union[StrictFloat, StrictInt] = Field(...)
|
30
|
+
defense: Union[StrictFloat, StrictInt] = Field(...)
|
31
|
+
offense: Union[StrictFloat, StrictInt] = Field(...)
|
32
|
+
__properties = ["net", "defense", "offense"]
|
33
|
+
|
34
|
+
class Config:
|
35
|
+
"""Pydantic configuration"""
|
36
|
+
allow_population_by_field_name = True
|
37
|
+
validate_assignment = True
|
38
|
+
|
39
|
+
def to_str(self) -> str:
|
40
|
+
"""Returns the string representation of the model using alias"""
|
41
|
+
return pprint.pformat(self.dict(by_alias=True))
|
42
|
+
|
43
|
+
def to_json(self) -> str:
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
45
|
+
return json.dumps(self.to_dict())
|
46
|
+
|
47
|
+
@classmethod
|
48
|
+
def from_json(cls, json_str: str) -> AdjustedEfficiencyInfoRankings:
|
49
|
+
"""Create an instance of AdjustedEfficiencyInfoRankings from a JSON string"""
|
50
|
+
return cls.from_dict(json.loads(json_str))
|
51
|
+
|
52
|
+
def to_dict(self):
|
53
|
+
"""Returns the dictionary representation of the model using alias"""
|
54
|
+
_dict = self.dict(by_alias=True,
|
55
|
+
exclude={
|
56
|
+
},
|
57
|
+
exclude_none=True)
|
58
|
+
return _dict
|
59
|
+
|
60
|
+
@classmethod
|
61
|
+
def from_dict(cls, obj: dict) -> AdjustedEfficiencyInfoRankings:
|
62
|
+
"""Create an instance of AdjustedEfficiencyInfoRankings from a dict"""
|
63
|
+
if obj is None:
|
64
|
+
return None
|
65
|
+
|
66
|
+
if not isinstance(obj, dict):
|
67
|
+
return AdjustedEfficiencyInfoRankings.parse_obj(obj)
|
68
|
+
|
69
|
+
_obj = AdjustedEfficiencyInfoRankings.parse_obj({
|
70
|
+
"net": obj.get("net"),
|
71
|
+
"defense": obj.get("defense"),
|
72
|
+
"offense": obj.get("offense")
|
73
|
+
})
|
74
|
+
return _obj
|
75
|
+
|
76
|
+
|
@@ -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.13.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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/conference_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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -0,0 +1,154 @@
|
|
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.13.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 Optional, Union
|
23
|
+
from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr
|
24
|
+
|
25
|
+
class DraftPick(BaseModel):
|
26
|
+
"""
|
27
|
+
DraftPick
|
28
|
+
"""
|
29
|
+
athlete_id: Optional[StrictInt] = Field(default=..., alias="athleteId")
|
30
|
+
source_team_id: Optional[StrictInt] = Field(default=..., alias="sourceTeamId")
|
31
|
+
source_team_location: Optional[StrictStr] = Field(default=..., alias="sourceTeamLocation")
|
32
|
+
source_team_name: Optional[StrictStr] = Field(default=..., alias="sourceTeamName")
|
33
|
+
source_team_league_affiliation: Optional[StrictStr] = Field(default=..., alias="sourceTeamLeagueAffiliation")
|
34
|
+
source_team_college_id: Optional[Union[StrictFloat, StrictInt]] = Field(default=..., alias="sourceTeamCollegeId")
|
35
|
+
draft_team_id: Union[StrictFloat, StrictInt] = Field(default=..., alias="draftTeamId")
|
36
|
+
draft_team: StrictStr = Field(default=..., alias="draftTeam")
|
37
|
+
year: StrictInt = Field(...)
|
38
|
+
overall: StrictInt = Field(...)
|
39
|
+
round: StrictInt = Field(...)
|
40
|
+
pick: StrictInt = Field(...)
|
41
|
+
name: StrictStr = Field(...)
|
42
|
+
overall_rank: Optional[StrictInt] = Field(default=..., alias="overallRank")
|
43
|
+
position_rank: Optional[StrictInt] = Field(default=..., alias="positionRank")
|
44
|
+
height: Optional[StrictInt] = Field(...)
|
45
|
+
weight: Optional[StrictInt] = Field(...)
|
46
|
+
__properties = ["athleteId", "sourceTeamId", "sourceTeamLocation", "sourceTeamName", "sourceTeamLeagueAffiliation", "sourceTeamCollegeId", "draftTeamId", "draftTeam", "year", "overall", "round", "pick", "name", "overallRank", "positionRank", "height", "weight"]
|
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) -> DraftPick:
|
63
|
+
"""Create an instance of DraftPick 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
|
+
# set to None if athlete_id (nullable) is None
|
73
|
+
# and __fields_set__ contains the field
|
74
|
+
if self.athlete_id is None and "athlete_id" in self.__fields_set__:
|
75
|
+
_dict['athleteId'] = None
|
76
|
+
|
77
|
+
# set to None if source_team_id (nullable) is None
|
78
|
+
# and __fields_set__ contains the field
|
79
|
+
if self.source_team_id is None and "source_team_id" in self.__fields_set__:
|
80
|
+
_dict['sourceTeamId'] = None
|
81
|
+
|
82
|
+
# set to None if source_team_location (nullable) is None
|
83
|
+
# and __fields_set__ contains the field
|
84
|
+
if self.source_team_location is None and "source_team_location" in self.__fields_set__:
|
85
|
+
_dict['sourceTeamLocation'] = None
|
86
|
+
|
87
|
+
# set to None if source_team_name (nullable) is None
|
88
|
+
# and __fields_set__ contains the field
|
89
|
+
if self.source_team_name is None and "source_team_name" in self.__fields_set__:
|
90
|
+
_dict['sourceTeamName'] = None
|
91
|
+
|
92
|
+
# set to None if source_team_league_affiliation (nullable) is None
|
93
|
+
# and __fields_set__ contains the field
|
94
|
+
if self.source_team_league_affiliation is None and "source_team_league_affiliation" in self.__fields_set__:
|
95
|
+
_dict['sourceTeamLeagueAffiliation'] = None
|
96
|
+
|
97
|
+
# set to None if source_team_college_id (nullable) is None
|
98
|
+
# and __fields_set__ contains the field
|
99
|
+
if self.source_team_college_id is None and "source_team_college_id" in self.__fields_set__:
|
100
|
+
_dict['sourceTeamCollegeId'] = None
|
101
|
+
|
102
|
+
# set to None if overall_rank (nullable) is None
|
103
|
+
# and __fields_set__ contains the field
|
104
|
+
if self.overall_rank is None and "overall_rank" in self.__fields_set__:
|
105
|
+
_dict['overallRank'] = None
|
106
|
+
|
107
|
+
# set to None if position_rank (nullable) is None
|
108
|
+
# and __fields_set__ contains the field
|
109
|
+
if self.position_rank is None and "position_rank" in self.__fields_set__:
|
110
|
+
_dict['positionRank'] = None
|
111
|
+
|
112
|
+
# set to None if height (nullable) is None
|
113
|
+
# and __fields_set__ contains the field
|
114
|
+
if self.height is None and "height" in self.__fields_set__:
|
115
|
+
_dict['height'] = None
|
116
|
+
|
117
|
+
# set to None if weight (nullable) is None
|
118
|
+
# and __fields_set__ contains the field
|
119
|
+
if self.weight is None and "weight" in self.__fields_set__:
|
120
|
+
_dict['weight'] = None
|
121
|
+
|
122
|
+
return _dict
|
123
|
+
|
124
|
+
@classmethod
|
125
|
+
def from_dict(cls, obj: dict) -> DraftPick:
|
126
|
+
"""Create an instance of DraftPick from a dict"""
|
127
|
+
if obj is None:
|
128
|
+
return None
|
129
|
+
|
130
|
+
if not isinstance(obj, dict):
|
131
|
+
return DraftPick.parse_obj(obj)
|
132
|
+
|
133
|
+
_obj = DraftPick.parse_obj({
|
134
|
+
"athlete_id": obj.get("athleteId"),
|
135
|
+
"source_team_id": obj.get("sourceTeamId"),
|
136
|
+
"source_team_location": obj.get("sourceTeamLocation"),
|
137
|
+
"source_team_name": obj.get("sourceTeamName"),
|
138
|
+
"source_team_league_affiliation": obj.get("sourceTeamLeagueAffiliation"),
|
139
|
+
"source_team_college_id": obj.get("sourceTeamCollegeId"),
|
140
|
+
"draft_team_id": obj.get("draftTeamId"),
|
141
|
+
"draft_team": obj.get("draftTeam"),
|
142
|
+
"year": obj.get("year"),
|
143
|
+
"overall": obj.get("overall"),
|
144
|
+
"round": obj.get("round"),
|
145
|
+
"pick": obj.get("pick"),
|
146
|
+
"name": obj.get("name"),
|
147
|
+
"overall_rank": obj.get("overallRank"),
|
148
|
+
"position_rank": obj.get("positionRank"),
|
149
|
+
"height": obj.get("height"),
|
150
|
+
"weight": obj.get("weight")
|
151
|
+
})
|
152
|
+
return _obj
|
153
|
+
|
154
|
+
|
@@ -0,0 +1,74 @@
|
|
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.13.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
|
+
|
23
|
+
from pydantic import BaseModel, Field, StrictStr
|
24
|
+
|
25
|
+
class DraftPosition(BaseModel):
|
26
|
+
"""
|
27
|
+
DraftPosition
|
28
|
+
"""
|
29
|
+
name: StrictStr = Field(...)
|
30
|
+
abbreviation: StrictStr = Field(...)
|
31
|
+
__properties = ["name", "abbreviation"]
|
32
|
+
|
33
|
+
class Config:
|
34
|
+
"""Pydantic configuration"""
|
35
|
+
allow_population_by_field_name = True
|
36
|
+
validate_assignment = True
|
37
|
+
|
38
|
+
def to_str(self) -> str:
|
39
|
+
"""Returns the string representation of the model using alias"""
|
40
|
+
return pprint.pformat(self.dict(by_alias=True))
|
41
|
+
|
42
|
+
def to_json(self) -> str:
|
43
|
+
"""Returns the JSON representation of the model using alias"""
|
44
|
+
return json.dumps(self.to_dict())
|
45
|
+
|
46
|
+
@classmethod
|
47
|
+
def from_json(cls, json_str: str) -> DraftPosition:
|
48
|
+
"""Create an instance of DraftPosition from a JSON string"""
|
49
|
+
return cls.from_dict(json.loads(json_str))
|
50
|
+
|
51
|
+
def to_dict(self):
|
52
|
+
"""Returns the dictionary representation of the model using alias"""
|
53
|
+
_dict = self.dict(by_alias=True,
|
54
|
+
exclude={
|
55
|
+
},
|
56
|
+
exclude_none=True)
|
57
|
+
return _dict
|
58
|
+
|
59
|
+
@classmethod
|
60
|
+
def from_dict(cls, obj: dict) -> DraftPosition:
|
61
|
+
"""Create an instance of DraftPosition from a dict"""
|
62
|
+
if obj is None:
|
63
|
+
return None
|
64
|
+
|
65
|
+
if not isinstance(obj, dict):
|
66
|
+
return DraftPosition.parse_obj(obj)
|
67
|
+
|
68
|
+
_obj = DraftPosition.parse_obj({
|
69
|
+
"name": obj.get("name"),
|
70
|
+
"abbreviation": obj.get("abbreviation")
|
71
|
+
})
|
72
|
+
return _obj
|
73
|
+
|
74
|
+
|
@@ -0,0 +1,82 @@
|
|
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.13.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, StrictStr
|
24
|
+
|
25
|
+
class DraftTeam(BaseModel):
|
26
|
+
"""
|
27
|
+
DraftTeam
|
28
|
+
"""
|
29
|
+
id: StrictInt = Field(...)
|
30
|
+
source_id: Union[StrictFloat, StrictInt] = Field(default=..., alias="sourceId")
|
31
|
+
location: StrictStr = Field(...)
|
32
|
+
name: StrictStr = Field(...)
|
33
|
+
display_name: StrictStr = Field(default=..., alias="displayName")
|
34
|
+
abbreviation: StrictStr = Field(...)
|
35
|
+
__properties = ["id", "sourceId", "location", "name", "displayName", "abbreviation"]
|
36
|
+
|
37
|
+
class Config:
|
38
|
+
"""Pydantic configuration"""
|
39
|
+
allow_population_by_field_name = True
|
40
|
+
validate_assignment = True
|
41
|
+
|
42
|
+
def to_str(self) -> str:
|
43
|
+
"""Returns the string representation of the model using alias"""
|
44
|
+
return pprint.pformat(self.dict(by_alias=True))
|
45
|
+
|
46
|
+
def to_json(self) -> str:
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
48
|
+
return json.dumps(self.to_dict())
|
49
|
+
|
50
|
+
@classmethod
|
51
|
+
def from_json(cls, json_str: str) -> DraftTeam:
|
52
|
+
"""Create an instance of DraftTeam from a JSON string"""
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
54
|
+
|
55
|
+
def to_dict(self):
|
56
|
+
"""Returns the dictionary representation of the model using alias"""
|
57
|
+
_dict = self.dict(by_alias=True,
|
58
|
+
exclude={
|
59
|
+
},
|
60
|
+
exclude_none=True)
|
61
|
+
return _dict
|
62
|
+
|
63
|
+
@classmethod
|
64
|
+
def from_dict(cls, obj: dict) -> DraftTeam:
|
65
|
+
"""Create an instance of DraftTeam from a dict"""
|
66
|
+
if obj is None:
|
67
|
+
return None
|
68
|
+
|
69
|
+
if not isinstance(obj, dict):
|
70
|
+
return DraftTeam.parse_obj(obj)
|
71
|
+
|
72
|
+
_obj = DraftTeam.parse_obj({
|
73
|
+
"id": obj.get("id"),
|
74
|
+
"source_id": obj.get("sourceId"),
|
75
|
+
"location": obj.get("location"),
|
76
|
+
"name": obj.get("name"),
|
77
|
+
"display_name": obj.get("displayName"),
|
78
|
+
"abbreviation": obj.get("abbreviation")
|
79
|
+
})
|
80
|
+
return _obj
|
81
|
+
|
82
|
+
|
@@ -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.13.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.13.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.13.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.13.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.13.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.13.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.13.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.13.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.13.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.13.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.13.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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
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.13.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.13.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.13.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.13.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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|