cbbd 1.12.1__py3-none-any.whl → 1.13.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 +6 -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 +4 -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 +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 +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.12.1.dist-info → cbbd-1.13.0.dist-info}/METADATA +1 -1
- cbbd-1.13.0.dist-info/RECORD +67 -0
- cbbd-1.12.1.dist-info/RECORD +0 -63
- {cbbd-1.12.1.dist-info → cbbd-1.13.0.dist-info}/WHEEL +0 -0
- {cbbd-1.12.1.dist-info → cbbd-1.13.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.13.0
|
11
11
|
Contact: admin@collegefootballdata.com
|
12
12
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
13
13
|
|
@@ -15,10 +15,11 @@
|
|
15
15
|
""" # noqa: E501
|
16
16
|
|
17
17
|
|
18
|
-
__version__ = "1.
|
18
|
+
__version__ = "1.13.0"
|
19
19
|
|
20
20
|
# import apis into sdk package
|
21
21
|
from cbbd.api.conferences_api import ConferencesApi
|
22
|
+
from cbbd.api.draft_api import DraftApi
|
22
23
|
from cbbd.api.games_api import GamesApi
|
23
24
|
from cbbd.api.lines_api import LinesApi
|
24
25
|
from cbbd.api.plays_api import PlaysApi
|
@@ -45,6 +46,9 @@ from cbbd.models.adjusted_efficiency_info_rankings import AdjustedEfficiencyInfo
|
|
45
46
|
from cbbd.models.conference_history import ConferenceHistory
|
46
47
|
from cbbd.models.conference_history_teams_inner import ConferenceHistoryTeamsInner
|
47
48
|
from cbbd.models.conference_info import ConferenceInfo
|
49
|
+
from cbbd.models.draft_pick import DraftPick
|
50
|
+
from cbbd.models.draft_position import DraftPosition
|
51
|
+
from cbbd.models.draft_team import DraftTeam
|
48
52
|
from cbbd.models.game_box_score_players import GameBoxScorePlayers
|
49
53
|
from cbbd.models.game_box_score_players_players_inner import GameBoxScorePlayersPlayersInner
|
50
54
|
from cbbd.models.game_box_score_team import GameBoxScoreTeam
|
cbbd/api/__init__.py
CHANGED
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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/draft_api.py
ADDED
@@ -0,0 +1,477 @@
|
|
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
|
+
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 pydantic import Field, StrictInt, StrictStr
|
24
|
+
|
25
|
+
from typing import List, Optional
|
26
|
+
|
27
|
+
from cbbd.models.draft_pick import DraftPick
|
28
|
+
from cbbd.models.draft_position import DraftPosition
|
29
|
+
from cbbd.models.draft_team import DraftTeam
|
30
|
+
|
31
|
+
from cbbd.api_client import ApiClient
|
32
|
+
from cbbd.api_response import ApiResponse
|
33
|
+
from cbbd.exceptions import ( # noqa: F401
|
34
|
+
ApiTypeError,
|
35
|
+
ApiValueError
|
36
|
+
)
|
37
|
+
|
38
|
+
|
39
|
+
class DraftApi:
|
40
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
41
|
+
Ref: https://openapi-generator.tech
|
42
|
+
|
43
|
+
Do not edit the class manually.
|
44
|
+
"""
|
45
|
+
|
46
|
+
def __init__(self, api_client=None) -> None:
|
47
|
+
if api_client is None:
|
48
|
+
api_client = ApiClient.get_default()
|
49
|
+
self.api_client = api_client
|
50
|
+
|
51
|
+
@validate_arguments
|
52
|
+
def get_draft_picks(self, year : Annotated[Optional[StrictInt], Field(description="Optional draft year filter")] = None, draft_team : Annotated[Optional[StrictStr], Field(description="Optional NBA team filter")] = None, source_team : Annotated[Optional[StrictStr], Field(description="Optional source team (e.g. NCAA) filter")] = None, position : Annotated[Optional[StrictStr], Field(description="Optional player position abbreviation filter")] = None, **kwargs) -> List[DraftPick]: # noqa: E501
|
53
|
+
"""get_draft_picks # noqa: E501
|
54
|
+
|
55
|
+
Retrieves historical NBA draft picks # noqa: E501
|
56
|
+
This method makes a synchronous HTTP request by default. To make an
|
57
|
+
asynchronous HTTP request, please pass async_req=True
|
58
|
+
|
59
|
+
>>> thread = api.get_draft_picks(year, draft_team, source_team, position, async_req=True)
|
60
|
+
>>> result = thread.get()
|
61
|
+
|
62
|
+
:param year: Optional draft year filter
|
63
|
+
:type year: int
|
64
|
+
:param draft_team: Optional NBA team filter
|
65
|
+
:type draft_team: str
|
66
|
+
:param source_team: Optional source team (e.g. NCAA) filter
|
67
|
+
:type source_team: str
|
68
|
+
:param position: Optional player position abbreviation filter
|
69
|
+
:type position: str
|
70
|
+
:param async_req: Whether to execute the request asynchronously.
|
71
|
+
:type async_req: bool, optional
|
72
|
+
:param _request_timeout: timeout setting for this request.
|
73
|
+
If one number provided, it will be total request
|
74
|
+
timeout. It can also be a pair (tuple) of
|
75
|
+
(connection, read) timeouts.
|
76
|
+
:return: Returns the result object.
|
77
|
+
If the method is called asynchronously,
|
78
|
+
returns the request thread.
|
79
|
+
:rtype: List[DraftPick]
|
80
|
+
"""
|
81
|
+
kwargs['_return_http_data_only'] = True
|
82
|
+
if '_preload_content' in kwargs:
|
83
|
+
message = "Error! Please call the get_draft_picks_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
84
|
+
raise ValueError(message)
|
85
|
+
return self.get_draft_picks_with_http_info(year, draft_team, source_team, position, **kwargs) # noqa: E501
|
86
|
+
|
87
|
+
@validate_arguments
|
88
|
+
def get_draft_picks_with_http_info(self, year : Annotated[Optional[StrictInt], Field(description="Optional draft year filter")] = None, draft_team : Annotated[Optional[StrictStr], Field(description="Optional NBA team filter")] = None, source_team : Annotated[Optional[StrictStr], Field(description="Optional source team (e.g. NCAA) filter")] = None, position : Annotated[Optional[StrictStr], Field(description="Optional player position abbreviation filter")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
89
|
+
"""get_draft_picks # noqa: E501
|
90
|
+
|
91
|
+
Retrieves historical NBA draft picks # noqa: E501
|
92
|
+
This method makes a synchronous HTTP request by default. To make an
|
93
|
+
asynchronous HTTP request, please pass async_req=True
|
94
|
+
|
95
|
+
>>> thread = api.get_draft_picks_with_http_info(year, draft_team, source_team, position, async_req=True)
|
96
|
+
>>> result = thread.get()
|
97
|
+
|
98
|
+
:param year: Optional draft year filter
|
99
|
+
:type year: int
|
100
|
+
:param draft_team: Optional NBA team filter
|
101
|
+
:type draft_team: str
|
102
|
+
:param source_team: Optional source team (e.g. NCAA) filter
|
103
|
+
:type source_team: str
|
104
|
+
:param position: Optional player position abbreviation filter
|
105
|
+
:type position: str
|
106
|
+
:param async_req: Whether to execute the request asynchronously.
|
107
|
+
:type async_req: bool, optional
|
108
|
+
:param _preload_content: if False, the ApiResponse.data will
|
109
|
+
be set to none and raw_data will store the
|
110
|
+
HTTP response body without reading/decoding.
|
111
|
+
Default is True.
|
112
|
+
:type _preload_content: bool, optional
|
113
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
114
|
+
object with status code, headers, etc
|
115
|
+
:type _return_http_data_only: bool, optional
|
116
|
+
:param _request_timeout: timeout setting for this request. If one
|
117
|
+
number provided, it will be total request
|
118
|
+
timeout. It can also be a pair (tuple) of
|
119
|
+
(connection, read) timeouts.
|
120
|
+
:param _request_auth: set to override the auth_settings for an a single
|
121
|
+
request; this effectively ignores the authentication
|
122
|
+
in the spec for a single request.
|
123
|
+
:type _request_auth: dict, optional
|
124
|
+
:type _content_type: string, optional: force content-type for the request
|
125
|
+
:return: Returns the result object.
|
126
|
+
If the method is called asynchronously,
|
127
|
+
returns the request thread.
|
128
|
+
:rtype: tuple(List[DraftPick], status_code(int), headers(HTTPHeaderDict))
|
129
|
+
"""
|
130
|
+
|
131
|
+
_params = locals()
|
132
|
+
|
133
|
+
_all_params = [
|
134
|
+
'year',
|
135
|
+
'draft_team',
|
136
|
+
'source_team',
|
137
|
+
'position'
|
138
|
+
]
|
139
|
+
_all_params.extend(
|
140
|
+
[
|
141
|
+
'async_req',
|
142
|
+
'_return_http_data_only',
|
143
|
+
'_preload_content',
|
144
|
+
'_request_timeout',
|
145
|
+
'_request_auth',
|
146
|
+
'_content_type',
|
147
|
+
'_headers'
|
148
|
+
]
|
149
|
+
)
|
150
|
+
|
151
|
+
# validate the arguments
|
152
|
+
for _key, _val in _params['kwargs'].items():
|
153
|
+
if _key not in _all_params:
|
154
|
+
raise ApiTypeError(
|
155
|
+
"Got an unexpected keyword argument '%s'"
|
156
|
+
" to method get_draft_picks" % _key
|
157
|
+
)
|
158
|
+
_params[_key] = _val
|
159
|
+
del _params['kwargs']
|
160
|
+
|
161
|
+
_collection_formats = {}
|
162
|
+
|
163
|
+
# process the path parameters
|
164
|
+
_path_params = {}
|
165
|
+
|
166
|
+
# process the query parameters
|
167
|
+
_query_params = []
|
168
|
+
if _params.get('year') is not None: # noqa: E501
|
169
|
+
_query_params.append(('year', _params['year']))
|
170
|
+
|
171
|
+
if _params.get('draft_team') is not None: # noqa: E501
|
172
|
+
_query_params.append(('draftTeam', _params['draft_team']))
|
173
|
+
|
174
|
+
if _params.get('source_team') is not None: # noqa: E501
|
175
|
+
_query_params.append(('sourceTeam', _params['source_team']))
|
176
|
+
|
177
|
+
if _params.get('position') is not None: # noqa: E501
|
178
|
+
_query_params.append(('position', _params['position']))
|
179
|
+
|
180
|
+
# process the header parameters
|
181
|
+
_header_params = dict(_params.get('_headers', {}))
|
182
|
+
# process the form parameters
|
183
|
+
_form_params = []
|
184
|
+
_files = {}
|
185
|
+
# process the body parameter
|
186
|
+
_body_params = None
|
187
|
+
# set the HTTP header `Accept`
|
188
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
189
|
+
['application/json']) # noqa: E501
|
190
|
+
|
191
|
+
# authentication setting
|
192
|
+
_auth_settings = ['apiKey'] # noqa: E501
|
193
|
+
|
194
|
+
_response_types_map = {
|
195
|
+
'200': "List[DraftPick]",
|
196
|
+
}
|
197
|
+
|
198
|
+
return self.api_client.call_api(
|
199
|
+
'/draft/picks', 'GET',
|
200
|
+
_path_params,
|
201
|
+
_query_params,
|
202
|
+
_header_params,
|
203
|
+
body=_body_params,
|
204
|
+
post_params=_form_params,
|
205
|
+
files=_files,
|
206
|
+
response_types_map=_response_types_map,
|
207
|
+
auth_settings=_auth_settings,
|
208
|
+
async_req=_params.get('async_req'),
|
209
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
210
|
+
_preload_content=_params.get('_preload_content', True),
|
211
|
+
_request_timeout=_params.get('_request_timeout'),
|
212
|
+
collection_formats=_collection_formats,
|
213
|
+
_request_auth=_params.get('_request_auth'))
|
214
|
+
|
215
|
+
@validate_arguments
|
216
|
+
def get_draft_positions(self, **kwargs) -> List[DraftPosition]: # noqa: E501
|
217
|
+
"""get_draft_positions # noqa: E501
|
218
|
+
|
219
|
+
Retrieves list of position names for NBA draft prospects # noqa: E501
|
220
|
+
This method makes a synchronous HTTP request by default. To make an
|
221
|
+
asynchronous HTTP request, please pass async_req=True
|
222
|
+
|
223
|
+
>>> thread = api.get_draft_positions(async_req=True)
|
224
|
+
>>> result = thread.get()
|
225
|
+
|
226
|
+
:param async_req: Whether to execute the request asynchronously.
|
227
|
+
:type async_req: bool, optional
|
228
|
+
:param _request_timeout: timeout setting for this request.
|
229
|
+
If one number provided, it will be total request
|
230
|
+
timeout. It can also be a pair (tuple) of
|
231
|
+
(connection, read) timeouts.
|
232
|
+
:return: Returns the result object.
|
233
|
+
If the method is called asynchronously,
|
234
|
+
returns the request thread.
|
235
|
+
:rtype: List[DraftPosition]
|
236
|
+
"""
|
237
|
+
kwargs['_return_http_data_only'] = True
|
238
|
+
if '_preload_content' in kwargs:
|
239
|
+
message = "Error! Please call the get_draft_positions_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
240
|
+
raise ValueError(message)
|
241
|
+
return self.get_draft_positions_with_http_info(**kwargs) # noqa: E501
|
242
|
+
|
243
|
+
@validate_arguments
|
244
|
+
def get_draft_positions_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
|
245
|
+
"""get_draft_positions # noqa: E501
|
246
|
+
|
247
|
+
Retrieves list of position names for NBA draft prospects # noqa: E501
|
248
|
+
This method makes a synchronous HTTP request by default. To make an
|
249
|
+
asynchronous HTTP request, please pass async_req=True
|
250
|
+
|
251
|
+
>>> thread = api.get_draft_positions_with_http_info(async_req=True)
|
252
|
+
>>> result = thread.get()
|
253
|
+
|
254
|
+
:param async_req: Whether to execute the request asynchronously.
|
255
|
+
:type async_req: bool, optional
|
256
|
+
:param _preload_content: if False, the ApiResponse.data will
|
257
|
+
be set to none and raw_data will store the
|
258
|
+
HTTP response body without reading/decoding.
|
259
|
+
Default is True.
|
260
|
+
:type _preload_content: bool, optional
|
261
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
262
|
+
object with status code, headers, etc
|
263
|
+
:type _return_http_data_only: bool, optional
|
264
|
+
:param _request_timeout: timeout setting for this request. If one
|
265
|
+
number provided, it will be total request
|
266
|
+
timeout. It can also be a pair (tuple) of
|
267
|
+
(connection, read) timeouts.
|
268
|
+
:param _request_auth: set to override the auth_settings for an a single
|
269
|
+
request; this effectively ignores the authentication
|
270
|
+
in the spec for a single request.
|
271
|
+
:type _request_auth: dict, optional
|
272
|
+
:type _content_type: string, optional: force content-type for the request
|
273
|
+
:return: Returns the result object.
|
274
|
+
If the method is called asynchronously,
|
275
|
+
returns the request thread.
|
276
|
+
:rtype: tuple(List[DraftPosition], status_code(int), headers(HTTPHeaderDict))
|
277
|
+
"""
|
278
|
+
|
279
|
+
_params = locals()
|
280
|
+
|
281
|
+
_all_params = [
|
282
|
+
]
|
283
|
+
_all_params.extend(
|
284
|
+
[
|
285
|
+
'async_req',
|
286
|
+
'_return_http_data_only',
|
287
|
+
'_preload_content',
|
288
|
+
'_request_timeout',
|
289
|
+
'_request_auth',
|
290
|
+
'_content_type',
|
291
|
+
'_headers'
|
292
|
+
]
|
293
|
+
)
|
294
|
+
|
295
|
+
# validate the arguments
|
296
|
+
for _key, _val in _params['kwargs'].items():
|
297
|
+
if _key not in _all_params:
|
298
|
+
raise ApiTypeError(
|
299
|
+
"Got an unexpected keyword argument '%s'"
|
300
|
+
" to method get_draft_positions" % _key
|
301
|
+
)
|
302
|
+
_params[_key] = _val
|
303
|
+
del _params['kwargs']
|
304
|
+
|
305
|
+
_collection_formats = {}
|
306
|
+
|
307
|
+
# process the path parameters
|
308
|
+
_path_params = {}
|
309
|
+
|
310
|
+
# process the query parameters
|
311
|
+
_query_params = []
|
312
|
+
# process the header parameters
|
313
|
+
_header_params = dict(_params.get('_headers', {}))
|
314
|
+
# process the form parameters
|
315
|
+
_form_params = []
|
316
|
+
_files = {}
|
317
|
+
# process the body parameter
|
318
|
+
_body_params = None
|
319
|
+
# set the HTTP header `Accept`
|
320
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
321
|
+
['application/json']) # noqa: E501
|
322
|
+
|
323
|
+
# authentication setting
|
324
|
+
_auth_settings = ['apiKey'] # noqa: E501
|
325
|
+
|
326
|
+
_response_types_map = {
|
327
|
+
'200': "List[DraftPosition]",
|
328
|
+
}
|
329
|
+
|
330
|
+
return self.api_client.call_api(
|
331
|
+
'/draft/positions', 'GET',
|
332
|
+
_path_params,
|
333
|
+
_query_params,
|
334
|
+
_header_params,
|
335
|
+
body=_body_params,
|
336
|
+
post_params=_form_params,
|
337
|
+
files=_files,
|
338
|
+
response_types_map=_response_types_map,
|
339
|
+
auth_settings=_auth_settings,
|
340
|
+
async_req=_params.get('async_req'),
|
341
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
342
|
+
_preload_content=_params.get('_preload_content', True),
|
343
|
+
_request_timeout=_params.get('_request_timeout'),
|
344
|
+
collection_formats=_collection_formats,
|
345
|
+
_request_auth=_params.get('_request_auth'))
|
346
|
+
|
347
|
+
@validate_arguments
|
348
|
+
def get_draft_teams(self, **kwargs) -> List[DraftTeam]: # noqa: E501
|
349
|
+
"""get_draft_teams # noqa: E501
|
350
|
+
|
351
|
+
Retrieves list of NBA teams # noqa: E501
|
352
|
+
This method makes a synchronous HTTP request by default. To make an
|
353
|
+
asynchronous HTTP request, please pass async_req=True
|
354
|
+
|
355
|
+
>>> thread = api.get_draft_teams(async_req=True)
|
356
|
+
>>> result = thread.get()
|
357
|
+
|
358
|
+
:param async_req: Whether to execute the request asynchronously.
|
359
|
+
:type async_req: bool, optional
|
360
|
+
:param _request_timeout: timeout setting for this request.
|
361
|
+
If one number provided, it will be total request
|
362
|
+
timeout. It can also be a pair (tuple) of
|
363
|
+
(connection, read) timeouts.
|
364
|
+
:return: Returns the result object.
|
365
|
+
If the method is called asynchronously,
|
366
|
+
returns the request thread.
|
367
|
+
:rtype: List[DraftTeam]
|
368
|
+
"""
|
369
|
+
kwargs['_return_http_data_only'] = True
|
370
|
+
if '_preload_content' in kwargs:
|
371
|
+
message = "Error! Please call the get_draft_teams_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
372
|
+
raise ValueError(message)
|
373
|
+
return self.get_draft_teams_with_http_info(**kwargs) # noqa: E501
|
374
|
+
|
375
|
+
@validate_arguments
|
376
|
+
def get_draft_teams_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501
|
377
|
+
"""get_draft_teams # noqa: E501
|
378
|
+
|
379
|
+
Retrieves list of NBA teams # noqa: E501
|
380
|
+
This method makes a synchronous HTTP request by default. To make an
|
381
|
+
asynchronous HTTP request, please pass async_req=True
|
382
|
+
|
383
|
+
>>> thread = api.get_draft_teams_with_http_info(async_req=True)
|
384
|
+
>>> result = thread.get()
|
385
|
+
|
386
|
+
:param async_req: Whether to execute the request asynchronously.
|
387
|
+
:type async_req: bool, optional
|
388
|
+
:param _preload_content: if False, the ApiResponse.data will
|
389
|
+
be set to none and raw_data will store the
|
390
|
+
HTTP response body without reading/decoding.
|
391
|
+
Default is True.
|
392
|
+
:type _preload_content: bool, optional
|
393
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
394
|
+
object with status code, headers, etc
|
395
|
+
:type _return_http_data_only: bool, optional
|
396
|
+
:param _request_timeout: timeout setting for this request. If one
|
397
|
+
number provided, it will be total request
|
398
|
+
timeout. It can also be a pair (tuple) of
|
399
|
+
(connection, read) timeouts.
|
400
|
+
:param _request_auth: set to override the auth_settings for an a single
|
401
|
+
request; this effectively ignores the authentication
|
402
|
+
in the spec for a single request.
|
403
|
+
:type _request_auth: dict, optional
|
404
|
+
:type _content_type: string, optional: force content-type for the request
|
405
|
+
:return: Returns the result object.
|
406
|
+
If the method is called asynchronously,
|
407
|
+
returns the request thread.
|
408
|
+
:rtype: tuple(List[DraftTeam], status_code(int), headers(HTTPHeaderDict))
|
409
|
+
"""
|
410
|
+
|
411
|
+
_params = locals()
|
412
|
+
|
413
|
+
_all_params = [
|
414
|
+
]
|
415
|
+
_all_params.extend(
|
416
|
+
[
|
417
|
+
'async_req',
|
418
|
+
'_return_http_data_only',
|
419
|
+
'_preload_content',
|
420
|
+
'_request_timeout',
|
421
|
+
'_request_auth',
|
422
|
+
'_content_type',
|
423
|
+
'_headers'
|
424
|
+
]
|
425
|
+
)
|
426
|
+
|
427
|
+
# validate the arguments
|
428
|
+
for _key, _val in _params['kwargs'].items():
|
429
|
+
if _key not in _all_params:
|
430
|
+
raise ApiTypeError(
|
431
|
+
"Got an unexpected keyword argument '%s'"
|
432
|
+
" to method get_draft_teams" % _key
|
433
|
+
)
|
434
|
+
_params[_key] = _val
|
435
|
+
del _params['kwargs']
|
436
|
+
|
437
|
+
_collection_formats = {}
|
438
|
+
|
439
|
+
# process the path parameters
|
440
|
+
_path_params = {}
|
441
|
+
|
442
|
+
# process the query parameters
|
443
|
+
_query_params = []
|
444
|
+
# process the header parameters
|
445
|
+
_header_params = dict(_params.get('_headers', {}))
|
446
|
+
# process the form parameters
|
447
|
+
_form_params = []
|
448
|
+
_files = {}
|
449
|
+
# process the body parameter
|
450
|
+
_body_params = None
|
451
|
+
# set the HTTP header `Accept`
|
452
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
453
|
+
['application/json']) # noqa: E501
|
454
|
+
|
455
|
+
# authentication setting
|
456
|
+
_auth_settings = ['apiKey'] # noqa: E501
|
457
|
+
|
458
|
+
_response_types_map = {
|
459
|
+
'200': "List[DraftTeam]",
|
460
|
+
}
|
461
|
+
|
462
|
+
return self.api_client.call_api(
|
463
|
+
'/draft/teams', 'GET',
|
464
|
+
_path_params,
|
465
|
+
_query_params,
|
466
|
+
_header_params,
|
467
|
+
body=_body_params,
|
468
|
+
post_params=_form_params,
|
469
|
+
files=_files,
|
470
|
+
response_types_map=_response_types_map,
|
471
|
+
auth_settings=_auth_settings,
|
472
|
+
async_req=_params.get('async_req'),
|
473
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
474
|
+
_preload_content=_params.get('_preload_content', True),
|
475
|
+
_request_timeout=_params.get('_request_timeout'),
|
476
|
+
collection_formats=_collection_formats,
|
477
|
+
_request_auth=_params.get('_request_auth'))
|
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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/lines_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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/rankings_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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/ratings_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.13.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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/teams_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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
cbbd/api/venues_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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
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.13.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.13.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.13.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.13.0\n"\
|
380
|
+
"SDK Package Version: 1.13.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.13.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|