cbbd 1.2.0__py3-none-any.whl → 1.4.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 +8 -2
- cbbd/api/__init__.py +2 -0
- cbbd/api/conferences_api.py +1 -1
- cbbd/api/games_api.py +1 -1
- cbbd/api/lines_api.py +358 -0
- cbbd/api/plays_api.py +1 -1
- cbbd/api/ratings_api.py +203 -0
- 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/conference_history.py +1 -1
- cbbd/models/conference_history_teams_inner.py +1 -1
- cbbd/models/conference_info.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 +114 -0
- cbbd/models/game_lines.py +125 -0
- 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 +74 -0
- 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/season_type.py +1 -1
- cbbd/models/srs_info.py +80 -0
- 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.2.0.dist-info → cbbd-1.4.0.dist-info}/METADATA +1 -1
- cbbd-1.4.0.dist-info/RECORD +55 -0
- cbbd-1.2.0.dist-info/RECORD +0 -49
- {cbbd-1.2.0.dist-info → cbbd-1.4.0.dist-info}/WHEEL +0 -0
- {cbbd-1.2.0.dist-info → cbbd-1.4.0.dist-info}/top_level.txt +0 -0
cbbd/api_client.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.4.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -78,7 +78,7 @@ class ApiClient:
|
|
78
78
|
self.default_headers[header_name] = header_value
|
79
79
|
self.cookie = cookie
|
80
80
|
# Set default User-Agent.
|
81
|
-
self.user_agent = 'OpenAPI-Generator/1.
|
81
|
+
self.user_agent = 'OpenAPI-Generator/1.4.0/python'
|
82
82
|
self.client_side_validation = configuration.client_side_validation
|
83
83
|
|
84
84
|
def __enter__(self):
|
cbbd/configuration.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.4.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -376,8 +376,8 @@ class Configuration:
|
|
376
376
|
return "Python SDK Debug Report:\n"\
|
377
377
|
"OS: {env}\n"\
|
378
378
|
"Python Version: {pyversion}\n"\
|
379
|
-
"Version of the API: 1.
|
380
|
-
"SDK Package Version: 1.
|
379
|
+
"Version of the API: 1.4.0\n"\
|
380
|
+
"SDK Package Version: 1.4.0".\
|
381
381
|
format(env=sys.platform, pyversion=sys.version)
|
382
382
|
|
383
383
|
def get_host_settings(self):
|
cbbd/exceptions.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.4.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
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.4.0
|
10
10
|
Contact: admin@collegefootballdata.com
|
11
11
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
12
12
|
|
@@ -24,14 +24,18 @@ from cbbd.models.game_box_score_team import GameBoxScoreTeam
|
|
24
24
|
from cbbd.models.game_box_score_team_stats import GameBoxScoreTeamStats
|
25
25
|
from cbbd.models.game_box_score_team_stats_points import GameBoxScoreTeamStatsPoints
|
26
26
|
from cbbd.models.game_info import GameInfo
|
27
|
+
from cbbd.models.game_line_info import GameLineInfo
|
28
|
+
from cbbd.models.game_lines import GameLines
|
27
29
|
from cbbd.models.game_media_info import GameMediaInfo
|
28
30
|
from cbbd.models.game_media_info_broadcasts_inner import GameMediaInfoBroadcastsInner
|
29
31
|
from cbbd.models.game_status import GameStatus
|
32
|
+
from cbbd.models.line_provider_info import LineProviderInfo
|
30
33
|
from cbbd.models.play_info import PlayInfo
|
31
34
|
from cbbd.models.play_info_participants_inner import PlayInfoParticipantsInner
|
32
35
|
from cbbd.models.play_type_info import PlayTypeInfo
|
33
36
|
from cbbd.models.player_season_stats import PlayerSeasonStats
|
34
37
|
from cbbd.models.season_type import SeasonType
|
38
|
+
from cbbd.models.srs_info import SrsInfo
|
35
39
|
from cbbd.models.team_info import TeamInfo
|
36
40
|
from cbbd.models.team_roster import TeamRoster
|
37
41
|
from cbbd.models.team_roster_player import TeamRosterPlayer
|
@@ -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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -0,0 +1,114 @@
|
|
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.4.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 GameLineInfo(BaseModel):
|
26
|
+
"""
|
27
|
+
GameLineInfo
|
28
|
+
"""
|
29
|
+
provider: StrictStr = Field(...)
|
30
|
+
spread: Optional[Union[StrictFloat, StrictInt]] = Field(...)
|
31
|
+
over_under: Optional[Union[StrictFloat, StrictInt]] = Field(default=..., alias="overUnder")
|
32
|
+
home_moneyline: Optional[Union[StrictFloat, StrictInt]] = Field(default=..., alias="homeMoneyline")
|
33
|
+
away_moneyline: Optional[Union[StrictFloat, StrictInt]] = Field(default=..., alias="awayMoneyline")
|
34
|
+
spread_open: Optional[Union[StrictFloat, StrictInt]] = Field(default=..., alias="spreadOpen")
|
35
|
+
over_under_open: Optional[Union[StrictFloat, StrictInt]] = Field(default=..., alias="overUnderOpen")
|
36
|
+
__properties = ["provider", "spread", "overUnder", "homeMoneyline", "awayMoneyline", "spreadOpen", "overUnderOpen"]
|
37
|
+
|
38
|
+
class Config:
|
39
|
+
"""Pydantic configuration"""
|
40
|
+
allow_population_by_field_name = True
|
41
|
+
validate_assignment = True
|
42
|
+
|
43
|
+
def to_str(self) -> str:
|
44
|
+
"""Returns the string representation of the model using alias"""
|
45
|
+
return pprint.pformat(self.dict(by_alias=True))
|
46
|
+
|
47
|
+
def to_json(self) -> str:
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
49
|
+
return json.dumps(self.to_dict())
|
50
|
+
|
51
|
+
@classmethod
|
52
|
+
def from_json(cls, json_str: str) -> GameLineInfo:
|
53
|
+
"""Create an instance of GameLineInfo from a JSON string"""
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
55
|
+
|
56
|
+
def to_dict(self):
|
57
|
+
"""Returns the dictionary representation of the model using alias"""
|
58
|
+
_dict = self.dict(by_alias=True,
|
59
|
+
exclude={
|
60
|
+
},
|
61
|
+
exclude_none=True)
|
62
|
+
# set to None if spread (nullable) is None
|
63
|
+
# and __fields_set__ contains the field
|
64
|
+
if self.spread is None and "spread" in self.__fields_set__:
|
65
|
+
_dict['spread'] = None
|
66
|
+
|
67
|
+
# set to None if over_under (nullable) is None
|
68
|
+
# and __fields_set__ contains the field
|
69
|
+
if self.over_under is None and "over_under" in self.__fields_set__:
|
70
|
+
_dict['overUnder'] = None
|
71
|
+
|
72
|
+
# set to None if home_moneyline (nullable) is None
|
73
|
+
# and __fields_set__ contains the field
|
74
|
+
if self.home_moneyline is None and "home_moneyline" in self.__fields_set__:
|
75
|
+
_dict['homeMoneyline'] = None
|
76
|
+
|
77
|
+
# set to None if away_moneyline (nullable) is None
|
78
|
+
# and __fields_set__ contains the field
|
79
|
+
if self.away_moneyline is None and "away_moneyline" in self.__fields_set__:
|
80
|
+
_dict['awayMoneyline'] = None
|
81
|
+
|
82
|
+
# set to None if spread_open (nullable) is None
|
83
|
+
# and __fields_set__ contains the field
|
84
|
+
if self.spread_open is None and "spread_open" in self.__fields_set__:
|
85
|
+
_dict['spreadOpen'] = None
|
86
|
+
|
87
|
+
# set to None if over_under_open (nullable) is None
|
88
|
+
# and __fields_set__ contains the field
|
89
|
+
if self.over_under_open is None and "over_under_open" in self.__fields_set__:
|
90
|
+
_dict['overUnderOpen'] = None
|
91
|
+
|
92
|
+
return _dict
|
93
|
+
|
94
|
+
@classmethod
|
95
|
+
def from_dict(cls, obj: dict) -> GameLineInfo:
|
96
|
+
"""Create an instance of GameLineInfo from a dict"""
|
97
|
+
if obj is None:
|
98
|
+
return None
|
99
|
+
|
100
|
+
if not isinstance(obj, dict):
|
101
|
+
return GameLineInfo.parse_obj(obj)
|
102
|
+
|
103
|
+
_obj = GameLineInfo.parse_obj({
|
104
|
+
"provider": obj.get("provider"),
|
105
|
+
"spread": obj.get("spread"),
|
106
|
+
"over_under": obj.get("overUnder"),
|
107
|
+
"home_moneyline": obj.get("homeMoneyline"),
|
108
|
+
"away_moneyline": obj.get("awayMoneyline"),
|
109
|
+
"spread_open": obj.get("spreadOpen"),
|
110
|
+
"over_under_open": obj.get("overUnderOpen")
|
111
|
+
})
|
112
|
+
return _obj
|
113
|
+
|
114
|
+
|
@@ -0,0 +1,125 @@
|
|
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.4.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
|
+
from datetime import datetime
|
22
|
+
from typing import List, Optional, Union
|
23
|
+
from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist
|
24
|
+
from cbbd.models.game_line_info import GameLineInfo
|
25
|
+
from cbbd.models.season_type import SeasonType
|
26
|
+
|
27
|
+
class GameLines(BaseModel):
|
28
|
+
"""
|
29
|
+
GameLines
|
30
|
+
"""
|
31
|
+
game_id: StrictInt = Field(default=..., alias="gameId")
|
32
|
+
season: StrictInt = Field(...)
|
33
|
+
season_type: SeasonType = Field(default=..., alias="seasonType")
|
34
|
+
start_date: datetime = Field(default=..., alias="startDate")
|
35
|
+
home_team_id: StrictInt = Field(default=..., alias="homeTeamId")
|
36
|
+
home_team: StrictStr = Field(default=..., alias="homeTeam")
|
37
|
+
home_conference: Optional[StrictStr] = Field(default=..., alias="homeConference")
|
38
|
+
home_score: Optional[Union[StrictFloat, StrictInt]] = Field(default=..., alias="homeScore")
|
39
|
+
away_team_id: StrictInt = Field(default=..., alias="awayTeamId")
|
40
|
+
away_team: StrictStr = Field(default=..., alias="awayTeam")
|
41
|
+
away_conference: Optional[StrictStr] = Field(default=..., alias="awayConference")
|
42
|
+
away_score: Optional[Union[StrictFloat, StrictInt]] = Field(default=..., alias="awayScore")
|
43
|
+
lines: conlist(GameLineInfo) = Field(...)
|
44
|
+
__properties = ["gameId", "season", "seasonType", "startDate", "homeTeamId", "homeTeam", "homeConference", "homeScore", "awayTeamId", "awayTeam", "awayConference", "awayScore", "lines"]
|
45
|
+
|
46
|
+
class Config:
|
47
|
+
"""Pydantic configuration"""
|
48
|
+
allow_population_by_field_name = True
|
49
|
+
validate_assignment = True
|
50
|
+
|
51
|
+
def to_str(self) -> str:
|
52
|
+
"""Returns the string representation of the model using alias"""
|
53
|
+
return pprint.pformat(self.dict(by_alias=True))
|
54
|
+
|
55
|
+
def to_json(self) -> str:
|
56
|
+
"""Returns the JSON representation of the model using alias"""
|
57
|
+
return json.dumps(self.to_dict())
|
58
|
+
|
59
|
+
@classmethod
|
60
|
+
def from_json(cls, json_str: str) -> GameLines:
|
61
|
+
"""Create an instance of GameLines from a JSON string"""
|
62
|
+
return cls.from_dict(json.loads(json_str))
|
63
|
+
|
64
|
+
def to_dict(self):
|
65
|
+
"""Returns the dictionary representation of the model using alias"""
|
66
|
+
_dict = self.dict(by_alias=True,
|
67
|
+
exclude={
|
68
|
+
},
|
69
|
+
exclude_none=True)
|
70
|
+
# override the default output from pydantic by calling `to_dict()` of each item in lines (list)
|
71
|
+
_items = []
|
72
|
+
if self.lines:
|
73
|
+
for _item in self.lines:
|
74
|
+
if _item:
|
75
|
+
_items.append(_item.to_dict())
|
76
|
+
_dict['lines'] = _items
|
77
|
+
# set to None if home_conference (nullable) is None
|
78
|
+
# and __fields_set__ contains the field
|
79
|
+
if self.home_conference is None and "home_conference" in self.__fields_set__:
|
80
|
+
_dict['homeConference'] = None
|
81
|
+
|
82
|
+
# set to None if home_score (nullable) is None
|
83
|
+
# and __fields_set__ contains the field
|
84
|
+
if self.home_score is None and "home_score" in self.__fields_set__:
|
85
|
+
_dict['homeScore'] = None
|
86
|
+
|
87
|
+
# set to None if away_conference (nullable) is None
|
88
|
+
# and __fields_set__ contains the field
|
89
|
+
if self.away_conference is None and "away_conference" in self.__fields_set__:
|
90
|
+
_dict['awayConference'] = None
|
91
|
+
|
92
|
+
# set to None if away_score (nullable) is None
|
93
|
+
# and __fields_set__ contains the field
|
94
|
+
if self.away_score is None and "away_score" in self.__fields_set__:
|
95
|
+
_dict['awayScore'] = None
|
96
|
+
|
97
|
+
return _dict
|
98
|
+
|
99
|
+
@classmethod
|
100
|
+
def from_dict(cls, obj: dict) -> GameLines:
|
101
|
+
"""Create an instance of GameLines from a dict"""
|
102
|
+
if obj is None:
|
103
|
+
return None
|
104
|
+
|
105
|
+
if not isinstance(obj, dict):
|
106
|
+
return GameLines.parse_obj(obj)
|
107
|
+
|
108
|
+
_obj = GameLines.parse_obj({
|
109
|
+
"game_id": obj.get("gameId"),
|
110
|
+
"season": obj.get("season"),
|
111
|
+
"season_type": obj.get("seasonType"),
|
112
|
+
"start_date": obj.get("startDate"),
|
113
|
+
"home_team_id": obj.get("homeTeamId"),
|
114
|
+
"home_team": obj.get("homeTeam"),
|
115
|
+
"home_conference": obj.get("homeConference"),
|
116
|
+
"home_score": obj.get("homeScore"),
|
117
|
+
"away_team_id": obj.get("awayTeamId"),
|
118
|
+
"away_team": obj.get("awayTeam"),
|
119
|
+
"away_conference": obj.get("awayConference"),
|
120
|
+
"away_score": obj.get("awayScore"),
|
121
|
+
"lines": [GameLineInfo.from_dict(_item) for _item in obj.get("lines")] if obj.get("lines") is not None else None
|
122
|
+
})
|
123
|
+
return _obj
|
124
|
+
|
125
|
+
|
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.4.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.4.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.4.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -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.4.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, StrictInt, StrictStr
|
24
|
+
|
25
|
+
class LineProviderInfo(BaseModel):
|
26
|
+
"""
|
27
|
+
LineProviderInfo
|
28
|
+
"""
|
29
|
+
id: StrictInt = Field(...)
|
30
|
+
name: StrictStr = Field(...)
|
31
|
+
__properties = ["id", "name"]
|
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) -> LineProviderInfo:
|
48
|
+
"""Create an instance of LineProviderInfo 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) -> LineProviderInfo:
|
61
|
+
"""Create an instance of LineProviderInfo from a dict"""
|
62
|
+
if obj is None:
|
63
|
+
return None
|
64
|
+
|
65
|
+
if not isinstance(obj, dict):
|
66
|
+
return LineProviderInfo.parse_obj(obj)
|
67
|
+
|
68
|
+
_obj = LineProviderInfo.parse_obj({
|
69
|
+
"id": obj.get("id"),
|
70
|
+
"name": obj.get("name")
|
71
|
+
})
|
72
|
+
return _obj
|
73
|
+
|
74
|
+
|
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.4.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.4.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.4.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.4.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/season_type.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.4.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/srs_info.py
ADDED
@@ -0,0 +1,80 @@
|
|
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.4.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 SrsInfo(BaseModel):
|
26
|
+
"""
|
27
|
+
SrsInfo
|
28
|
+
"""
|
29
|
+
season: StrictInt = Field(...)
|
30
|
+
team_id: StrictInt = Field(default=..., alias="teamId")
|
31
|
+
team: StrictStr = Field(...)
|
32
|
+
conference: StrictStr = Field(...)
|
33
|
+
rating: Union[StrictFloat, StrictInt] = Field(...)
|
34
|
+
__properties = ["season", "teamId", "team", "conference", "rating"]
|
35
|
+
|
36
|
+
class Config:
|
37
|
+
"""Pydantic configuration"""
|
38
|
+
allow_population_by_field_name = True
|
39
|
+
validate_assignment = True
|
40
|
+
|
41
|
+
def to_str(self) -> str:
|
42
|
+
"""Returns the string representation of the model using alias"""
|
43
|
+
return pprint.pformat(self.dict(by_alias=True))
|
44
|
+
|
45
|
+
def to_json(self) -> str:
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
47
|
+
return json.dumps(self.to_dict())
|
48
|
+
|
49
|
+
@classmethod
|
50
|
+
def from_json(cls, json_str: str) -> SrsInfo:
|
51
|
+
"""Create an instance of SrsInfo from a JSON string"""
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
53
|
+
|
54
|
+
def to_dict(self):
|
55
|
+
"""Returns the dictionary representation of the model using alias"""
|
56
|
+
_dict = self.dict(by_alias=True,
|
57
|
+
exclude={
|
58
|
+
},
|
59
|
+
exclude_none=True)
|
60
|
+
return _dict
|
61
|
+
|
62
|
+
@classmethod
|
63
|
+
def from_dict(cls, obj: dict) -> SrsInfo:
|
64
|
+
"""Create an instance of SrsInfo from a dict"""
|
65
|
+
if obj is None:
|
66
|
+
return None
|
67
|
+
|
68
|
+
if not isinstance(obj, dict):
|
69
|
+
return SrsInfo.parse_obj(obj)
|
70
|
+
|
71
|
+
_obj = SrsInfo.parse_obj({
|
72
|
+
"season": obj.get("season"),
|
73
|
+
"team_id": obj.get("teamId"),
|
74
|
+
"team": obj.get("team"),
|
75
|
+
"conference": obj.get("conference"),
|
76
|
+
"rating": obj.get("rating")
|
77
|
+
})
|
78
|
+
return _obj
|
79
|
+
|
80
|
+
|
cbbd/models/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.4.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/models/team_roster.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.4.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|