cbbd 1.7.3__tar.gz → 1.9.0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. {cbbd-1.7.3 → cbbd-1.9.0}/PKG-INFO +1 -1
  2. {cbbd-1.7.3 → cbbd-1.9.0}/README.md +8 -4
  3. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/__init__.py +6 -2
  4. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/api/__init__.py +1 -0
  5. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/api/conferences_api.py +1 -1
  6. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/api/games_api.py +1 -1
  7. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/api/lines_api.py +1 -1
  8. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/api/plays_api.py +59 -27
  9. cbbd-1.9.0/cbbd/api/rankings_api.py +228 -0
  10. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/api/ratings_api.py +1 -1
  11. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/api/stats_api.py +1 -1
  12. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/api/teams_api.py +1 -1
  13. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/api/venues_api.py +1 -1
  14. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/api_client.py +2 -2
  15. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/configuration.py +3 -3
  16. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/exceptions.py +1 -1
  17. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/__init__.py +4 -1
  18. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/adjusted_efficiency_info.py +1 -1
  19. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/conference_history.py +1 -1
  20. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/conference_history_teams_inner.py +1 -1
  21. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/conference_info.py +1 -1
  22. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/game_box_score_players.py +1 -1
  23. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/game_box_score_players_players_inner.py +1 -1
  24. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/game_box_score_team.py +1 -1
  25. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/game_box_score_team_stats.py +1 -1
  26. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/game_box_score_team_stats_points.py +1 -1
  27. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/game_info.py +1 -1
  28. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/game_line_info.py +1 -1
  29. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/game_lines.py +1 -1
  30. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/game_media_info.py +1 -1
  31. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/game_media_info_broadcasts_inner.py +1 -1
  32. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/game_status.py +1 -1
  33. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/line_provider_info.py +1 -1
  34. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/play_info.py +14 -3
  35. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/play_info_participants_inner.py +1 -1
  36. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/play_type_info.py +1 -1
  37. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/player_season_stats.py +1 -1
  38. cbbd-1.9.0/cbbd/models/poll_team_info.py +118 -0
  39. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/season_type.py +1 -1
  40. cbbd-1.9.0/cbbd/models/shot_info.py +104 -0
  41. cbbd-1.9.0/cbbd/models/shot_info_shooter.py +74 -0
  42. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/srs_info.py +1 -1
  43. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/team_info.py +1 -1
  44. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/team_roster.py +1 -1
  45. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/team_roster_player.py +1 -1
  46. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/team_roster_player_hometown.py +1 -1
  47. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/team_season_stats.py +1 -1
  48. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats.py +1 -1
  49. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats_field_goals.py +1 -1
  50. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats_fouls.py +1 -1
  51. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats_four_factors.py +1 -1
  52. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats_points.py +1 -1
  53. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats_rebounds.py +1 -1
  54. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats_turnovers.py +1 -1
  55. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/models/venue_info.py +1 -1
  56. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/rest.py +1 -1
  57. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd.egg-info/PKG-INFO +1 -1
  58. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd.egg-info/SOURCES.txt +8 -0
  59. {cbbd-1.7.3 → cbbd-1.9.0}/pyproject.toml +1 -1
  60. {cbbd-1.7.3 → cbbd-1.9.0}/setup.py +2 -2
  61. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_adjusted_efficiency_info.py +1 -1
  62. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_conference_history.py +1 -1
  63. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_conference_history_teams_inner.py +1 -1
  64. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_conference_info.py +1 -1
  65. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_conferences_api.py +1 -1
  66. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_game_box_score_players.py +1 -1
  67. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_game_box_score_players_players_inner.py +1 -1
  68. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_game_box_score_team.py +1 -1
  69. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_game_box_score_team_stats.py +1 -1
  70. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_game_box_score_team_stats_points.py +1 -1
  71. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_game_info.py +1 -1
  72. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_game_line_info.py +1 -1
  73. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_game_lines.py +1 -1
  74. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_game_media_info.py +1 -1
  75. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_game_media_info_broadcasts_inner.py +1 -1
  76. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_game_status.py +1 -1
  77. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_games_api.py +1 -1
  78. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_line_provider_info.py +1 -1
  79. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_lines_api.py +1 -1
  80. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_play_info.py +22 -2
  81. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_play_info_participants_inner.py +1 -1
  82. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_play_type_info.py +1 -1
  83. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_player_season_stats.py +1 -1
  84. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_plays_api.py +1 -1
  85. cbbd-1.9.0/test/test_poll_team_info.py +74 -0
  86. cbbd-1.9.0/test/test_rankings_api.py +38 -0
  87. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_ratings_api.py +1 -1
  88. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_season_type.py +1 -1
  89. cbbd-1.9.0/test/test_shot_info.py +70 -0
  90. cbbd-1.9.0/test/test_shot_info_shooter.py +56 -0
  91. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_srs_info.py +1 -1
  92. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_stats_api.py +1 -1
  93. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_team_info.py +1 -1
  94. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_team_roster.py +1 -1
  95. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_team_roster_player.py +1 -1
  96. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_team_roster_player_hometown.py +1 -1
  97. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_team_season_stats.py +1 -1
  98. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_team_season_unit_stats.py +1 -1
  99. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_team_season_unit_stats_field_goals.py +1 -1
  100. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_team_season_unit_stats_fouls.py +1 -1
  101. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_team_season_unit_stats_four_factors.py +1 -1
  102. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_team_season_unit_stats_points.py +1 -1
  103. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_team_season_unit_stats_rebounds.py +1 -1
  104. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_team_season_unit_stats_turnovers.py +1 -1
  105. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_teams_api.py +1 -1
  106. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_venue_info.py +1 -1
  107. {cbbd-1.7.3 → cbbd-1.9.0}/test/test_venues_api.py +1 -1
  108. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/api_response.py +0 -0
  109. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd/py.typed +0 -0
  110. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd.egg-info/dependency_links.txt +0 -0
  111. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd.egg-info/requires.txt +0 -0
  112. {cbbd-1.7.3 → cbbd-1.9.0}/cbbd.egg-info/top_level.txt +0 -0
  113. {cbbd-1.7.3 → cbbd-1.9.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: cbbd
3
- Version: 1.7.3
3
+ Version: 1.9.0
4
4
  Summary: College Basketball Data API
5
5
  Home-page: https://github.com/CFBD/cbbd-python
6
6
  Author-email: admin@collegefootballdata.com
@@ -3,8 +3,8 @@ This API is in limited Beta for Patreon subscribers. It may have bugs and is sub
3
3
 
4
4
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5
5
 
6
- - API version: 1.7.3
7
- - Package version: 1.7.3
6
+ - API version: 1.9.0
7
+ - Package version: 1.9.0
8
8
  - Generator version: 7.11.0
9
9
  - Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen
10
10
 
@@ -16,9 +16,9 @@ Python 3.7+
16
16
  ### pip install
17
17
 
18
18
  ```sh
19
- pip install cbbd@1.7.3
19
+ pip install cbbd@1.9.0
20
20
  ```
21
- (you may need to run `pip` with root permission: `sudo pip install cbbd@1.7.3`)
21
+ (you may need to run `pip` with root permission: `sudo pip install cbbd@1.9.0`)
22
22
 
23
23
  Then import the package:
24
24
  ```python
@@ -87,6 +87,7 @@ Class | Method | HTTP request | Description
87
87
  *PlaysApi* | [**get_plays_by_date**](docs/PlaysApi.md#get_plays_by_date) | **GET** /plays/date |
88
88
  *PlaysApi* | [**get_plays_by_player_id**](docs/PlaysApi.md#get_plays_by_player_id) | **GET** /plays/player/{playerId} |
89
89
  *PlaysApi* | [**get_plays_by_team**](docs/PlaysApi.md#get_plays_by_team) | **GET** /plays/team |
90
+ *RankingsApi* | [**get_rankings**](docs/RankingsApi.md#get_rankings) | **GET** /rankings |
90
91
  *RatingsApi* | [**get_adjusted_efficiency**](docs/RatingsApi.md#get_adjusted_efficiency) | **GET** /ratings/adjusted |
91
92
  *RatingsApi* | [**get_srs**](docs/RatingsApi.md#get_srs) | **GET** /ratings/srs |
92
93
  *StatsApi* | [**get_player_season_stats**](docs/StatsApi.md#get_player_season_stats) | **GET** /stats/player/season |
@@ -118,7 +119,10 @@ Class | Method | HTTP request | Description
118
119
  - [PlayInfoParticipantsInner](docs/PlayInfoParticipantsInner.md)
119
120
  - [PlayTypeInfo](docs/PlayTypeInfo.md)
120
121
  - [PlayerSeasonStats](docs/PlayerSeasonStats.md)
122
+ - [PollTeamInfo](docs/PollTeamInfo.md)
121
123
  - [SeasonType](docs/SeasonType.md)
124
+ - [ShotInfo](docs/ShotInfo.md)
125
+ - [ShotInfoShooter](docs/ShotInfoShooter.md)
122
126
  - [SrsInfo](docs/SrsInfo.md)
123
127
  - [TeamInfo](docs/TeamInfo.md)
124
128
  - [TeamRoster](docs/TeamRoster.md)
@@ -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.7.3
10
+ The version of the OpenAPI document: 1.9.0
11
11
  Contact: admin@collegefootballdata.com
12
12
  Generated by OpenAPI Generator (https://openapi-generator.tech)
13
13
 
@@ -15,13 +15,14 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "1.7.3"
18
+ __version__ = "1.9.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
23
  from cbbd.api.lines_api import LinesApi
24
24
  from cbbd.api.plays_api import PlaysApi
25
+ from cbbd.api.rankings_api import RankingsApi
25
26
  from cbbd.api.ratings_api import RatingsApi
26
27
  from cbbd.api.stats_api import StatsApi
27
28
  from cbbd.api.teams_api import TeamsApi
@@ -59,7 +60,10 @@ from cbbd.models.play_info import PlayInfo
59
60
  from cbbd.models.play_info_participants_inner import PlayInfoParticipantsInner
60
61
  from cbbd.models.play_type_info import PlayTypeInfo
61
62
  from cbbd.models.player_season_stats import PlayerSeasonStats
63
+ from cbbd.models.poll_team_info import PollTeamInfo
62
64
  from cbbd.models.season_type import SeasonType
65
+ from cbbd.models.shot_info import ShotInfo
66
+ from cbbd.models.shot_info_shooter import ShotInfoShooter
63
67
  from cbbd.models.srs_info import SrsInfo
64
68
  from cbbd.models.team_info import TeamInfo
65
69
  from cbbd.models.team_roster import TeamRoster
@@ -5,6 +5,7 @@ from cbbd.api.conferences_api import ConferencesApi
5
5
  from cbbd.api.games_api import GamesApi
6
6
  from cbbd.api.lines_api import LinesApi
7
7
  from cbbd.api.plays_api import PlaysApi
8
+ from cbbd.api.rankings_api import RankingsApi
8
9
  from cbbd.api.ratings_api import RatingsApi
9
10
  from cbbd.api.stats_api import StatsApi
10
11
  from cbbd.api.teams_api import TeamsApi
@@ -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.7.3
8
+ The version of the OpenAPI document: 1.9.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.7.3
8
+ The version of the OpenAPI document: 1.9.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.7.3
8
+ The version of the OpenAPI document: 1.9.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.7.3
8
+ The version of the OpenAPI document: 1.9.0
9
9
  Contact: admin@collegefootballdata.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -22,9 +22,9 @@ from pydantic import validate_arguments, ValidationError
22
22
  from typing_extensions import Annotated
23
23
  from datetime import datetime
24
24
 
25
- from pydantic import Field, StrictInt, StrictStr
25
+ from pydantic import Field, StrictBool, StrictInt, StrictStr
26
26
 
27
- from typing import List
27
+ from typing import List, Optional
28
28
 
29
29
  from cbbd.models.play_info import PlayInfo
30
30
  from cbbd.models.play_type_info import PlayTypeInfo
@@ -182,18 +182,20 @@ class PlaysApi:
182
182
  _request_auth=_params.get('_request_auth'))
183
183
 
184
184
  @validate_arguments
185
- def get_plays(self, game_id : Annotated[StrictInt, Field(..., description="Game id filter")], **kwargs) -> List[PlayInfo]: # noqa: E501
185
+ def get_plays(self, game_id : Annotated[StrictInt, Field(..., description="Game id filter")], shooting_plays_only : Annotated[Optional[StrictBool], Field(description="Optional filter to only return shooting plays")] = None, **kwargs) -> List[PlayInfo]: # noqa: E501
186
186
  """get_plays # noqa: E501
187
187
 
188
188
  Returns all plays for a given game # noqa: E501
189
189
  This method makes a synchronous HTTP request by default. To make an
190
190
  asynchronous HTTP request, please pass async_req=True
191
191
 
192
- >>> thread = api.get_plays(game_id, async_req=True)
192
+ >>> thread = api.get_plays(game_id, shooting_plays_only, async_req=True)
193
193
  >>> result = thread.get()
194
194
 
195
195
  :param game_id: Game id filter (required)
196
196
  :type game_id: int
197
+ :param shooting_plays_only: Optional filter to only return shooting plays
198
+ :type shooting_plays_only: bool
197
199
  :param async_req: Whether to execute the request asynchronously.
198
200
  :type async_req: bool, optional
199
201
  :param _request_timeout: timeout setting for this request.
@@ -209,21 +211,23 @@ class PlaysApi:
209
211
  if '_preload_content' in kwargs:
210
212
  message = "Error! Please call the get_plays_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
211
213
  raise ValueError(message)
212
- return self.get_plays_with_http_info(game_id, **kwargs) # noqa: E501
214
+ return self.get_plays_with_http_info(game_id, shooting_plays_only, **kwargs) # noqa: E501
213
215
 
214
216
  @validate_arguments
215
- def get_plays_with_http_info(self, game_id : Annotated[StrictInt, Field(..., description="Game id filter")], **kwargs) -> ApiResponse: # noqa: E501
217
+ def get_plays_with_http_info(self, game_id : Annotated[StrictInt, Field(..., description="Game id filter")], shooting_plays_only : Annotated[Optional[StrictBool], Field(description="Optional filter to only return shooting plays")] = None, **kwargs) -> ApiResponse: # noqa: E501
216
218
  """get_plays # noqa: E501
217
219
 
218
220
  Returns all plays for a given game # noqa: E501
219
221
  This method makes a synchronous HTTP request by default. To make an
220
222
  asynchronous HTTP request, please pass async_req=True
221
223
 
222
- >>> thread = api.get_plays_with_http_info(game_id, async_req=True)
224
+ >>> thread = api.get_plays_with_http_info(game_id, shooting_plays_only, async_req=True)
223
225
  >>> result = thread.get()
224
226
 
225
227
  :param game_id: Game id filter (required)
226
228
  :type game_id: int
229
+ :param shooting_plays_only: Optional filter to only return shooting plays
230
+ :type shooting_plays_only: bool
227
231
  :param async_req: Whether to execute the request asynchronously.
228
232
  :type async_req: bool, optional
229
233
  :param _preload_content: if False, the ApiResponse.data will
@@ -252,7 +256,8 @@ class PlaysApi:
252
256
  _params = locals()
253
257
 
254
258
  _all_params = [
255
- 'game_id'
259
+ 'game_id',
260
+ 'shooting_plays_only'
256
261
  ]
257
262
  _all_params.extend(
258
263
  [
@@ -286,6 +291,9 @@ class PlaysApi:
286
291
 
287
292
  # process the query parameters
288
293
  _query_params = []
294
+ if _params.get('shooting_plays_only') is not None: # noqa: E501
295
+ _query_params.append(('shootingPlaysOnly', _params['shooting_plays_only']))
296
+
289
297
  # process the header parameters
290
298
  _header_params = dict(_params.get('_headers', {}))
291
299
  # process the form parameters
@@ -322,18 +330,20 @@ class PlaysApi:
322
330
  _request_auth=_params.get('_request_auth'))
323
331
 
324
332
  @validate_arguments
325
- def get_plays_by_date(self, var_date : Annotated[datetime, Field(..., description="Required date filter in ISO 8601 format (YYYY-MM-DD)")], **kwargs) -> List[PlayInfo]: # noqa: E501
333
+ def get_plays_by_date(self, var_date : Annotated[datetime, Field(..., description="Required date filter in ISO 8601 format (YYYY-MM-DD)")], shooting_plays_only : Annotated[Optional[StrictBool], Field(description="Optional filter to only return shooting plays")] = None, **kwargs) -> List[PlayInfo]: # noqa: E501
326
334
  """get_plays_by_date # noqa: E501
327
335
 
328
336
  Retrieve all plays for a given UTC date # noqa: E501
329
337
  This method makes a synchronous HTTP request by default. To make an
330
338
  asynchronous HTTP request, please pass async_req=True
331
339
 
332
- >>> thread = api.get_plays_by_date(var_date, async_req=True)
340
+ >>> thread = api.get_plays_by_date(var_date, shooting_plays_only, async_req=True)
333
341
  >>> result = thread.get()
334
342
 
335
343
  :param var_date: Required date filter in ISO 8601 format (YYYY-MM-DD) (required)
336
344
  :type var_date: datetime
345
+ :param shooting_plays_only: Optional filter to only return shooting plays
346
+ :type shooting_plays_only: bool
337
347
  :param async_req: Whether to execute the request asynchronously.
338
348
  :type async_req: bool, optional
339
349
  :param _request_timeout: timeout setting for this request.
@@ -349,21 +359,23 @@ class PlaysApi:
349
359
  if '_preload_content' in kwargs:
350
360
  message = "Error! Please call the get_plays_by_date_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
351
361
  raise ValueError(message)
352
- return self.get_plays_by_date_with_http_info(var_date, **kwargs) # noqa: E501
362
+ return self.get_plays_by_date_with_http_info(var_date, shooting_plays_only, **kwargs) # noqa: E501
353
363
 
354
364
  @validate_arguments
355
- def get_plays_by_date_with_http_info(self, var_date : Annotated[datetime, Field(..., description="Required date filter in ISO 8601 format (YYYY-MM-DD)")], **kwargs) -> ApiResponse: # noqa: E501
365
+ def get_plays_by_date_with_http_info(self, var_date : Annotated[datetime, Field(..., description="Required date filter in ISO 8601 format (YYYY-MM-DD)")], shooting_plays_only : Annotated[Optional[StrictBool], Field(description="Optional filter to only return shooting plays")] = None, **kwargs) -> ApiResponse: # noqa: E501
356
366
  """get_plays_by_date # noqa: E501
357
367
 
358
368
  Retrieve all plays for a given UTC date # noqa: E501
359
369
  This method makes a synchronous HTTP request by default. To make an
360
370
  asynchronous HTTP request, please pass async_req=True
361
371
 
362
- >>> thread = api.get_plays_by_date_with_http_info(var_date, async_req=True)
372
+ >>> thread = api.get_plays_by_date_with_http_info(var_date, shooting_plays_only, async_req=True)
363
373
  >>> result = thread.get()
364
374
 
365
375
  :param var_date: Required date filter in ISO 8601 format (YYYY-MM-DD) (required)
366
376
  :type var_date: datetime
377
+ :param shooting_plays_only: Optional filter to only return shooting plays
378
+ :type shooting_plays_only: bool
367
379
  :param async_req: Whether to execute the request asynchronously.
368
380
  :type async_req: bool, optional
369
381
  :param _preload_content: if False, the ApiResponse.data will
@@ -392,7 +404,8 @@ class PlaysApi:
392
404
  _params = locals()
393
405
 
394
406
  _all_params = [
395
- 'var_date'
407
+ 'var_date',
408
+ 'shooting_plays_only'
396
409
  ]
397
410
  _all_params.extend(
398
411
  [
@@ -429,6 +442,9 @@ class PlaysApi:
429
442
  else:
430
443
  _query_params.append(('date', _params['var_date']))
431
444
 
445
+ if _params.get('shooting_plays_only') is not None: # noqa: E501
446
+ _query_params.append(('shootingPlaysOnly', _params['shooting_plays_only']))
447
+
432
448
  # process the header parameters
433
449
  _header_params = dict(_params.get('_headers', {}))
434
450
  # process the form parameters
@@ -465,20 +481,22 @@ class PlaysApi:
465
481
  _request_auth=_params.get('_request_auth'))
466
482
 
467
483
  @validate_arguments
468
- def get_plays_by_player_id(self, player_id : Annotated[StrictInt, Field(..., description="Required player id filter")], season : Annotated[StrictInt, Field(..., description="Required season filter")], **kwargs) -> List[PlayInfo]: # noqa: E501
484
+ def get_plays_by_player_id(self, player_id : Annotated[StrictInt, Field(..., description="Required player id filter")], season : Annotated[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
469
485
  """get_plays_by_player_id # noqa: E501
470
486
 
471
487
  Retrieve all plays for a given player and season # noqa: E501
472
488
  This method makes a synchronous HTTP request by default. To make an
473
489
  asynchronous HTTP request, please pass async_req=True
474
490
 
475
- >>> thread = api.get_plays_by_player_id(player_id, season, async_req=True)
491
+ >>> thread = api.get_plays_by_player_id(player_id, season, shooting_plays_only, async_req=True)
476
492
  >>> result = thread.get()
477
493
 
478
494
  :param player_id: Required player id filter (required)
479
495
  :type player_id: int
480
496
  :param season: Required season filter (required)
481
497
  :type season: int
498
+ :param shooting_plays_only: Optional filter to only return shooting plays
499
+ :type shooting_plays_only: bool
482
500
  :param async_req: Whether to execute the request asynchronously.
483
501
  :type async_req: bool, optional
484
502
  :param _request_timeout: timeout setting for this request.
@@ -494,23 +512,25 @@ class PlaysApi:
494
512
  if '_preload_content' in kwargs:
495
513
  message = "Error! Please call the get_plays_by_player_id_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
496
514
  raise ValueError(message)
497
- return self.get_plays_by_player_id_with_http_info(player_id, season, **kwargs) # noqa: E501
515
+ return self.get_plays_by_player_id_with_http_info(player_id, season, shooting_plays_only, **kwargs) # noqa: E501
498
516
 
499
517
  @validate_arguments
500
- def get_plays_by_player_id_with_http_info(self, player_id : Annotated[StrictInt, Field(..., description="Required player id filter")], season : Annotated[StrictInt, Field(..., description="Required season filter")], **kwargs) -> ApiResponse: # noqa: E501
518
+ def get_plays_by_player_id_with_http_info(self, player_id : Annotated[StrictInt, Field(..., description="Required player id filter")], season : Annotated[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
501
519
  """get_plays_by_player_id # noqa: E501
502
520
 
503
521
  Retrieve all plays for a given player and season # noqa: E501
504
522
  This method makes a synchronous HTTP request by default. To make an
505
523
  asynchronous HTTP request, please pass async_req=True
506
524
 
507
- >>> thread = api.get_plays_by_player_id_with_http_info(player_id, season, async_req=True)
525
+ >>> thread = api.get_plays_by_player_id_with_http_info(player_id, season, shooting_plays_only, async_req=True)
508
526
  >>> result = thread.get()
509
527
 
510
528
  :param player_id: Required player id filter (required)
511
529
  :type player_id: int
512
530
  :param season: Required season filter (required)
513
531
  :type season: int
532
+ :param shooting_plays_only: Optional filter to only return shooting plays
533
+ :type shooting_plays_only: bool
514
534
  :param async_req: Whether to execute the request asynchronously.
515
535
  :type async_req: bool, optional
516
536
  :param _preload_content: if False, the ApiResponse.data will
@@ -540,7 +560,8 @@ class PlaysApi:
540
560
 
541
561
  _all_params = [
542
562
  'player_id',
543
- 'season'
563
+ 'season',
564
+ 'shooting_plays_only'
544
565
  ]
545
566
  _all_params.extend(
546
567
  [
@@ -577,6 +598,9 @@ class PlaysApi:
577
598
  if _params.get('season') is not None: # noqa: E501
578
599
  _query_params.append(('season', _params['season']))
579
600
 
601
+ if _params.get('shooting_plays_only') is not None: # noqa: E501
602
+ _query_params.append(('shootingPlaysOnly', _params['shooting_plays_only']))
603
+
580
604
  # process the header parameters
581
605
  _header_params = dict(_params.get('_headers', {}))
582
606
  # process the form parameters
@@ -613,20 +637,22 @@ class PlaysApi:
613
637
  _request_auth=_params.get('_request_auth'))
614
638
 
615
639
  @validate_arguments
616
- def get_plays_by_team(self, season : Annotated[StrictInt, Field(..., description="Required season filter")], team : Annotated[StrictStr, Field(..., description="Required team filter")], **kwargs) -> List[PlayInfo]: # noqa: E501
640
+ def get_plays_by_team(self, season : Annotated[StrictInt, Field(..., description="Required season filter")], team : Annotated[StrictStr, Field(..., description="Required team filter")], shooting_plays_only : Annotated[Optional[StrictBool], Field(description="Optional filter to only return shooting plays")] = None, **kwargs) -> List[PlayInfo]: # noqa: E501
617
641
  """get_plays_by_team # noqa: E501
618
642
 
619
643
  Retrieve all plays for a given team and season # noqa: E501
620
644
  This method makes a synchronous HTTP request by default. To make an
621
645
  asynchronous HTTP request, please pass async_req=True
622
646
 
623
- >>> thread = api.get_plays_by_team(season, team, async_req=True)
647
+ >>> thread = api.get_plays_by_team(season, team, shooting_plays_only, async_req=True)
624
648
  >>> result = thread.get()
625
649
 
626
650
  :param season: Required season filter (required)
627
651
  :type season: int
628
652
  :param team: Required team filter (required)
629
653
  :type team: str
654
+ :param shooting_plays_only: Optional filter to only return shooting plays
655
+ :type shooting_plays_only: bool
630
656
  :param async_req: Whether to execute the request asynchronously.
631
657
  :type async_req: bool, optional
632
658
  :param _request_timeout: timeout setting for this request.
@@ -642,23 +668,25 @@ class PlaysApi:
642
668
  if '_preload_content' in kwargs:
643
669
  message = "Error! Please call the get_plays_by_team_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
644
670
  raise ValueError(message)
645
- return self.get_plays_by_team_with_http_info(season, team, **kwargs) # noqa: E501
671
+ return self.get_plays_by_team_with_http_info(season, team, shooting_plays_only, **kwargs) # noqa: E501
646
672
 
647
673
  @validate_arguments
648
- def get_plays_by_team_with_http_info(self, season : Annotated[StrictInt, Field(..., description="Required season filter")], team : Annotated[StrictStr, Field(..., description="Required team filter")], **kwargs) -> ApiResponse: # noqa: E501
674
+ def get_plays_by_team_with_http_info(self, season : Annotated[StrictInt, Field(..., description="Required season filter")], team : Annotated[StrictStr, Field(..., description="Required team filter")], shooting_plays_only : Annotated[Optional[StrictBool], Field(description="Optional filter to only return shooting plays")] = None, **kwargs) -> ApiResponse: # noqa: E501
649
675
  """get_plays_by_team # noqa: E501
650
676
 
651
677
  Retrieve all plays for a given team and season # noqa: E501
652
678
  This method makes a synchronous HTTP request by default. To make an
653
679
  asynchronous HTTP request, please pass async_req=True
654
680
 
655
- >>> thread = api.get_plays_by_team_with_http_info(season, team, async_req=True)
681
+ >>> thread = api.get_plays_by_team_with_http_info(season, team, shooting_plays_only, async_req=True)
656
682
  >>> result = thread.get()
657
683
 
658
684
  :param season: Required season filter (required)
659
685
  :type season: int
660
686
  :param team: Required team filter (required)
661
687
  :type team: str
688
+ :param shooting_plays_only: Optional filter to only return shooting plays
689
+ :type shooting_plays_only: bool
662
690
  :param async_req: Whether to execute the request asynchronously.
663
691
  :type async_req: bool, optional
664
692
  :param _preload_content: if False, the ApiResponse.data will
@@ -688,7 +716,8 @@ class PlaysApi:
688
716
 
689
717
  _all_params = [
690
718
  'season',
691
- 'team'
719
+ 'team',
720
+ 'shooting_plays_only'
692
721
  ]
693
722
  _all_params.extend(
694
723
  [
@@ -725,6 +754,9 @@ class PlaysApi:
725
754
  if _params.get('team') is not None: # noqa: E501
726
755
  _query_params.append(('team', _params['team']))
727
756
 
757
+ if _params.get('shooting_plays_only') is not None: # noqa: E501
758
+ _query_params.append(('shootingPlaysOnly', _params['shooting_plays_only']))
759
+
728
760
  # process the header parameters
729
761
  _header_params = dict(_params.get('_headers', {}))
730
762
  # process the form parameters
@@ -0,0 +1,228 @@
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.9.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.poll_team_info import PollTeamInfo
28
+ from cbbd.models.season_type import SeasonType
29
+
30
+ from cbbd.api_client import ApiClient
31
+ from cbbd.api_response import ApiResponse
32
+ from cbbd.exceptions import ( # noqa: F401
33
+ ApiTypeError,
34
+ ApiValueError
35
+ )
36
+
37
+
38
+ class RankingsApi:
39
+ """NOTE: This class is auto generated by OpenAPI Generator
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+ """
44
+
45
+ def __init__(self, api_client=None) -> None:
46
+ if api_client is None:
47
+ api_client = ApiClient.get_default()
48
+ self.api_client = api_client
49
+
50
+ @validate_arguments
51
+ def get_rankings(self, season : Annotated[Optional[StrictInt], Field(description="Optional season filter")] = None, season_type : Annotated[Optional[SeasonType], Field(description="Optional season type filter")] = None, week : Annotated[Optional[StrictInt], Field(description="Optional week filter")] = None, poll_type : Annotated[Optional[StrictStr], Field(description="Optional poll type filter (\"ap\" or \"coaches\")")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference filter")] = None, **kwargs) -> List[PollTeamInfo]: # noqa: E501
52
+ """get_rankings # noqa: E501
53
+
54
+ Retrieves historical poll data # 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_rankings(season, season_type, week, poll_type, team, conference, async_req=True)
59
+ >>> result = thread.get()
60
+
61
+ :param season: Optional season filter
62
+ :type season: int
63
+ :param season_type: Optional season type filter
64
+ :type season_type: SeasonType
65
+ :param week: Optional week filter
66
+ :type week: int
67
+ :param poll_type: Optional poll type filter (\"ap\" or \"coaches\")
68
+ :type poll_type: str
69
+ :param team: Optional team filter
70
+ :type team: str
71
+ :param conference: Optional conference filter
72
+ :type conference: str
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[PollTeamInfo]
83
+ """
84
+ kwargs['_return_http_data_only'] = True
85
+ if '_preload_content' in kwargs:
86
+ message = "Error! Please call the get_rankings_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_rankings_with_http_info(season, season_type, week, poll_type, team, conference, **kwargs) # noqa: E501
89
+
90
+ @validate_arguments
91
+ def get_rankings_with_http_info(self, season : Annotated[Optional[StrictInt], Field(description="Optional season filter")] = None, season_type : Annotated[Optional[SeasonType], Field(description="Optional season type filter")] = None, week : Annotated[Optional[StrictInt], Field(description="Optional week filter")] = None, poll_type : Annotated[Optional[StrictStr], Field(description="Optional poll type filter (\"ap\" or \"coaches\")")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference filter")] = None, **kwargs) -> ApiResponse: # noqa: E501
92
+ """get_rankings # noqa: E501
93
+
94
+ Retrieves historical poll data # 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_rankings_with_http_info(season, season_type, week, poll_type, team, conference, async_req=True)
99
+ >>> result = thread.get()
100
+
101
+ :param season: Optional season filter
102
+ :type season: int
103
+ :param season_type: Optional season type filter
104
+ :type season_type: SeasonType
105
+ :param week: Optional week filter
106
+ :type week: int
107
+ :param poll_type: Optional poll type filter (\"ap\" or \"coaches\")
108
+ :type poll_type: str
109
+ :param team: Optional team filter
110
+ :type team: str
111
+ :param conference: Optional conference filter
112
+ :type conference: str
113
+ :param async_req: Whether to execute the request asynchronously.
114
+ :type async_req: bool, optional
115
+ :param _preload_content: if False, the ApiResponse.data will
116
+ be set to none and raw_data will store the
117
+ HTTP response body without reading/decoding.
118
+ Default is True.
119
+ :type _preload_content: bool, optional
120
+ :param _return_http_data_only: response data instead of ApiResponse
121
+ object with status code, headers, etc
122
+ :type _return_http_data_only: bool, optional
123
+ :param _request_timeout: timeout setting for this request. If one
124
+ number provided, it will be total request
125
+ timeout. It can also be a pair (tuple) of
126
+ (connection, read) timeouts.
127
+ :param _request_auth: set to override the auth_settings for an a single
128
+ request; this effectively ignores the authentication
129
+ in the spec for a single request.
130
+ :type _request_auth: dict, optional
131
+ :type _content_type: string, optional: force content-type for the request
132
+ :return: Returns the result object.
133
+ If the method is called asynchronously,
134
+ returns the request thread.
135
+ :rtype: tuple(List[PollTeamInfo], status_code(int), headers(HTTPHeaderDict))
136
+ """
137
+
138
+ _params = locals()
139
+
140
+ _all_params = [
141
+ 'season',
142
+ 'season_type',
143
+ 'week',
144
+ 'poll_type',
145
+ 'team',
146
+ 'conference'
147
+ ]
148
+ _all_params.extend(
149
+ [
150
+ 'async_req',
151
+ '_return_http_data_only',
152
+ '_preload_content',
153
+ '_request_timeout',
154
+ '_request_auth',
155
+ '_content_type',
156
+ '_headers'
157
+ ]
158
+ )
159
+
160
+ # validate the arguments
161
+ for _key, _val in _params['kwargs'].items():
162
+ if _key not in _all_params:
163
+ raise ApiTypeError(
164
+ "Got an unexpected keyword argument '%s'"
165
+ " to method get_rankings" % _key
166
+ )
167
+ _params[_key] = _val
168
+ del _params['kwargs']
169
+
170
+ _collection_formats = {}
171
+
172
+ # process the path parameters
173
+ _path_params = {}
174
+
175
+ # process the query parameters
176
+ _query_params = []
177
+ if _params.get('season') is not None: # noqa: E501
178
+ _query_params.append(('season', _params['season']))
179
+
180
+ if _params.get('season_type') is not None: # noqa: E501
181
+ _query_params.append(('seasonType', _params['season_type'].value))
182
+
183
+ if _params.get('week') is not None: # noqa: E501
184
+ _query_params.append(('week', _params['week']))
185
+
186
+ if _params.get('poll_type') is not None: # noqa: E501
187
+ _query_params.append(('pollType', _params['poll_type']))
188
+
189
+ if _params.get('team') is not None: # noqa: E501
190
+ _query_params.append(('team', _params['team']))
191
+
192
+ if _params.get('conference') is not None: # noqa: E501
193
+ _query_params.append(('conference', _params['conference']))
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[PollTeamInfo]",
211
+ }
212
+
213
+ return self.api_client.call_api(
214
+ '/rankings', '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'))