Skip to content

Commit 4e80323

Browse files
feat: tournament filters, labels, and seeding information everywhere
1 parent 02079de commit 4e80323

File tree

150 files changed

+604
-190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+604
-190
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ This API is in limited Beta for Patreon subscribers. It may have bugs and is sub
33

44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

6-
- API version: 1.18.2
7-
- Package version: 1.18.2
6+
- API version: 1.19.0
7+
- Package version: 1.19.0
88
- Generator version: 7.12.0
99
- Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen
1010

@@ -16,9 +16,9 @@ Python 3.7+
1616
### pip install
1717

1818
```sh
19-
pip install cbbd@1.18.2
19+
pip install cbbd@1.19.0
2020
```
21-
(you may need to run `pip` with root permission: `sudo pip install cbbd@1.18.2`)
21+
(you may need to run `pip` with root permission: `sudo pip install cbbd@1.19.0`)
2222

2323
Then import the package:
2424
```python
@@ -92,6 +92,7 @@ Class | Method | HTTP request | Description
9292
*PlaysApi* | [**get_plays_by_date**](docs/PlaysApi.md#get_plays_by_date) | **GET** /plays/date |
9393
*PlaysApi* | [**get_plays_by_player_id**](docs/PlaysApi.md#get_plays_by_player_id) | **GET** /plays/player/{playerId} |
9494
*PlaysApi* | [**get_plays_by_team**](docs/PlaysApi.md#get_plays_by_team) | **GET** /plays/team |
95+
*PlaysApi* | [**get_plays_by_tournament**](docs/PlaysApi.md#get_plays_by_tournament) | **GET** /plays/tournament |
9596
*PlaysApi* | [**get_substitutions_by_game**](docs/PlaysApi.md#get_substitutions_by_game) | **GET** /substitutions/game/{gameId} |
9697
*PlaysApi* | [**get_substitutions_by_player_id**](docs/PlaysApi.md#get_substitutions_by_player_id) | **GET** /substitutions/player/{playerId} |
9798
*PlaysApi* | [**get_substitutions_by_team**](docs/PlaysApi.md#get_substitutions_by_team) | **GET** /substitutions/team |

cbbd/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
88
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.
99
10-
The version of the OpenAPI document: 1.18.2
10+
The version of the OpenAPI document: 1.19.0
1111
1212
Generated by OpenAPI Generator (https://openapi-generator.tech)
1313
1414
Do not edit the class manually.
1515
""" # noqa: E501
1616

1717

18-
__version__ = "1.18.2"
18+
__version__ = "1.19.0"
1919

2020
# import apis into sdk package
2121
from cbbd.api.conferences_api import ConferencesApi

cbbd/api/conferences_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/draft_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/games_api.py

+57-25
Large diffs are not rendered by default.

cbbd/api/lines_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/lineups_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/plays_api.py

+159-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -22,9 +22,9 @@
2222
from typing_extensions import Annotated
2323
from datetime import datetime
2424

25-
from pydantic import Field, StrictBool, StrictInt, StrictStr
25+
from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
2626

27-
from typing import List, Optional
27+
from typing import List, Optional, Union
2828

2929
from cbbd.models.play_info import PlayInfo
3030
from cbbd.models.play_type_info import PlayTypeInfo
@@ -793,6 +793,162 @@ def get_plays_by_team_with_http_info(self, season : Annotated[StrictInt, Field(.
793793
collection_formats=_collection_formats,
794794
_request_auth=_params.get('_request_auth'))
795795

796+
@validate_arguments
797+
def get_plays_by_tournament(self, tournament : Annotated[StrictStr, Field(..., description="Required tournament filter (e.g. NCAA, NIT, etc)")], season : Annotated[Union[StrictFloat, StrictInt], Field(..., description="Required season filter")], shooting_plays_only : Annotated[Optional[StrictBool], Field(description="Optional filter to only return shooting plays")] = None, **kwargs) -> List[PlayInfo]: # noqa: E501
798+
"""get_plays_by_tournament # noqa: E501
799+
800+
Retrieve all plays for a given tournament and season # noqa: E501
801+
This method makes a synchronous HTTP request by default. To make an
802+
asynchronous HTTP request, please pass async_req=True
803+
804+
>>> thread = api.get_plays_by_tournament(tournament, season, shooting_plays_only, async_req=True)
805+
>>> result = thread.get()
806+
807+
:param tournament: Required tournament filter (e.g. NCAA, NIT, etc) (required)
808+
:type tournament: str
809+
:param season: Required season filter (required)
810+
:type season: float
811+
:param shooting_plays_only: Optional filter to only return shooting plays
812+
:type shooting_plays_only: bool
813+
:param async_req: Whether to execute the request asynchronously.
814+
:type async_req: bool, optional
815+
:param _request_timeout: timeout setting for this request.
816+
If one number provided, it will be total request
817+
timeout. It can also be a pair (tuple) of
818+
(connection, read) timeouts.
819+
:return: Returns the result object.
820+
If the method is called asynchronously,
821+
returns the request thread.
822+
:rtype: List[PlayInfo]
823+
"""
824+
kwargs['_return_http_data_only'] = True
825+
if '_preload_content' in kwargs:
826+
message = "Error! Please call the get_plays_by_tournament_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
827+
raise ValueError(message)
828+
return self.get_plays_by_tournament_with_http_info(tournament, season, shooting_plays_only, **kwargs) # noqa: E501
829+
830+
@validate_arguments
831+
def get_plays_by_tournament_with_http_info(self, tournament : Annotated[StrictStr, Field(..., description="Required tournament filter (e.g. NCAA, NIT, etc)")], season : Annotated[Union[StrictFloat, StrictInt], Field(..., description="Required season filter")], shooting_plays_only : Annotated[Optional[StrictBool], Field(description="Optional filter to only return shooting plays")] = None, **kwargs) -> ApiResponse: # noqa: E501
832+
"""get_plays_by_tournament # noqa: E501
833+
834+
Retrieve all plays for a given tournament and season # noqa: E501
835+
This method makes a synchronous HTTP request by default. To make an
836+
asynchronous HTTP request, please pass async_req=True
837+
838+
>>> thread = api.get_plays_by_tournament_with_http_info(tournament, season, shooting_plays_only, async_req=True)
839+
>>> result = thread.get()
840+
841+
:param tournament: Required tournament filter (e.g. NCAA, NIT, etc) (required)
842+
:type tournament: str
843+
:param season: Required season filter (required)
844+
:type season: float
845+
:param shooting_plays_only: Optional filter to only return shooting plays
846+
:type shooting_plays_only: bool
847+
:param async_req: Whether to execute the request asynchronously.
848+
:type async_req: bool, optional
849+
:param _preload_content: if False, the ApiResponse.data will
850+
be set to none and raw_data will store the
851+
HTTP response body without reading/decoding.
852+
Default is True.
853+
:type _preload_content: bool, optional
854+
:param _return_http_data_only: response data instead of ApiResponse
855+
object with status code, headers, etc
856+
:type _return_http_data_only: bool, optional
857+
:param _request_timeout: timeout setting for this request. If one
858+
number provided, it will be total request
859+
timeout. It can also be a pair (tuple) of
860+
(connection, read) timeouts.
861+
:param _request_auth: set to override the auth_settings for an a single
862+
request; this effectively ignores the authentication
863+
in the spec for a single request.
864+
:type _request_auth: dict, optional
865+
:type _content_type: string, optional: force content-type for the request
866+
:return: Returns the result object.
867+
If the method is called asynchronously,
868+
returns the request thread.
869+
:rtype: tuple(List[PlayInfo], status_code(int), headers(HTTPHeaderDict))
870+
"""
871+
872+
_params = locals()
873+
874+
_all_params = [
875+
'tournament',
876+
'season',
877+
'shooting_plays_only'
878+
]
879+
_all_params.extend(
880+
[
881+
'async_req',
882+
'_return_http_data_only',
883+
'_preload_content',
884+
'_request_timeout',
885+
'_request_auth',
886+
'_content_type',
887+
'_headers'
888+
]
889+
)
890+
891+
# validate the arguments
892+
for _key, _val in _params['kwargs'].items():
893+
if _key not in _all_params:
894+
raise ApiTypeError(
895+
"Got an unexpected keyword argument '%s'"
896+
" to method get_plays_by_tournament" % _key
897+
)
898+
_params[_key] = _val
899+
del _params['kwargs']
900+
901+
_collection_formats = {}
902+
903+
# process the path parameters
904+
_path_params = {}
905+
906+
# process the query parameters
907+
_query_params = []
908+
if _params.get('tournament') is not None: # noqa: E501
909+
_query_params.append(('tournament', _params['tournament']))
910+
911+
if _params.get('season') is not None: # noqa: E501
912+
_query_params.append(('season', _params['season']))
913+
914+
if _params.get('shooting_plays_only') is not None: # noqa: E501
915+
_query_params.append(('shootingPlaysOnly', _params['shooting_plays_only']))
916+
917+
# process the header parameters
918+
_header_params = dict(_params.get('_headers', {}))
919+
# process the form parameters
920+
_form_params = []
921+
_files = {}
922+
# process the body parameter
923+
_body_params = None
924+
# set the HTTP header `Accept`
925+
_header_params['Accept'] = self.api_client.select_header_accept(
926+
['application/json']) # noqa: E501
927+
928+
# authentication setting
929+
_auth_settings = ['apiKey'] # noqa: E501
930+
931+
_response_types_map = {
932+
'200': "List[PlayInfo]",
933+
}
934+
935+
return self.api_client.call_api(
936+
'/plays/tournament', 'GET',
937+
_path_params,
938+
_query_params,
939+
_header_params,
940+
body=_body_params,
941+
post_params=_form_params,
942+
files=_files,
943+
response_types_map=_response_types_map,
944+
auth_settings=_auth_settings,
945+
async_req=_params.get('async_req'),
946+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
947+
_preload_content=_params.get('_preload_content', True),
948+
_request_timeout=_params.get('_request_timeout'),
949+
collection_formats=_collection_formats,
950+
_request_auth=_params.get('_request_auth'))
951+
796952
@validate_arguments
797953
def get_substitutions_by_game(self, game_id : Annotated[StrictInt, Field(..., description="Game id filter")], **kwargs) -> List[PlayerSubsititution]: # noqa: E501
798954
"""get_substitutions_by_game # noqa: E501

cbbd/api/rankings_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/ratings_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/recruiting_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/stats_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/teams_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/venues_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7878
self.default_headers[header_name] = header_value
7979
self.cookie = cookie
8080
# Set default User-Agent.
81-
self.user_agent = 'OpenAPI-Generator/1.18.2/python'
81+
self.user_agent = 'OpenAPI-Generator/1.19.0/python'
8282
self.client_side_validation = configuration.client_side_validation
8383

8484
def __enter__(self):

cbbd/configuration.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -376,8 +376,8 @@ def to_debug_report(self):
376376
return "Python SDK Debug Report:\n"\
377377
"OS: {env}\n"\
378378
"Python Version: {pyversion}\n"\
379-
"Version of the API: 1.18.2\n"\
380-
"SDK Package Version: 1.18.2".\
379+
"Version of the API: 1.19.0\n"\
380+
"SDK Package Version: 1.19.0".\
381381
format(env=sys.platform, pyversion=sys.version)
382382

383383
def get_host_settings(self):

cbbd/exceptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
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.
88
9-
The version of the OpenAPI document: 1.18.2
9+
The version of the OpenAPI document: 1.19.0
1010
1111
Generated by OpenAPI Generator (https://openapi-generator.tech)
1212

cbbd/models/adjusted_efficiency_info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/adjusted_efficiency_info_rankings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
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.
77
8-
The version of the OpenAPI document: 1.18.2
8+
The version of the OpenAPI document: 1.19.0
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

0 commit comments

Comments
 (0)