cbbd 1.1.3__py3-none-any.whl → 1.3.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 +11 -2
- cbbd/api/__init__.py +1 -0
- cbbd/api/conferences_api.py +146 -2
- cbbd/api/games_api.py +1 -1
- cbbd/api/lines_api.py +358 -0
- cbbd/api/plays_api.py +1 -1
- cbbd/api/stats_api.py +1 -1
- cbbd/api/teams_api.py +150 -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 +9 -1
- cbbd/models/conference_history.py +90 -0
- cbbd/models/conference_history_teams_inner.py +92 -0
- 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/team_info.py +1 -1
- cbbd/models/team_roster.py +95 -0
- cbbd/models/team_roster_player.py +135 -0
- cbbd/models/team_roster_player_hometown.py +91 -0
- 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.1.3.dist-info → cbbd-1.3.0.dist-info}/METADATA +1 -1
- cbbd-1.3.0.dist-info/RECORD +53 -0
- cbbd-1.1.3.dist-info/RECORD +0 -44
- {cbbd-1.1.3.dist-info → cbbd-1.3.0.dist-info}/WHEEL +0 -0
- {cbbd-1.1.3.dist-info → cbbd-1.3.0.dist-info}/top_level.txt +0 -0
cbbd/__init__.py
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
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.
|
9
9
|
|
10
|
-
The version of the OpenAPI document: 1.
|
10
|
+
The version of the OpenAPI document: 1.3.0
|
11
11
|
Contact: admin@collegefootballdata.com
|
12
12
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
13
13
|
|
@@ -15,11 +15,12 @@
|
|
15
15
|
""" # noqa: E501
|
16
16
|
|
17
17
|
|
18
|
-
__version__ = "1.
|
18
|
+
__version__ = "1.3.0"
|
19
19
|
|
20
20
|
# import apis into sdk package
|
21
21
|
from cbbd.api.conferences_api import ConferencesApi
|
22
22
|
from cbbd.api.games_api import GamesApi
|
23
|
+
from cbbd.api.lines_api import LinesApi
|
23
24
|
from cbbd.api.plays_api import PlaysApi
|
24
25
|
from cbbd.api.stats_api import StatsApi
|
25
26
|
from cbbd.api.teams_api import TeamsApi
|
@@ -37,6 +38,8 @@ from cbbd.exceptions import ApiAttributeError
|
|
37
38
|
from cbbd.exceptions import ApiException
|
38
39
|
|
39
40
|
# import models into sdk package
|
41
|
+
from cbbd.models.conference_history import ConferenceHistory
|
42
|
+
from cbbd.models.conference_history_teams_inner import ConferenceHistoryTeamsInner
|
40
43
|
from cbbd.models.conference_info import ConferenceInfo
|
41
44
|
from cbbd.models.game_box_score_players import GameBoxScorePlayers
|
42
45
|
from cbbd.models.game_box_score_players_players_inner import GameBoxScorePlayersPlayersInner
|
@@ -44,15 +47,21 @@ from cbbd.models.game_box_score_team import GameBoxScoreTeam
|
|
44
47
|
from cbbd.models.game_box_score_team_stats import GameBoxScoreTeamStats
|
45
48
|
from cbbd.models.game_box_score_team_stats_points import GameBoxScoreTeamStatsPoints
|
46
49
|
from cbbd.models.game_info import GameInfo
|
50
|
+
from cbbd.models.game_line_info import GameLineInfo
|
51
|
+
from cbbd.models.game_lines import GameLines
|
47
52
|
from cbbd.models.game_media_info import GameMediaInfo
|
48
53
|
from cbbd.models.game_media_info_broadcasts_inner import GameMediaInfoBroadcastsInner
|
49
54
|
from cbbd.models.game_status import GameStatus
|
55
|
+
from cbbd.models.line_provider_info import LineProviderInfo
|
50
56
|
from cbbd.models.play_info import PlayInfo
|
51
57
|
from cbbd.models.play_info_participants_inner import PlayInfoParticipantsInner
|
52
58
|
from cbbd.models.play_type_info import PlayTypeInfo
|
53
59
|
from cbbd.models.player_season_stats import PlayerSeasonStats
|
54
60
|
from cbbd.models.season_type import SeasonType
|
55
61
|
from cbbd.models.team_info import TeamInfo
|
62
|
+
from cbbd.models.team_roster import TeamRoster
|
63
|
+
from cbbd.models.team_roster_player import TeamRosterPlayer
|
64
|
+
from cbbd.models.team_roster_player_hometown import TeamRosterPlayerHometown
|
56
65
|
from cbbd.models.team_season_stats import TeamSeasonStats
|
57
66
|
from cbbd.models.team_season_unit_stats import TeamSeasonUnitStats
|
58
67
|
from cbbd.models.team_season_unit_stats_field_goals import TeamSeasonUnitStatsFieldGoals
|
cbbd/api/__init__.py
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
# import apis into api package
|
4
4
|
from cbbd.api.conferences_api import ConferencesApi
|
5
5
|
from cbbd.api.games_api import GamesApi
|
6
|
+
from cbbd.api.lines_api import LinesApi
|
6
7
|
from cbbd.api.plays_api import PlaysApi
|
7
8
|
from cbbd.api.stats_api import StatsApi
|
8
9
|
from cbbd.api.teams_api import TeamsApi
|
cbbd/api/conferences_api.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.3.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -19,8 +19,12 @@ import warnings
|
|
19
19
|
|
20
20
|
from pydantic import validate_arguments, ValidationError
|
21
21
|
|
22
|
-
from
|
22
|
+
from typing_extensions import Annotated
|
23
|
+
from pydantic import Field, StrictStr
|
23
24
|
|
25
|
+
from typing import List, Optional
|
26
|
+
|
27
|
+
from cbbd.models.conference_history import ConferenceHistory
|
24
28
|
from cbbd.models.conference_info import ConferenceInfo
|
25
29
|
|
26
30
|
from cbbd.api_client import ApiClient
|
@@ -43,6 +47,146 @@ class ConferencesApi:
|
|
43
47
|
api_client = ApiClient.get_default()
|
44
48
|
self.api_client = api_client
|
45
49
|
|
50
|
+
@validate_arguments
|
51
|
+
def get_conference_history(self, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, **kwargs) -> List[ConferenceHistory]: # noqa: E501
|
52
|
+
"""get_conference_history # noqa: E501
|
53
|
+
|
54
|
+
Retrieves historical conference membership information # noqa: E501
|
55
|
+
This method makes a synchronous HTTP request by default. To make an
|
56
|
+
asynchronous HTTP request, please pass async_req=True
|
57
|
+
|
58
|
+
>>> thread = api.get_conference_history(conference, async_req=True)
|
59
|
+
>>> result = thread.get()
|
60
|
+
|
61
|
+
:param conference: Optional conference abbreviation filter
|
62
|
+
:type conference: str
|
63
|
+
:param async_req: Whether to execute the request asynchronously.
|
64
|
+
:type async_req: bool, optional
|
65
|
+
:param _request_timeout: timeout setting for this request.
|
66
|
+
If one number provided, it will be total request
|
67
|
+
timeout. It can also be a pair (tuple) of
|
68
|
+
(connection, read) timeouts.
|
69
|
+
:return: Returns the result object.
|
70
|
+
If the method is called asynchronously,
|
71
|
+
returns the request thread.
|
72
|
+
:rtype: List[ConferenceHistory]
|
73
|
+
"""
|
74
|
+
kwargs['_return_http_data_only'] = True
|
75
|
+
if '_preload_content' in kwargs:
|
76
|
+
message = "Error! Please call the get_conference_history_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
77
|
+
raise ValueError(message)
|
78
|
+
return self.get_conference_history_with_http_info(conference, **kwargs) # noqa: E501
|
79
|
+
|
80
|
+
@validate_arguments
|
81
|
+
def get_conference_history_with_http_info(self, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
82
|
+
"""get_conference_history # noqa: E501
|
83
|
+
|
84
|
+
Retrieves historical conference membership information # noqa: E501
|
85
|
+
This method makes a synchronous HTTP request by default. To make an
|
86
|
+
asynchronous HTTP request, please pass async_req=True
|
87
|
+
|
88
|
+
>>> thread = api.get_conference_history_with_http_info(conference, async_req=True)
|
89
|
+
>>> result = thread.get()
|
90
|
+
|
91
|
+
:param conference: Optional conference abbreviation filter
|
92
|
+
:type conference: str
|
93
|
+
:param async_req: Whether to execute the request asynchronously.
|
94
|
+
:type async_req: bool, optional
|
95
|
+
:param _preload_content: if False, the ApiResponse.data will
|
96
|
+
be set to none and raw_data will store the
|
97
|
+
HTTP response body without reading/decoding.
|
98
|
+
Default is True.
|
99
|
+
:type _preload_content: bool, optional
|
100
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
101
|
+
object with status code, headers, etc
|
102
|
+
:type _return_http_data_only: bool, optional
|
103
|
+
:param _request_timeout: timeout setting for this request. If one
|
104
|
+
number provided, it will be total request
|
105
|
+
timeout. It can also be a pair (tuple) of
|
106
|
+
(connection, read) timeouts.
|
107
|
+
:param _request_auth: set to override the auth_settings for an a single
|
108
|
+
request; this effectively ignores the authentication
|
109
|
+
in the spec for a single request.
|
110
|
+
:type _request_auth: dict, optional
|
111
|
+
:type _content_type: string, optional: force content-type for the request
|
112
|
+
:return: Returns the result object.
|
113
|
+
If the method is called asynchronously,
|
114
|
+
returns the request thread.
|
115
|
+
:rtype: tuple(List[ConferenceHistory], status_code(int), headers(HTTPHeaderDict))
|
116
|
+
"""
|
117
|
+
|
118
|
+
_params = locals()
|
119
|
+
|
120
|
+
_all_params = [
|
121
|
+
'conference'
|
122
|
+
]
|
123
|
+
_all_params.extend(
|
124
|
+
[
|
125
|
+
'async_req',
|
126
|
+
'_return_http_data_only',
|
127
|
+
'_preload_content',
|
128
|
+
'_request_timeout',
|
129
|
+
'_request_auth',
|
130
|
+
'_content_type',
|
131
|
+
'_headers'
|
132
|
+
]
|
133
|
+
)
|
134
|
+
|
135
|
+
# validate the arguments
|
136
|
+
for _key, _val in _params['kwargs'].items():
|
137
|
+
if _key not in _all_params:
|
138
|
+
raise ApiTypeError(
|
139
|
+
"Got an unexpected keyword argument '%s'"
|
140
|
+
" to method get_conference_history" % _key
|
141
|
+
)
|
142
|
+
_params[_key] = _val
|
143
|
+
del _params['kwargs']
|
144
|
+
|
145
|
+
_collection_formats = {}
|
146
|
+
|
147
|
+
# process the path parameters
|
148
|
+
_path_params = {}
|
149
|
+
|
150
|
+
# process the query parameters
|
151
|
+
_query_params = []
|
152
|
+
if _params.get('conference') is not None: # noqa: E501
|
153
|
+
_query_params.append(('conference', _params['conference']))
|
154
|
+
|
155
|
+
# process the header parameters
|
156
|
+
_header_params = dict(_params.get('_headers', {}))
|
157
|
+
# process the form parameters
|
158
|
+
_form_params = []
|
159
|
+
_files = {}
|
160
|
+
# process the body parameter
|
161
|
+
_body_params = None
|
162
|
+
# set the HTTP header `Accept`
|
163
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
164
|
+
['application/json']) # noqa: E501
|
165
|
+
|
166
|
+
# authentication setting
|
167
|
+
_auth_settings = ['apiKey'] # noqa: E501
|
168
|
+
|
169
|
+
_response_types_map = {
|
170
|
+
'200': "List[ConferenceHistory]",
|
171
|
+
}
|
172
|
+
|
173
|
+
return self.api_client.call_api(
|
174
|
+
'/conferences/history', 'GET',
|
175
|
+
_path_params,
|
176
|
+
_query_params,
|
177
|
+
_header_params,
|
178
|
+
body=_body_params,
|
179
|
+
post_params=_form_params,
|
180
|
+
files=_files,
|
181
|
+
response_types_map=_response_types_map,
|
182
|
+
auth_settings=_auth_settings,
|
183
|
+
async_req=_params.get('async_req'),
|
184
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
185
|
+
_preload_content=_params.get('_preload_content', True),
|
186
|
+
_request_timeout=_params.get('_request_timeout'),
|
187
|
+
collection_formats=_collection_formats,
|
188
|
+
_request_auth=_params.get('_request_auth'))
|
189
|
+
|
46
190
|
@validate_arguments
|
47
191
|
def get_conferences(self, **kwargs) -> List[ConferenceInfo]: # noqa: E501
|
48
192
|
"""get_conferences # noqa: E501
|
cbbd/api/games_api.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.3.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/lines_api.py
ADDED
@@ -0,0 +1,358 @@
|
|
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.3.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
|
+
import re # noqa: F401
|
17
|
+
import io
|
18
|
+
import warnings
|
19
|
+
|
20
|
+
from pydantic import validate_arguments, ValidationError
|
21
|
+
|
22
|
+
from typing_extensions import Annotated
|
23
|
+
from datetime import datetime
|
24
|
+
|
25
|
+
from pydantic import Field, StrictInt, StrictStr
|
26
|
+
|
27
|
+
from typing import List, Optional
|
28
|
+
|
29
|
+
from cbbd.models.game_lines import GameLines
|
30
|
+
from cbbd.models.line_provider_info import LineProviderInfo
|
31
|
+
|
32
|
+
from cbbd.api_client import ApiClient
|
33
|
+
from cbbd.api_response import ApiResponse
|
34
|
+
from cbbd.exceptions import ( # noqa: F401
|
35
|
+
ApiTypeError,
|
36
|
+
ApiValueError
|
37
|
+
)
|
38
|
+
|
39
|
+
|
40
|
+
class LinesApi:
|
41
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
42
|
+
Ref: https://openapi-generator.tech
|
43
|
+
|
44
|
+
Do not edit the class manually.
|
45
|
+
"""
|
46
|
+
|
47
|
+
def __init__(self, api_client=None) -> None:
|
48
|
+
if api_client is None:
|
49
|
+
api_client = ApiClient.get_default()
|
50
|
+
self.api_client = api_client
|
51
|
+
|
52
|
+
@validate_arguments
|
53
|
+
def get_lines(self, season : Annotated[Optional[StrictInt], Field(description="Optional season filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team name filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, start_date_range : Annotated[Optional[datetime], Field(description="Optional start timestamp in ISO 8601 format")] = None, end_date_range : Annotated[Optional[datetime], Field(description="Optional end timestamp in ISO 8601 format")] = None, **kwargs) -> List[GameLines]: # noqa: E501
|
54
|
+
"""get_lines # noqa: E501
|
55
|
+
|
56
|
+
Returns betting lines for the first 3000 games that match the provided filters, ordered by start date. # noqa: E501
|
57
|
+
This method makes a synchronous HTTP request by default. To make an
|
58
|
+
asynchronous HTTP request, please pass async_req=True
|
59
|
+
|
60
|
+
>>> thread = api.get_lines(season, team, conference, start_date_range, end_date_range, async_req=True)
|
61
|
+
>>> result = thread.get()
|
62
|
+
|
63
|
+
:param season: Optional season filter
|
64
|
+
:type season: int
|
65
|
+
:param team: Optional team name filter
|
66
|
+
:type team: str
|
67
|
+
:param conference: Optional conference abbreviation filter
|
68
|
+
:type conference: str
|
69
|
+
:param start_date_range: Optional start timestamp in ISO 8601 format
|
70
|
+
:type start_date_range: datetime
|
71
|
+
:param end_date_range: Optional end timestamp in ISO 8601 format
|
72
|
+
:type end_date_range: datetime
|
73
|
+
:param async_req: Whether to execute the request asynchronously.
|
74
|
+
:type async_req: bool, optional
|
75
|
+
:param _request_timeout: timeout setting for this request.
|
76
|
+
If one number provided, it will be total request
|
77
|
+
timeout. It can also be a pair (tuple) of
|
78
|
+
(connection, read) timeouts.
|
79
|
+
:return: Returns the result object.
|
80
|
+
If the method is called asynchronously,
|
81
|
+
returns the request thread.
|
82
|
+
:rtype: List[GameLines]
|
83
|
+
"""
|
84
|
+
kwargs['_return_http_data_only'] = True
|
85
|
+
if '_preload_content' in kwargs:
|
86
|
+
message = "Error! Please call the get_lines_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
87
|
+
raise ValueError(message)
|
88
|
+
return self.get_lines_with_http_info(season, team, conference, start_date_range, end_date_range, **kwargs) # noqa: E501
|
89
|
+
|
90
|
+
@validate_arguments
|
91
|
+
def get_lines_with_http_info(self, season : Annotated[Optional[StrictInt], Field(description="Optional season filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team name filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, start_date_range : Annotated[Optional[datetime], Field(description="Optional start timestamp in ISO 8601 format")] = None, end_date_range : Annotated[Optional[datetime], Field(description="Optional end timestamp in ISO 8601 format")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
92
|
+
"""get_lines # noqa: E501
|
93
|
+
|
94
|
+
Returns betting lines for the first 3000 games that match the provided filters, ordered by start date. # noqa: E501
|
95
|
+
This method makes a synchronous HTTP request by default. To make an
|
96
|
+
asynchronous HTTP request, please pass async_req=True
|
97
|
+
|
98
|
+
>>> thread = api.get_lines_with_http_info(season, team, conference, start_date_range, end_date_range, async_req=True)
|
99
|
+
>>> result = thread.get()
|
100
|
+
|
101
|
+
:param season: Optional season filter
|
102
|
+
:type season: int
|
103
|
+
:param team: Optional team name filter
|
104
|
+
:type team: str
|
105
|
+
:param conference: Optional conference abbreviation filter
|
106
|
+
:type conference: str
|
107
|
+
:param start_date_range: Optional start timestamp in ISO 8601 format
|
108
|
+
:type start_date_range: datetime
|
109
|
+
:param end_date_range: Optional end timestamp in ISO 8601 format
|
110
|
+
:type end_date_range: datetime
|
111
|
+
:param async_req: Whether to execute the request asynchronously.
|
112
|
+
:type async_req: bool, optional
|
113
|
+
:param _preload_content: if False, the ApiResponse.data will
|
114
|
+
be set to none and raw_data will store the
|
115
|
+
HTTP response body without reading/decoding.
|
116
|
+
Default is True.
|
117
|
+
:type _preload_content: bool, optional
|
118
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
119
|
+
object with status code, headers, etc
|
120
|
+
:type _return_http_data_only: bool, optional
|
121
|
+
:param _request_timeout: timeout setting for this request. If one
|
122
|
+
number provided, it will be total request
|
123
|
+
timeout. It can also be a pair (tuple) of
|
124
|
+
(connection, read) timeouts.
|
125
|
+
:param _request_auth: set to override the auth_settings for an a single
|
126
|
+
request; this effectively ignores the authentication
|
127
|
+
in the spec for a single request.
|
128
|
+
:type _request_auth: dict, optional
|
129
|
+
:type _content_type: string, optional: force content-type for the request
|
130
|
+
:return: Returns the result object.
|
131
|
+
If the method is called asynchronously,
|
132
|
+
returns the request thread.
|
133
|
+
:rtype: tuple(List[GameLines], status_code(int), headers(HTTPHeaderDict))
|
134
|
+
"""
|
135
|
+
|
136
|
+
_params = locals()
|
137
|
+
|
138
|
+
_all_params = [
|
139
|
+
'season',
|
140
|
+
'team',
|
141
|
+
'conference',
|
142
|
+
'start_date_range',
|
143
|
+
'end_date_range'
|
144
|
+
]
|
145
|
+
_all_params.extend(
|
146
|
+
[
|
147
|
+
'async_req',
|
148
|
+
'_return_http_data_only',
|
149
|
+
'_preload_content',
|
150
|
+
'_request_timeout',
|
151
|
+
'_request_auth',
|
152
|
+
'_content_type',
|
153
|
+
'_headers'
|
154
|
+
]
|
155
|
+
)
|
156
|
+
|
157
|
+
# validate the arguments
|
158
|
+
for _key, _val in _params['kwargs'].items():
|
159
|
+
if _key not in _all_params:
|
160
|
+
raise ApiTypeError(
|
161
|
+
"Got an unexpected keyword argument '%s'"
|
162
|
+
" to method get_lines" % _key
|
163
|
+
)
|
164
|
+
_params[_key] = _val
|
165
|
+
del _params['kwargs']
|
166
|
+
|
167
|
+
_collection_formats = {}
|
168
|
+
|
169
|
+
# process the path parameters
|
170
|
+
_path_params = {}
|
171
|
+
|
172
|
+
# process the query parameters
|
173
|
+
_query_params = []
|
174
|
+
if _params.get('season') is not None: # noqa: E501
|
175
|
+
_query_params.append(('season', _params['season']))
|
176
|
+
|
177
|
+
if _params.get('team') is not None: # noqa: E501
|
178
|
+
_query_params.append(('team', _params['team']))
|
179
|
+
|
180
|
+
if _params.get('conference') is not None: # noqa: E501
|
181
|
+
_query_params.append(('conference', _params['conference']))
|
182
|
+
|
183
|
+
if _params.get('start_date_range') is not None: # noqa: E501
|
184
|
+
if isinstance(_params['start_date_range'], datetime):
|
185
|
+
_query_params.append(('startDateRange', _params['start_date_range'].strftime(self.api_client.configuration.datetime_format)))
|
186
|
+
else:
|
187
|
+
_query_params.append(('startDateRange', _params['start_date_range']))
|
188
|
+
|
189
|
+
if _params.get('end_date_range') is not None: # noqa: E501
|
190
|
+
if isinstance(_params['end_date_range'], datetime):
|
191
|
+
_query_params.append(('endDateRange', _params['end_date_range'].strftime(self.api_client.configuration.datetime_format)))
|
192
|
+
else:
|
193
|
+
_query_params.append(('endDateRange', _params['end_date_range']))
|
194
|
+
|
195
|
+
# process the header parameters
|
196
|
+
_header_params = dict(_params.get('_headers', {}))
|
197
|
+
# process the form parameters
|
198
|
+
_form_params = []
|
199
|
+
_files = {}
|
200
|
+
# process the body parameter
|
201
|
+
_body_params = None
|
202
|
+
# set the HTTP header `Accept`
|
203
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
204
|
+
['application/json']) # noqa: E501
|
205
|
+
|
206
|
+
# authentication setting
|
207
|
+
_auth_settings = ['apiKey'] # noqa: E501
|
208
|
+
|
209
|
+
_response_types_map = {
|
210
|
+
'200': "List[GameLines]",
|
211
|
+
}
|
212
|
+
|
213
|
+
return self.api_client.call_api(
|
214
|
+
'/lines', 'GET',
|
215
|
+
_path_params,
|
216
|
+
_query_params,
|
217
|
+
_header_params,
|
218
|
+
body=_body_params,
|
219
|
+
post_params=_form_params,
|
220
|
+
files=_files,
|
221
|
+
response_types_map=_response_types_map,
|
222
|
+
auth_settings=_auth_settings,
|
223
|
+
async_req=_params.get('async_req'),
|
224
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
225
|
+
_preload_content=_params.get('_preload_content', True),
|
226
|
+
_request_timeout=_params.get('_request_timeout'),
|
227
|
+
collection_formats=_collection_formats,
|
228
|
+
_request_auth=_params.get('_request_auth'))
|
229
|
+
|
230
|
+
@validate_arguments
|
231
|
+
def get_providers(self, **kwargs) -> List[LineProviderInfo]: # noqa: E501
|
232
|
+
"""get_providers # noqa: E501
|
233
|
+
|
234
|
+
This method makes a synchronous HTTP request by default. To make an
|
235
|
+
asynchronous HTTP request, please pass async_req=True
|
236
|
+
|
237
|
+
>>> thread = api.get_providers(async_req=True)
|
238
|
+
>>> result = thread.get()
|
239
|
+
|
240
|
+
:param async_req: Whether to execute the request asynchronously.
|
241
|
+
:type async_req: bool, optional
|
242
|
+
:param _request_timeout: timeout setting for this request.
|
243
|
+
If one number provided, it will be total request
|
244
|
+
timeout. It can also be a pair (tuple) of
|
245
|
+
(connection, read) timeouts.
|
246
|
+
:return: Returns the result object.
|
247
|
+
If the method is called asynchronously,
|
248
|
+
returns the request thread.
|
249
|
+
:rtype: List[LineProviderInfo]
|
250
|
+
"""
|
251
|
+
kwargs['_return_http_data_only'] = True
|
252
|
+
if '_preload_content' in kwargs:
|
253
|
+
message = "Error! Please call the get_providers_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
254
|
+
raise ValueError(message)
|
255
|
+
return self.get_providers_with_http_info(**kwargs) # noqa: E501
|
256
|
+
|
257
|
+
@validate_arguments
|
258
|
+
def get_providers_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
|
259
|
+
"""get_providers # noqa: E501
|
260
|
+
|
261
|
+
This method makes a synchronous HTTP request by default. To make an
|
262
|
+
asynchronous HTTP request, please pass async_req=True
|
263
|
+
|
264
|
+
>>> thread = api.get_providers_with_http_info(async_req=True)
|
265
|
+
>>> result = thread.get()
|
266
|
+
|
267
|
+
:param async_req: Whether to execute the request asynchronously.
|
268
|
+
:type async_req: bool, optional
|
269
|
+
:param _preload_content: if False, the ApiResponse.data will
|
270
|
+
be set to none and raw_data will store the
|
271
|
+
HTTP response body without reading/decoding.
|
272
|
+
Default is True.
|
273
|
+
:type _preload_content: bool, optional
|
274
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
275
|
+
object with status code, headers, etc
|
276
|
+
:type _return_http_data_only: bool, optional
|
277
|
+
:param _request_timeout: timeout setting for this request. If one
|
278
|
+
number provided, it will be total request
|
279
|
+
timeout. It can also be a pair (tuple) of
|
280
|
+
(connection, read) timeouts.
|
281
|
+
:param _request_auth: set to override the auth_settings for an a single
|
282
|
+
request; this effectively ignores the authentication
|
283
|
+
in the spec for a single request.
|
284
|
+
:type _request_auth: dict, optional
|
285
|
+
:type _content_type: string, optional: force content-type for the request
|
286
|
+
:return: Returns the result object.
|
287
|
+
If the method is called asynchronously,
|
288
|
+
returns the request thread.
|
289
|
+
:rtype: tuple(List[LineProviderInfo], status_code(int), headers(HTTPHeaderDict))
|
290
|
+
"""
|
291
|
+
|
292
|
+
_params = locals()
|
293
|
+
|
294
|
+
_all_params = [
|
295
|
+
]
|
296
|
+
_all_params.extend(
|
297
|
+
[
|
298
|
+
'async_req',
|
299
|
+
'_return_http_data_only',
|
300
|
+
'_preload_content',
|
301
|
+
'_request_timeout',
|
302
|
+
'_request_auth',
|
303
|
+
'_content_type',
|
304
|
+
'_headers'
|
305
|
+
]
|
306
|
+
)
|
307
|
+
|
308
|
+
# validate the arguments
|
309
|
+
for _key, _val in _params['kwargs'].items():
|
310
|
+
if _key not in _all_params:
|
311
|
+
raise ApiTypeError(
|
312
|
+
"Got an unexpected keyword argument '%s'"
|
313
|
+
" to method get_providers" % _key
|
314
|
+
)
|
315
|
+
_params[_key] = _val
|
316
|
+
del _params['kwargs']
|
317
|
+
|
318
|
+
_collection_formats = {}
|
319
|
+
|
320
|
+
# process the path parameters
|
321
|
+
_path_params = {}
|
322
|
+
|
323
|
+
# process the query parameters
|
324
|
+
_query_params = []
|
325
|
+
# process the header parameters
|
326
|
+
_header_params = dict(_params.get('_headers', {}))
|
327
|
+
# process the form parameters
|
328
|
+
_form_params = []
|
329
|
+
_files = {}
|
330
|
+
# process the body parameter
|
331
|
+
_body_params = None
|
332
|
+
# set the HTTP header `Accept`
|
333
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
334
|
+
['application/json']) # noqa: E501
|
335
|
+
|
336
|
+
# authentication setting
|
337
|
+
_auth_settings = ['apiKey'] # noqa: E501
|
338
|
+
|
339
|
+
_response_types_map = {
|
340
|
+
'200': "List[LineProviderInfo]",
|
341
|
+
}
|
342
|
+
|
343
|
+
return self.api_client.call_api(
|
344
|
+
'/lines/providers', 'GET',
|
345
|
+
_path_params,
|
346
|
+
_query_params,
|
347
|
+
_header_params,
|
348
|
+
body=_body_params,
|
349
|
+
post_params=_form_params,
|
350
|
+
files=_files,
|
351
|
+
response_types_map=_response_types_map,
|
352
|
+
auth_settings=_auth_settings,
|
353
|
+
async_req=_params.get('async_req'),
|
354
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
355
|
+
_preload_content=_params.get('_preload_content', True),
|
356
|
+
_request_timeout=_params.get('_request_timeout'),
|
357
|
+
collection_formats=_collection_formats,
|
358
|
+
_request_auth=_params.get('_request_auth'))
|
cbbd/api/plays_api.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.3.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/stats_api.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.3.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|