cbbd 1.8.0__tar.gz → 1.9.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {cbbd-1.8.0 → cbbd-1.9.0}/PKG-INFO +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/README.md +6 -4
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/__init__.py +4 -2
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/api/__init__.py +1 -0
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/api/conferences_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/api/games_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/api/lines_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/api/plays_api.py +1 -1
- cbbd-1.9.0/cbbd/api/rankings_api.py +228 -0
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/api/ratings_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/api/stats_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/api/teams_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/api/venues_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/api_client.py +2 -2
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/configuration.py +3 -3
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/exceptions.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/__init__.py +2 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/adjusted_efficiency_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/conference_history.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/conference_history_teams_inner.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/conference_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/game_box_score_players.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/game_box_score_players_players_inner.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/game_box_score_team.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/game_box_score_team_stats.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/game_box_score_team_stats_points.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/game_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/game_line_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/game_lines.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/game_media_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/game_media_info_broadcasts_inner.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/game_status.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/line_provider_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/play_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/play_info_participants_inner.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/play_type_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/player_season_stats.py +1 -1
- cbbd-1.9.0/cbbd/models/poll_team_info.py +118 -0
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/season_type.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/shot_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/shot_info_shooter.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/srs_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/team_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/team_roster.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/team_roster_player.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/team_roster_player_hometown.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/team_season_stats.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats_field_goals.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats_fouls.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats_four_factors.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats_points.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats_rebounds.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/team_season_unit_stats_turnovers.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/models/venue_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/rest.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd.egg-info/PKG-INFO +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd.egg-info/SOURCES.txt +4 -0
- {cbbd-1.8.0 → cbbd-1.9.0}/pyproject.toml +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/setup.py +2 -2
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_adjusted_efficiency_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_conference_history.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_conference_history_teams_inner.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_conference_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_conferences_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_game_box_score_players.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_game_box_score_players_players_inner.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_game_box_score_team.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_game_box_score_team_stats.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_game_box_score_team_stats_points.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_game_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_game_line_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_game_lines.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_game_media_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_game_media_info_broadcasts_inner.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_game_status.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_games_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_line_provider_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_lines_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_play_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_play_info_participants_inner.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_play_type_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_player_season_stats.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_plays_api.py +1 -1
- cbbd-1.9.0/test/test_poll_team_info.py +74 -0
- cbbd-1.9.0/test/test_rankings_api.py +38 -0
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_ratings_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_season_type.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_shot_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_shot_info_shooter.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_srs_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_stats_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_team_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_team_roster.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_team_roster_player.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_team_roster_player_hometown.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_team_season_stats.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_team_season_unit_stats.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_team_season_unit_stats_field_goals.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_team_season_unit_stats_fouls.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_team_season_unit_stats_four_factors.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_team_season_unit_stats_points.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_team_season_unit_stats_rebounds.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_team_season_unit_stats_turnovers.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_teams_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_venue_info.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/test/test_venues_api.py +1 -1
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/api_response.py +0 -0
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd/py.typed +0 -0
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd.egg-info/dependency_links.txt +0 -0
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd.egg-info/requires.txt +0 -0
- {cbbd-1.8.0 → cbbd-1.9.0}/cbbd.egg-info/top_level.txt +0 -0
- {cbbd-1.8.0 → cbbd-1.9.0}/setup.cfg +0 -0
@@ -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
|
-
- Package version: 1.
|
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.
|
19
|
+
pip install cbbd@1.9.0
|
20
20
|
```
|
21
|
-
(you may need to run `pip` with root permission: `sudo pip install cbbd@1.
|
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,6 +119,7 @@ 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)
|
122
124
|
- [ShotInfo](docs/ShotInfo.md)
|
123
125
|
- [ShotInfoShooter](docs/ShotInfoShooter.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.
|
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.
|
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,6 +60,7 @@ 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
|
63
65
|
from cbbd.models.shot_info import ShotInfo
|
64
66
|
from cbbd.models.shot_info_shooter import ShotInfoShooter
|
@@ -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.
|
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.
|
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.
|
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.
|
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
|
|
@@ -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'))
|
@@ -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.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.
|
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.
|
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.
|
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.
|
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
|
|
@@ -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.9.0/python'
|
82
82
|
self.client_side_validation = configuration.client_side_validation
|
83
83
|
|
84
84
|
def __enter__(self):
|
@@ -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.9.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.9.0\n"\
|
380
|
+
"SDK Package Version: 1.9.0".\
|
381
381
|
format(env=sys.platform, pyversion=sys.version)
|
382
382
|
|
383
383
|
def get_host_settings(self):
|
@@ -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.9.0
|
9
9
|
Contact: admin@collegefootballdata.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
|
8
8
|
|
9
|
-
The version of the OpenAPI document: 1.
|
9
|
+
The version of the OpenAPI document: 1.9.0
|
10
10
|
Contact: admin@collegefootballdata.com
|
11
11
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
12
12
|
|
@@ -35,6 +35,7 @@ from cbbd.models.play_info import PlayInfo
|
|
35
35
|
from cbbd.models.play_info_participants_inner import PlayInfoParticipantsInner
|
36
36
|
from cbbd.models.play_type_info import PlayTypeInfo
|
37
37
|
from cbbd.models.player_season_stats import PlayerSeasonStats
|
38
|
+
from cbbd.models.poll_team_info import PollTeamInfo
|
38
39
|
from cbbd.models.season_type import SeasonType
|
39
40
|
from cbbd.models.shot_info import ShotInfo
|
40
41
|
from cbbd.models.shot_info_shooter import ShotInfoShooter
|
@@ -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.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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|
|