From a98b08cd0c0aafb04d1e866f23cf38e33213fd92 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 22 Sep 2024 14:45:45 +0000 Subject: [PATCH] feat(wepa): moving team endpoint and adding new player endpoints --- .openapi-generator/FILES | 33 +- README.md | 42 +- cfbd/__init__.py | 15 +- cfbd/api/__init__.py | 1 + cfbd/api/adjusted_metrics_api.py | 689 ++++++++++++++++++ cfbd/api/betting_api.py | 2 +- cfbd/api/coaches_api.py | 2 +- cfbd/api/conferences_api.py | 2 +- cfbd/api/draft_api.py | 2 +- cfbd/api/drives_api.py | 2 +- cfbd/api/games_api.py | 2 +- cfbd/api/metrics_api.py | 2 +- cfbd/api/players_api.py | 2 +- cfbd/api/plays_api.py | 2 +- cfbd/api/rankings_api.py | 2 +- cfbd/api/ratings_api.py | 2 +- cfbd/api/recruiting_api.py | 2 +- cfbd/api/stats_api.py | 159 +--- cfbd/api/teams_api.py | 2 +- cfbd/api/venues_api.py | 2 +- cfbd/api_client.py | 4 +- cfbd/configuration.py | 6 +- cfbd/exceptions.py | 2 +- cfbd/models/__init__.py | 12 +- cfbd/models/adjusted_team_metrics.py | 115 +++ cfbd/models/adjusted_team_metrics_epa.py | 76 ++ cfbd/models/adjusted_team_metrics_rushing.py | 76 ++ .../adjusted_team_metrics_success_rate.py | 76 ++ cfbd/models/advanced_box_score.py | 2 +- cfbd/models/advanced_box_score_game_info.py | 2 +- cfbd/models/advanced_box_score_players.py | 2 +- cfbd/models/advanced_box_score_teams.py | 2 +- cfbd/models/advanced_game_stat.py | 2 +- cfbd/models/advanced_game_stat_offense.py | 2 +- ...dvanced_game_stat_offense_passing_downs.py | 2 +- ...dvanced_game_stat_offense_passing_plays.py | 2 +- cfbd/models/advanced_season_stat.py | 2 +- cfbd/models/advanced_season_stat_defense.py | 2 +- cfbd/models/advanced_season_stat_offense.py | 2 +- ...nced_season_stat_offense_field_position.py | 2 +- .../advanced_season_stat_offense_havoc.py | 2 +- ...anced_season_stat_offense_passing_downs.py | 2 +- ...anced_season_stat_offense_passing_plays.py | 2 +- cfbd/models/aggregated_team_recruiting.py | 2 +- cfbd/models/betting_game.py | 2 +- cfbd/models/calendar_week.py | 2 +- cfbd/models/coach.py | 2 +- cfbd/models/coach_season.py | 2 +- cfbd/models/conference.py | 2 +- cfbd/models/conference_sp.py | 2 +- cfbd/models/conference_sp_defense.py | 2 +- cfbd/models/conference_sp_offense.py | 2 +- cfbd/models/division_classification.py | 2 +- cfbd/models/draft_pick.py | 2 +- cfbd/models/draft_pick_hometown_info.py | 2 +- cfbd/models/draft_position.py | 2 +- cfbd/models/draft_team.py | 2 +- cfbd/models/drive.py | 2 +- cfbd/models/field_goal_ep.py | 2 +- cfbd/models/game.py | 2 +- cfbd/models/game_line.py | 2 +- cfbd/models/game_media.py | 2 +- cfbd/models/game_player_stat_categories.py | 2 +- cfbd/models/game_player_stat_player.py | 2 +- cfbd/models/game_player_stat_types.py | 2 +- cfbd/models/game_player_stats.py | 2 +- cfbd/models/game_player_stats_team.py | 2 +- cfbd/models/game_status.py | 2 +- cfbd/models/game_team_stats.py | 2 +- cfbd/models/game_team_stats_team.py | 2 +- cfbd/models/game_team_stats_team_stat.py | 2 +- cfbd/models/game_weather.py | 2 +- cfbd/models/kicker_paar.py | 84 +++ cfbd/models/live_game.py | 2 +- cfbd/models/live_game_drive.py | 2 +- cfbd/models/live_game_play.py | 2 +- cfbd/models/live_game_team.py | 2 +- cfbd/models/matchup.py | 2 +- cfbd/models/matchup_game.py | 2 +- cfbd/models/media_type.py | 2 +- cfbd/models/play.py | 2 +- cfbd/models/play_clock.py | 2 +- cfbd/models/play_stat.py | 2 +- cfbd/models/play_stat_clock.py | 2 +- cfbd/models/play_stat_type.py | 2 +- cfbd/models/play_type.py | 2 +- cfbd/models/play_win_probability.py | 2 +- .../player_game_predicted_points_added.py | 2 +- ...game_predicted_points_added_average_ppa.py | 2 +- cfbd/models/player_game_usage.py | 2 +- cfbd/models/player_ppa.py | 2 +- cfbd/models/player_ppa_chart_item.py | 2 +- cfbd/models/player_search_result.py | 2 +- .../player_season_predicted_points_added.py | 2 +- ...ason_predicted_points_added_average_ppa.py | 2 +- cfbd/models/player_stat.py | 2 +- cfbd/models/player_stats_by_quarter.py | 2 +- cfbd/models/player_transfer.py | 2 +- cfbd/models/player_usage.py | 2 +- cfbd/models/player_usage_usage.py | 2 +- cfbd/models/player_weighted_epa.py | 86 +++ cfbd/models/poll.py | 2 +- cfbd/models/poll_rank.py | 2 +- cfbd/models/poll_week.py | 2 +- cfbd/models/predicted_points_value.py | 2 +- cfbd/models/pregame_win_probability.py | 2 +- cfbd/models/recruit.py | 2 +- cfbd/models/recruit_classification.py | 2 +- cfbd/models/recruit_hometown_info.py | 2 +- cfbd/models/returning_production.py | 2 +- cfbd/models/roster_player.py | 2 +- cfbd/models/scoreboard_game.py | 2 +- cfbd/models/scoreboard_game_betting.py | 2 +- cfbd/models/scoreboard_game_home_team.py | 2 +- cfbd/models/scoreboard_game_venue.py | 2 +- cfbd/models/scoreboard_game_weather.py | 2 +- cfbd/models/season_type.py | 2 +- cfbd/models/stats_by_quarter.py | 2 +- cfbd/models/team.py | 2 +- cfbd/models/team_elo.py | 2 +- cfbd/models/team_explosiveness.py | 2 +- cfbd/models/team_field_position.py | 2 +- cfbd/models/team_fpi.py | 2 +- cfbd/models/team_fpi_efficiencies.py | 2 +- cfbd/models/team_fpi_resume_ranks.py | 2 +- .../team_game_predicted_points_added.py | 2 +- ...eam_game_predicted_points_added_offense.py | 2 +- cfbd/models/team_havoc.py | 2 +- cfbd/models/team_ppa.py | 2 +- cfbd/models/team_record.py | 2 +- cfbd/models/team_records.py | 2 +- cfbd/models/team_recruiting_ranking.py | 2 +- cfbd/models/team_rushing_stats.py | 2 +- cfbd/models/team_scoring_opportunities.py | 2 +- .../team_season_predicted_points_added.py | 2 +- ...m_season_predicted_points_added_offense.py | 8 +- cfbd/models/team_sp.py | 2 +- cfbd/models/team_sp_defense.py | 2 +- cfbd/models/team_sp_offense.py | 2 +- cfbd/models/team_sp_special_teams.py | 2 +- cfbd/models/team_srs.py | 2 +- cfbd/models/team_stat.py | 2 +- cfbd/models/team_stat_stat_value.py | 2 +- cfbd/models/team_success_rates.py | 2 +- cfbd/models/team_talent.py | 2 +- cfbd/models/transfer_eligibility.py | 2 +- cfbd/models/venue.py | 2 +- cfbd/rest.py | 2 +- docs/AdjustedMetricsApi.md | 336 +++++++++ docs/AdjustedTeamMetrics.md | 39 + docs/AdjustedTeamMetricsEpa.md | 30 + docs/AdjustedTeamMetricsRushing.md | 30 + docs/AdjustedTeamMetricsSuccessRate.md | 30 + docs/KickerPAAR.md | 34 + docs/PlayerWeightedEPA.md | 35 + docs/StatsApi.md | 81 -- docs/TeamSeasonPredictedPointsAddedOffense.md | 2 +- pyproject.toml | 2 +- setup.py | 4 +- test/test_adjusted_metrics_api.py | 56 ++ test/test_adjusted_team_metrics.py | 112 +++ test/test_adjusted_team_metrics_epa.py | 58 ++ test/test_adjusted_team_metrics_rushing.py | 58 ++ ...test_adjusted_team_metrics_success_rate.py | 58 ++ test/test_advanced_box_score.py | 2 +- test/test_advanced_box_score_game_info.py | 2 +- test/test_advanced_box_score_players.py | 2 +- test/test_advanced_box_score_teams.py | 2 +- test/test_advanced_game_stat.py | 2 +- test/test_advanced_game_stat_offense.py | 2 +- ...dvanced_game_stat_offense_passing_downs.py | 2 +- ...dvanced_game_stat_offense_passing_plays.py | 2 +- test/test_advanced_season_stat.py | 2 +- test/test_advanced_season_stat_defense.py | 2 +- test/test_advanced_season_stat_offense.py | 2 +- ...nced_season_stat_offense_field_position.py | 2 +- ...test_advanced_season_stat_offense_havoc.py | 2 +- ...anced_season_stat_offense_passing_downs.py | 2 +- ...anced_season_stat_offense_passing_plays.py | 2 +- test/test_aggregated_team_recruiting.py | 2 +- test/test_betting_api.py | 2 +- test/test_betting_game.py | 2 +- test/test_calendar_week.py | 2 +- test/test_coach.py | 2 +- test/test_coach_season.py | 2 +- test/test_coaches_api.py | 2 +- test/test_conference.py | 2 +- test/test_conference_sp.py | 2 +- test/test_conference_sp_defense.py | 2 +- test/test_conference_sp_offense.py | 2 +- test/test_conferences_api.py | 2 +- test/test_division_classification.py | 2 +- test/test_draft_api.py | 2 +- test/test_draft_pick.py | 2 +- test/test_draft_pick_hometown_info.py | 2 +- test/test_draft_position.py | 2 +- test/test_draft_team.py | 2 +- test/test_drive.py | 2 +- test/test_drives_api.py | 2 +- test/test_field_goal_ep.py | 2 +- test/test_game.py | 2 +- test/test_game_line.py | 2 +- test/test_game_media.py | 2 +- test/test_game_player_stat_categories.py | 2 +- test/test_game_player_stat_player.py | 2 +- test/test_game_player_stat_types.py | 2 +- test/test_game_player_stats.py | 2 +- test/test_game_player_stats_team.py | 2 +- test/test_game_status.py | 2 +- test/test_game_team_stats.py | 2 +- test/test_game_team_stats_team.py | 2 +- test/test_game_team_stats_team_stat.py | 2 +- test/test_game_weather.py | 2 +- test/test_games_api.py | 2 +- test/test_kicker_paar.py | 66 ++ test/test_live_game.py | 2 +- test/test_live_game_drive.py | 2 +- test/test_live_game_play.py | 2 +- test/test_live_game_team.py | 2 +- test/test_matchup.py | 2 +- test/test_matchup_game.py | 2 +- test/test_media_type.py | 2 +- test/test_metrics_api.py | 2 +- test/test_play.py | 2 +- test/test_play_clock.py | 2 +- test/test_play_stat.py | 2 +- test/test_play_stat_clock.py | 2 +- test/test_play_stat_type.py | 2 +- test/test_play_type.py | 2 +- test/test_play_win_probability.py | 2 +- ...test_player_game_predicted_points_added.py | 2 +- ...game_predicted_points_added_average_ppa.py | 2 +- test/test_player_game_usage.py | 2 +- test/test_player_ppa.py | 2 +- test/test_player_ppa_chart_item.py | 2 +- test/test_player_search_result.py | 2 +- ...st_player_season_predicted_points_added.py | 2 +- ...ason_predicted_points_added_average_ppa.py | 2 +- test/test_player_stat.py | 2 +- test/test_player_stats_by_quarter.py | 2 +- test/test_player_transfer.py | 2 +- test/test_player_usage.py | 2 +- test/test_player_usage_usage.py | 2 +- test/test_player_weighted_epa.py | 68 ++ test/test_players_api.py | 2 +- test/test_plays_api.py | 2 +- test/test_poll.py | 2 +- test/test_poll_rank.py | 2 +- test/test_poll_week.py | 2 +- test/test_predicted_points_value.py | 2 +- test/test_pregame_win_probability.py | 2 +- test/test_rankings_api.py | 2 +- test/test_ratings_api.py | 2 +- test/test_recruit.py | 2 +- test/test_recruit_classification.py | 2 +- test/test_recruit_hometown_info.py | 2 +- test/test_recruiting_api.py | 2 +- test/test_returning_production.py | 2 +- test/test_roster_player.py | 2 +- test/test_scoreboard_game.py | 2 +- test/test_scoreboard_game_betting.py | 2 +- test/test_scoreboard_game_home_team.py | 2 +- test/test_scoreboard_game_venue.py | 2 +- test/test_scoreboard_game_weather.py | 2 +- test/test_season_type.py | 2 +- test/test_stats_api.py | 8 +- test/test_stats_by_quarter.py | 2 +- test/test_team.py | 2 +- test/test_team_elo.py | 2 +- test/test_team_explosiveness.py | 2 +- test/test_team_field_position.py | 2 +- test/test_team_fpi.py | 2 +- test/test_team_fpi_efficiencies.py | 2 +- test/test_team_fpi_resume_ranks.py | 2 +- test/test_team_game_predicted_points_added.py | 2 +- ...eam_game_predicted_points_added_offense.py | 2 +- test/test_team_havoc.py | 2 +- test/test_team_ppa.py | 2 +- test/test_team_record.py | 2 +- test/test_team_records.py | 2 +- test/test_team_recruiting_ranking.py | 2 +- test/test_team_rushing_stats.py | 2 +- test/test_team_scoring_opportunities.py | 2 +- ...test_team_season_predicted_points_added.py | 10 +- ...m_season_predicted_points_added_offense.py | 6 +- test/test_team_sp.py | 2 +- test/test_team_sp_defense.py | 2 +- test/test_team_sp_offense.py | 2 +- test/test_team_sp_special_teams.py | 2 +- test/test_team_srs.py | 2 +- test/test_team_stat.py | 2 +- test/test_team_stat_stat_value.py | 2 +- test/test_team_success_rates.py | 2 +- test/test_team_talent.py | 2 +- test/test_teams_api.py | 2 +- test/test_transfer_eligibility.py | 2 +- test/test_venue.py | 2 +- test/test_venues_api.py | 2 +- 298 files changed, 2555 insertions(+), 572 deletions(-) create mode 100644 cfbd/api/adjusted_metrics_api.py create mode 100644 cfbd/models/adjusted_team_metrics.py create mode 100644 cfbd/models/adjusted_team_metrics_epa.py create mode 100644 cfbd/models/adjusted_team_metrics_rushing.py create mode 100644 cfbd/models/adjusted_team_metrics_success_rate.py create mode 100644 cfbd/models/kicker_paar.py create mode 100644 cfbd/models/player_weighted_epa.py create mode 100644 docs/AdjustedMetricsApi.md create mode 100644 docs/AdjustedTeamMetrics.md create mode 100644 docs/AdjustedTeamMetricsEpa.md create mode 100644 docs/AdjustedTeamMetricsRushing.md create mode 100644 docs/AdjustedTeamMetricsSuccessRate.md create mode 100644 docs/KickerPAAR.md create mode 100644 docs/PlayerWeightedEPA.md create mode 100644 test/test_adjusted_metrics_api.py create mode 100644 test/test_adjusted_team_metrics.py create mode 100644 test/test_adjusted_team_metrics_epa.py create mode 100644 test/test_adjusted_team_metrics_rushing.py create mode 100644 test/test_adjusted_team_metrics_success_rate.py create mode 100644 test/test_kicker_paar.py create mode 100644 test/test_player_weighted_epa.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 1d02ea26..a56b27f8 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -6,6 +6,7 @@ README.md cfbd/__init__.py cfbd/api/__init__.py +cfbd/api/adjusted_metrics_api.py cfbd/api/betting_api.py cfbd/api/coaches_api.py cfbd/api/conferences_api.py @@ -26,10 +27,10 @@ cfbd/api_response.py cfbd/configuration.py cfbd/exceptions.py cfbd/models/__init__.py -cfbd/models/adjusted_metrics.py -cfbd/models/adjusted_metrics_epa.py -cfbd/models/adjusted_metrics_rushing.py -cfbd/models/adjusted_metrics_success_rate.py +cfbd/models/adjusted_team_metrics.py +cfbd/models/adjusted_team_metrics_epa.py +cfbd/models/adjusted_team_metrics_rushing.py +cfbd/models/adjusted_team_metrics_success_rate.py cfbd/models/advanced_box_score.py cfbd/models/advanced_box_score_game_info.py cfbd/models/advanced_box_score_players.py @@ -74,6 +75,7 @@ cfbd/models/game_team_stats.py cfbd/models/game_team_stats_team.py cfbd/models/game_team_stats_team_stat.py cfbd/models/game_weather.py +cfbd/models/kicker_paar.py cfbd/models/live_game.py cfbd/models/live_game_drive.py cfbd/models/live_game_play.py @@ -101,6 +103,7 @@ cfbd/models/player_stats_by_quarter.py cfbd/models/player_transfer.py cfbd/models/player_usage.py cfbd/models/player_usage_usage.py +cfbd/models/player_weighted_epa.py cfbd/models/poll.py cfbd/models/poll_rank.py cfbd/models/poll_week.py @@ -149,10 +152,11 @@ cfbd/models/transfer_eligibility.py cfbd/models/venue.py cfbd/py.typed cfbd/rest.py -docs/AdjustedMetrics.md -docs/AdjustedMetricsEpa.md -docs/AdjustedMetricsRushing.md -docs/AdjustedMetricsSuccessRate.md +docs/AdjustedMetricsApi.md +docs/AdjustedTeamMetrics.md +docs/AdjustedTeamMetricsEpa.md +docs/AdjustedTeamMetricsRushing.md +docs/AdjustedTeamMetricsSuccessRate.md docs/AdvancedBoxScore.md docs/AdvancedBoxScoreGameInfo.md docs/AdvancedBoxScorePlayers.md @@ -203,6 +207,7 @@ docs/GameTeamStatsTeam.md docs/GameTeamStatsTeamStat.md docs/GameWeather.md docs/GamesApi.md +docs/KickerPAAR.md docs/LiveGame.md docs/LiveGameDrive.md docs/LiveGamePlay.md @@ -231,6 +236,7 @@ docs/PlayerStatsByQuarter.md docs/PlayerTransfer.md docs/PlayerUsage.md docs/PlayerUsageUsage.md +docs/PlayerWeightedEPA.md docs/PlayersApi.md docs/PlaysApi.md docs/Poll.md @@ -292,10 +298,11 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_adjusted_metrics.py -test/test_adjusted_metrics_epa.py -test/test_adjusted_metrics_rushing.py -test/test_adjusted_metrics_success_rate.py +test/test_adjusted_metrics_api.py +test/test_adjusted_team_metrics.py +test/test_adjusted_team_metrics_epa.py +test/test_adjusted_team_metrics_rushing.py +test/test_adjusted_team_metrics_success_rate.py test/test_advanced_box_score.py test/test_advanced_box_score_game_info.py test/test_advanced_box_score_players.py @@ -346,6 +353,7 @@ test/test_game_team_stats_team.py test/test_game_team_stats_team_stat.py test/test_game_weather.py test/test_games_api.py +test/test_kicker_paar.py test/test_live_game.py test/test_live_game_drive.py test/test_live_game_play.py @@ -374,6 +382,7 @@ test/test_player_stats_by_quarter.py test/test_player_transfer.py test/test_player_usage.py test/test_player_usage_usage.py +test/test_player_weighted_epa.py test/test_players_api.py test/test_plays_api.py test/test_poll.py diff --git a/README.md b/README.md index dfbce7f1..74fdefeb 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ This API is in limited Beta for Patreon subscribers. It may have bugs and is sub This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 5.1.3 -- Package version: 5.1.3a1 +- API version: 5.2.0 +- Package version: 5.2.0a1 - Generator version: 7.7.0 - Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen @@ -16,9 +16,9 @@ Python 3.7+ ### pip install ```sh -pip install cfbd@5.1.3a1 +pip install cfbd@5.2.0a1 ``` -(you may need to run `pip` with root permission: `sudo pip install cfbd@5.1.3a1`) +(you may need to run `pip` with root permission: `sudo pip install cfbd@5.2.0a1`) Then import the package: ```python @@ -56,23 +56,18 @@ configuration = cfbd.Configuration( # Enter a context with an instance of the API client with cfbd.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cfbd.BettingApi(api_client) - game_id = 56 # int | Optional gameId filter (optional) - year = 56 # int | Year filter, required if game id not specified (optional) - season_type = cfbd.SeasonType() # SeasonType | Optional season type filter (optional) - week = 56 # int | Optional week filter (optional) + api_instance = cfbd.AdjustedMetricsApi(api_client) + year = 56 # int | Optional year filter (optional) team = 'team_example' # str | Optional team filter (optional) - home = 'home_example' # str | Optional home team filter (optional) - away = 'away_example' # str | Optional away team filter (optional) - conference = 'conference_example' # str | Optional conference filter (optional) - provider = 'provider_example' # str | Optional provider name filter (optional) + conference = 'conference_example' # str | Optional conference abbreviation filter (optional) + position = 'position_example' # str | Optional position abbreviation filter (optional) try: - api_response = api_instance.get_lines(game_id=game_id, year=year, season_type=season_type, week=week, team=team, home=home, away=away, conference=conference, provider=provider) - print("The response of BettingApi->get_lines:\n") + api_response = api_instance.get_adjusted_player_passing_stats(year=year, team=team, conference=conference, position=position) + print("The response of AdjustedMetricsApi->get_adjusted_player_passing_stats:\n") pprint(api_response) except ApiException as e: - print("Exception when calling BettingApi->get_lines: %s\n" % e) + print("Exception when calling AdjustedMetricsApi->get_adjusted_player_passing_stats: %s\n" % e) ``` @@ -82,6 +77,10 @@ All URIs are relative to *https://apinext.collegefootballdata.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*AdjustedMetricsApi* | [**get_adjusted_player_passing_stats**](docs/AdjustedMetricsApi.md#get_adjusted_player_passing_stats) | **GET** /wepa/players/passing | +*AdjustedMetricsApi* | [**get_adjusted_player_rushing_stats**](docs/AdjustedMetricsApi.md#get_adjusted_player_rushing_stats) | **GET** /wepa/players/rushing | +*AdjustedMetricsApi* | [**get_adjusted_team_season_stats**](docs/AdjustedMetricsApi.md#get_adjusted_team_season_stats) | **GET** /wepa/team/season | +*AdjustedMetricsApi* | [**get_kicker_paar**](docs/AdjustedMetricsApi.md#get_kicker_paar) | **GET** /wepa/players/kicking | *BettingApi* | [**get_lines**](docs/BettingApi.md#get_lines) | **GET** /lines | *CoachesApi* | [**get_coaches**](docs/CoachesApi.md#get_coaches) | **GET** /coaches | *ConferencesApi* | [**get_conferences**](docs/ConferencesApi.md#get_conferences) | **GET** /conferences | @@ -124,7 +123,6 @@ Class | Method | HTTP request | Description *RecruitingApi* | [**get_aggregated_team_recruiting_ratings**](docs/RecruitingApi.md#get_aggregated_team_recruiting_ratings) | **GET** /recruiting/groups | *RecruitingApi* | [**get_recruits**](docs/RecruitingApi.md#get_recruits) | **GET** /recruiting/players | *RecruitingApi* | [**get_team_recruiting_rankings**](docs/RecruitingApi.md#get_team_recruiting_rankings) | **GET** /recruiting/teams | -*StatsApi* | [**get_adjusted_team_season_stats**](docs/StatsApi.md#get_adjusted_team_season_stats) | **GET** /stats/season/adjusted | *StatsApi* | [**get_advanced_game_stats**](docs/StatsApi.md#get_advanced_game_stats) | **GET** /stats/game/advanced | *StatsApi* | [**get_advanced_season_stats**](docs/StatsApi.md#get_advanced_season_stats) | **GET** /stats/season/advanced | *StatsApi* | [**get_categories**](docs/StatsApi.md#get_categories) | **GET** /stats/categories | @@ -140,10 +138,10 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [AdjustedMetrics](docs/AdjustedMetrics.md) - - [AdjustedMetricsEpa](docs/AdjustedMetricsEpa.md) - - [AdjustedMetricsRushing](docs/AdjustedMetricsRushing.md) - - [AdjustedMetricsSuccessRate](docs/AdjustedMetricsSuccessRate.md) + - [AdjustedTeamMetrics](docs/AdjustedTeamMetrics.md) + - [AdjustedTeamMetricsEpa](docs/AdjustedTeamMetricsEpa.md) + - [AdjustedTeamMetricsRushing](docs/AdjustedTeamMetricsRushing.md) + - [AdjustedTeamMetricsSuccessRate](docs/AdjustedTeamMetricsSuccessRate.md) - [AdvancedBoxScore](docs/AdvancedBoxScore.md) - [AdvancedBoxScoreGameInfo](docs/AdvancedBoxScoreGameInfo.md) - [AdvancedBoxScorePlayers](docs/AdvancedBoxScorePlayers.md) @@ -188,6 +186,7 @@ Class | Method | HTTP request | Description - [GameTeamStatsTeam](docs/GameTeamStatsTeam.md) - [GameTeamStatsTeamStat](docs/GameTeamStatsTeamStat.md) - [GameWeather](docs/GameWeather.md) + - [KickerPAAR](docs/KickerPAAR.md) - [LiveGame](docs/LiveGame.md) - [LiveGameDrive](docs/LiveGameDrive.md) - [LiveGamePlay](docs/LiveGamePlay.md) @@ -215,6 +214,7 @@ Class | Method | HTTP request | Description - [PlayerTransfer](docs/PlayerTransfer.md) - [PlayerUsage](docs/PlayerUsage.md) - [PlayerUsageUsage](docs/PlayerUsageUsage.md) + - [PlayerWeightedEPA](docs/PlayerWeightedEPA.md) - [Poll](docs/Poll.md) - [PollRank](docs/PollRank.md) - [PollWeek](docs/PollWeek.md) diff --git a/cfbd/__init__.py b/cfbd/__init__.py index 8de930b2..d733df36 100644 --- a/cfbd/__init__.py +++ b/cfbd/__init__.py @@ -7,7 +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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,9 +15,10 @@ """ # noqa: E501 -__version__ = "5.1.3a1" +__version__ = "5.2.0a1" # import apis into sdk package +from cfbd.api.adjusted_metrics_api import AdjustedMetricsApi from cfbd.api.betting_api import BettingApi from cfbd.api.coaches_api import CoachesApi from cfbd.api.conferences_api import ConferencesApi @@ -46,10 +47,10 @@ from cfbd.exceptions import ApiException # import models into sdk package -from cfbd.models.adjusted_metrics import AdjustedMetrics -from cfbd.models.adjusted_metrics_epa import AdjustedMetricsEpa -from cfbd.models.adjusted_metrics_rushing import AdjustedMetricsRushing -from cfbd.models.adjusted_metrics_success_rate import AdjustedMetricsSuccessRate +from cfbd.models.adjusted_team_metrics import AdjustedTeamMetrics +from cfbd.models.adjusted_team_metrics_epa import AdjustedTeamMetricsEpa +from cfbd.models.adjusted_team_metrics_rushing import AdjustedTeamMetricsRushing +from cfbd.models.adjusted_team_metrics_success_rate import AdjustedTeamMetricsSuccessRate from cfbd.models.advanced_box_score import AdvancedBoxScore from cfbd.models.advanced_box_score_game_info import AdvancedBoxScoreGameInfo from cfbd.models.advanced_box_score_players import AdvancedBoxScorePlayers @@ -94,6 +95,7 @@ from cfbd.models.game_team_stats_team import GameTeamStatsTeam from cfbd.models.game_team_stats_team_stat import GameTeamStatsTeamStat from cfbd.models.game_weather import GameWeather +from cfbd.models.kicker_paar import KickerPAAR from cfbd.models.live_game import LiveGame from cfbd.models.live_game_drive import LiveGameDrive from cfbd.models.live_game_play import LiveGamePlay @@ -121,6 +123,7 @@ from cfbd.models.player_transfer import PlayerTransfer from cfbd.models.player_usage import PlayerUsage from cfbd.models.player_usage_usage import PlayerUsageUsage +from cfbd.models.player_weighted_epa import PlayerWeightedEPA from cfbd.models.poll import Poll from cfbd.models.poll_rank import PollRank from cfbd.models.poll_week import PollWeek diff --git a/cfbd/api/__init__.py b/cfbd/api/__init__.py index 3df4b408..d429b869 100644 --- a/cfbd/api/__init__.py +++ b/cfbd/api/__init__.py @@ -1,6 +1,7 @@ # flake8: noqa # import apis into api package +from cfbd.api.adjusted_metrics_api import AdjustedMetricsApi from cfbd.api.betting_api import BettingApi from cfbd.api.coaches_api import CoachesApi from cfbd.api.conferences_api import ConferencesApi diff --git a/cfbd/api/adjusted_metrics_api.py b/cfbd/api/adjusted_metrics_api.py new file mode 100644 index 00000000..c72e15e9 --- /dev/null +++ b/cfbd/api/adjusted_metrics_api.py @@ -0,0 +1,689 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import re # noqa: F401 +import io +import warnings + +from pydantic import validate_arguments, ValidationError + +from typing_extensions import Annotated +from pydantic import Field, StrictInt, StrictStr + +from typing import List, Optional + +from cfbd.models.adjusted_team_metrics import AdjustedTeamMetrics +from cfbd.models.kicker_paar import KickerPAAR +from cfbd.models.player_weighted_epa import PlayerWeightedEPA + +from cfbd.api_client import ApiClient +from cfbd.api_response import ApiResponse +from cfbd.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class AdjustedMetricsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + @validate_arguments + def get_adjusted_player_passing_stats(self, year : Annotated[Optional[StrictInt], Field(description="Optional year filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, position : Annotated[Optional[StrictStr], Field(description="Optional position abbreviation filter")] = None, **kwargs) -> List[PlayerWeightedEPA]: # noqa: E501 + """get_adjusted_player_passing_stats # noqa: E501 + + Retrieve opponent-adjusted player passing statistics # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_adjusted_player_passing_stats(year, team, conference, position, async_req=True) + >>> result = thread.get() + + :param year: Optional year filter + :type year: int + :param team: Optional team filter + :type team: str + :param conference: Optional conference abbreviation filter + :type conference: str + :param position: Optional position abbreviation filter + :type position: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: List[PlayerWeightedEPA] + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the get_adjusted_player_passing_stats_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + return self.get_adjusted_player_passing_stats_with_http_info(year, team, conference, position, **kwargs) # noqa: E501 + + @validate_arguments + def get_adjusted_player_passing_stats_with_http_info(self, year : Annotated[Optional[StrictInt], Field(description="Optional year filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, position : Annotated[Optional[StrictStr], Field(description="Optional position abbreviation filter")] = None, **kwargs) -> ApiResponse: # noqa: E501 + """get_adjusted_player_passing_stats # noqa: E501 + + Retrieve opponent-adjusted player passing statistics # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_adjusted_player_passing_stats_with_http_info(year, team, conference, position, async_req=True) + >>> result = thread.get() + + :param year: Optional year filter + :type year: int + :param team: Optional team filter + :type team: str + :param conference: Optional conference abbreviation filter + :type conference: str + :param position: Optional position abbreviation filter + :type position: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(List[PlayerWeightedEPA], status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'year', + 'team', + 'conference', + 'position' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_adjusted_player_passing_stats" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + if _params.get('year') is not None: # noqa: E501 + _query_params.append(('year', _params['year'])) + + if _params.get('team') is not None: # noqa: E501 + _query_params.append(('team', _params['team'])) + + if _params.get('conference') is not None: # noqa: E501 + _query_params.append(('conference', _params['conference'])) + + if _params.get('position') is not None: # noqa: E501 + _query_params.append(('position', _params['position'])) + + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # authentication setting + _auth_settings = ['apiKey'] # noqa: E501 + + _response_types_map = { + '200': "List[PlayerWeightedEPA]", + } + + return self.api_client.call_api( + '/wepa/players/passing', 'GET', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + + @validate_arguments + def get_adjusted_player_rushing_stats(self, year : Annotated[Optional[StrictInt], Field(description="Optional year filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, position : Annotated[Optional[StrictStr], Field(description="Optional position abbreviation filter")] = None, **kwargs) -> List[PlayerWeightedEPA]: # noqa: E501 + """get_adjusted_player_rushing_stats # noqa: E501 + + Retrieve opponent-adjusted player rushing statistics # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_adjusted_player_rushing_stats(year, team, conference, position, async_req=True) + >>> result = thread.get() + + :param year: Optional year filter + :type year: int + :param team: Optional team filter + :type team: str + :param conference: Optional conference abbreviation filter + :type conference: str + :param position: Optional position abbreviation filter + :type position: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: List[PlayerWeightedEPA] + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the get_adjusted_player_rushing_stats_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + return self.get_adjusted_player_rushing_stats_with_http_info(year, team, conference, position, **kwargs) # noqa: E501 + + @validate_arguments + def get_adjusted_player_rushing_stats_with_http_info(self, year : Annotated[Optional[StrictInt], Field(description="Optional year filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, position : Annotated[Optional[StrictStr], Field(description="Optional position abbreviation filter")] = None, **kwargs) -> ApiResponse: # noqa: E501 + """get_adjusted_player_rushing_stats # noqa: E501 + + Retrieve opponent-adjusted player rushing statistics # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_adjusted_player_rushing_stats_with_http_info(year, team, conference, position, async_req=True) + >>> result = thread.get() + + :param year: Optional year filter + :type year: int + :param team: Optional team filter + :type team: str + :param conference: Optional conference abbreviation filter + :type conference: str + :param position: Optional position abbreviation filter + :type position: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(List[PlayerWeightedEPA], status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'year', + 'team', + 'conference', + 'position' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_adjusted_player_rushing_stats" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + if _params.get('year') is not None: # noqa: E501 + _query_params.append(('year', _params['year'])) + + if _params.get('team') is not None: # noqa: E501 + _query_params.append(('team', _params['team'])) + + if _params.get('conference') is not None: # noqa: E501 + _query_params.append(('conference', _params['conference'])) + + if _params.get('position') is not None: # noqa: E501 + _query_params.append(('position', _params['position'])) + + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # authentication setting + _auth_settings = ['apiKey'] # noqa: E501 + + _response_types_map = { + '200': "List[PlayerWeightedEPA]", + } + + return self.api_client.call_api( + '/wepa/players/rushing', 'GET', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + + @validate_arguments + def get_adjusted_team_season_stats(self, year : Annotated[Optional[StrictInt], Field(description="Optional year filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference filter")] = None, **kwargs) -> List[AdjustedTeamMetrics]: # noqa: E501 + """get_adjusted_team_season_stats # noqa: E501 + + Retrieve opponent-adjusted team season statistics # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_adjusted_team_season_stats(year, team, conference, async_req=True) + >>> result = thread.get() + + :param year: Optional year filter + :type year: int + :param team: Optional team filter + :type team: str + :param conference: Optional conference filter + :type conference: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: List[AdjustedTeamMetrics] + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the get_adjusted_team_season_stats_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + return self.get_adjusted_team_season_stats_with_http_info(year, team, conference, **kwargs) # noqa: E501 + + @validate_arguments + def get_adjusted_team_season_stats_with_http_info(self, year : Annotated[Optional[StrictInt], Field(description="Optional year filter")] = 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 + """get_adjusted_team_season_stats # noqa: E501 + + Retrieve opponent-adjusted team season statistics # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_adjusted_team_season_stats_with_http_info(year, team, conference, async_req=True) + >>> result = thread.get() + + :param year: Optional year filter + :type year: int + :param team: Optional team filter + :type team: str + :param conference: Optional conference filter + :type conference: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(List[AdjustedTeamMetrics], status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'year', + 'team', + 'conference' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_adjusted_team_season_stats" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + if _params.get('year') is not None: # noqa: E501 + _query_params.append(('year', _params['year'])) + + if _params.get('team') is not None: # noqa: E501 + _query_params.append(('team', _params['team'])) + + if _params.get('conference') is not None: # noqa: E501 + _query_params.append(('conference', _params['conference'])) + + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # authentication setting + _auth_settings = ['apiKey'] # noqa: E501 + + _response_types_map = { + '200': "List[AdjustedTeamMetrics]", + } + + return self.api_client.call_api( + '/wepa/team/season', 'GET', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + + @validate_arguments + def get_kicker_paar(self, year : Annotated[Optional[StrictInt], Field(description="Optional year filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, **kwargs) -> List[KickerPAAR]: # noqa: E501 + """get_kicker_paar # noqa: E501 + + Retrieve Points Added Above Replacement (PAAR) ratings for kickers # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_kicker_paar(year, team, conference, async_req=True) + >>> result = thread.get() + + :param year: Optional year filter + :type year: int + :param team: Optional team filter + :type team: str + :param conference: Optional conference abbreviation filter + :type conference: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: List[KickerPAAR] + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the get_kicker_paar_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + return self.get_kicker_paar_with_http_info(year, team, conference, **kwargs) # noqa: E501 + + @validate_arguments + def get_kicker_paar_with_http_info(self, year : Annotated[Optional[StrictInt], Field(description="Optional year filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference abbreviation filter")] = None, **kwargs) -> ApiResponse: # noqa: E501 + """get_kicker_paar # noqa: E501 + + Retrieve Points Added Above Replacement (PAAR) ratings for kickers # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_kicker_paar_with_http_info(year, team, conference, async_req=True) + >>> result = thread.get() + + :param year: Optional year filter + :type year: int + :param team: Optional team filter + :type team: str + :param conference: Optional conference abbreviation filter + :type conference: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(List[KickerPAAR], status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'year', + 'team', + 'conference' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_kicker_paar" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + if _params.get('year') is not None: # noqa: E501 + _query_params.append(('year', _params['year'])) + + if _params.get('team') is not None: # noqa: E501 + _query_params.append(('team', _params['team'])) + + if _params.get('conference') is not None: # noqa: E501 + _query_params.append(('conference', _params['conference'])) + + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # authentication setting + _auth_settings = ['apiKey'] # noqa: E501 + + _response_types_map = { + '200': "List[KickerPAAR]", + } + + return self.api_client.call_api( + '/wepa/players/kicking', 'GET', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) diff --git a/cfbd/api/betting_api.py b/cfbd/api/betting_api.py index 20edae5b..e70058e0 100644 --- a/cfbd/api/betting_api.py +++ b/cfbd/api/betting_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api/coaches_api.py b/cfbd/api/coaches_api.py index ac06651d..7a681562 100644 --- a/cfbd/api/coaches_api.py +++ b/cfbd/api/coaches_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api/conferences_api.py b/cfbd/api/conferences_api.py index 5d950803..888c7585 100644 --- a/cfbd/api/conferences_api.py +++ b/cfbd/api/conferences_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api/draft_api.py b/cfbd/api/draft_api.py index 63df3655..c24b8f38 100644 --- a/cfbd/api/draft_api.py +++ b/cfbd/api/draft_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api/drives_api.py b/cfbd/api/drives_api.py index 6b39aaac..2a0b0409 100644 --- a/cfbd/api/drives_api.py +++ b/cfbd/api/drives_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api/games_api.py b/cfbd/api/games_api.py index a32d6ac6..930c3d0a 100644 --- a/cfbd/api/games_api.py +++ b/cfbd/api/games_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api/metrics_api.py b/cfbd/api/metrics_api.py index 4bbed654..858f7546 100644 --- a/cfbd/api/metrics_api.py +++ b/cfbd/api/metrics_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api/players_api.py b/cfbd/api/players_api.py index 4b296afd..3cc5947e 100644 --- a/cfbd/api/players_api.py +++ b/cfbd/api/players_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api/plays_api.py b/cfbd/api/plays_api.py index cbbd6cdd..0c3642b3 100644 --- a/cfbd/api/plays_api.py +++ b/cfbd/api/plays_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api/rankings_api.py b/cfbd/api/rankings_api.py index 5171076e..f4f106ac 100644 --- a/cfbd/api/rankings_api.py +++ b/cfbd/api/rankings_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api/ratings_api.py b/cfbd/api/ratings_api.py index 693ebe52..2557f7b3 100644 --- a/cfbd/api/ratings_api.py +++ b/cfbd/api/ratings_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api/recruiting_api.py b/cfbd/api/recruiting_api.py index 87ada431..a90927cf 100644 --- a/cfbd/api/recruiting_api.py +++ b/cfbd/api/recruiting_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api/stats_api.py b/cfbd/api/stats_api.py index 0e90e8e6..b4ff2a80 100644 --- a/cfbd/api/stats_api.py +++ b/cfbd/api/stats_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,7 +24,6 @@ from typing import List, Optional, Union -from cfbd.models.adjusted_metrics import AdjustedMetrics from cfbd.models.advanced_game_stat import AdvancedGameStat from cfbd.models.advanced_season_stat import AdvancedSeasonStat from cfbd.models.player_stat import PlayerStat @@ -51,162 +50,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_arguments - def get_adjusted_team_season_stats(self, year : Annotated[Optional[StrictInt], Field(description="Optional year filter")] = None, team : Annotated[Optional[StrictStr], Field(description="Optional team filter")] = None, conference : Annotated[Optional[StrictStr], Field(description="Optional conference filter")] = None, **kwargs) -> List[AdjustedMetrics]: # noqa: E501 - """get_adjusted_team_season_stats # noqa: E501 - - Retrieve opponent-adjusted team season statistics # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_adjusted_team_season_stats(year, team, conference, async_req=True) - >>> result = thread.get() - - :param year: Optional year filter - :type year: int - :param team: Optional team filter - :type team: str - :param conference: Optional conference filter - :type conference: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _request_timeout: timeout setting for this request. - If one number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: List[AdjustedMetrics] - """ - kwargs['_return_http_data_only'] = True - if '_preload_content' in kwargs: - message = "Error! Please call the get_adjusted_team_season_stats_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 - raise ValueError(message) - return self.get_adjusted_team_season_stats_with_http_info(year, team, conference, **kwargs) # noqa: E501 - - @validate_arguments - def get_adjusted_team_season_stats_with_http_info(self, year : Annotated[Optional[StrictInt], Field(description="Optional year filter")] = 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 - """get_adjusted_team_season_stats # noqa: E501 - - Retrieve opponent-adjusted team season statistics # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_adjusted_team_season_stats_with_http_info(year, team, conference, async_req=True) - >>> result = thread.get() - - :param year: Optional year filter - :type year: int - :param team: Optional team filter - :type team: str - :param conference: Optional conference filter - :type conference: str - :param async_req: Whether to execute the request asynchronously. - :type async_req: bool, optional - :param _preload_content: if False, the ApiResponse.data will - be set to none and raw_data will store the - HTTP response body without reading/decoding. - Default is True. - :type _preload_content: bool, optional - :param _return_http_data_only: response data instead of ApiResponse - object with status code, headers, etc - :type _return_http_data_only: bool, optional - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :type _request_auth: dict, optional - :type _content_type: string, optional: force content-type for the request - :return: Returns the result object. - If the method is called asynchronously, - returns the request thread. - :rtype: tuple(List[AdjustedMetrics], status_code(int), headers(HTTPHeaderDict)) - """ - - _params = locals() - - _all_params = [ - 'year', - 'team', - 'conference' - ] - _all_params.extend( - [ - 'async_req', - '_return_http_data_only', - '_preload_content', - '_request_timeout', - '_request_auth', - '_content_type', - '_headers' - ] - ) - - # validate the arguments - for _key, _val in _params['kwargs'].items(): - if _key not in _all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method get_adjusted_team_season_stats" % _key - ) - _params[_key] = _val - del _params['kwargs'] - - _collection_formats = {} - - # process the path parameters - _path_params = {} - - # process the query parameters - _query_params = [] - if _params.get('year') is not None: # noqa: E501 - _query_params.append(('year', _params['year'])) - - if _params.get('team') is not None: # noqa: E501 - _query_params.append(('team', _params['team'])) - - if _params.get('conference') is not None: # noqa: E501 - _query_params.append(('conference', _params['conference'])) - - # process the header parameters - _header_params = dict(_params.get('_headers', {})) - # process the form parameters - _form_params = [] - _files = {} - # process the body parameter - _body_params = None - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # authentication setting - _auth_settings = ['apiKey'] # noqa: E501 - - _response_types_map = { - '200': "List[AdjustedMetrics]", - } - - return self.api_client.call_api( - '/stats/season/adjusted', 'GET', - _path_params, - _query_params, - _header_params, - body=_body_params, - post_params=_form_params, - files=_files, - response_types_map=_response_types_map, - auth_settings=_auth_settings, - async_req=_params.get('async_req'), - _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 - _preload_content=_params.get('_preload_content', True), - _request_timeout=_params.get('_request_timeout'), - collection_formats=_collection_formats, - _request_auth=_params.get('_request_auth')) - @validate_arguments def get_advanced_game_stats(self, year : Annotated[Optional[StrictInt], Field(description="Year filter, required if team not specified")] = None, team : Annotated[Optional[StrictStr], Field(description="Team filter, required if year not specified")] = None, week : Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Optional week filter")] = None, opponent : Annotated[Optional[StrictStr], Field(description="Optional opponent filter")] = None, exclude_garbage_time : Annotated[Optional[StrictBool], Field(description="Garbage time exclusion filter, defaults to false")] = None, season_type : Annotated[Optional[SeasonType], Field(description="Optional season type filter")] = None, **kwargs) -> List[AdvancedGameStat]: # noqa: E501 """get_advanced_game_stats # noqa: E501 diff --git a/cfbd/api/teams_api.py b/cfbd/api/teams_api.py index 3a9cc1db..5af17aa1 100644 --- a/cfbd/api/teams_api.py +++ b/cfbd/api/teams_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api/venues_api.py b/cfbd/api/venues_api.py index 0187e073..5577bd84 100644 --- a/cfbd/api/venues_api.py +++ b/cfbd/api/venues_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/api_client.py b/cfbd/api_client.py index c5e78278..aae83651 100644 --- a/cfbd/api_client.py +++ b/cfbd/api_client.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/5.1.3a1/python' + self.user_agent = 'OpenAPI-Generator/5.2.0a1/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cfbd/configuration.py b/cfbd/configuration.py index 6c337365..fd340cb6 100644 --- a/cfbd/configuration.py +++ b/cfbd/configuration.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -376,8 +376,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 5.1.3\n"\ - "SDK Package Version: 5.1.3a1".\ + "Version of the API: 5.2.0\n"\ + "SDK Package Version: 5.2.0a1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/cfbd/exceptions.py b/cfbd/exceptions.py index bafecbd7..dd03fc3e 100644 --- a/cfbd/exceptions.py +++ b/cfbd/exceptions.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/__init__.py b/cfbd/models/__init__.py index e8de4fa2..ebf271bd 100644 --- a/cfbd/models/__init__.py +++ b/cfbd/models/__init__.py @@ -6,7 +6,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ # import models into model package -from cfbd.models.adjusted_metrics import AdjustedMetrics -from cfbd.models.adjusted_metrics_epa import AdjustedMetricsEpa -from cfbd.models.adjusted_metrics_rushing import AdjustedMetricsRushing -from cfbd.models.adjusted_metrics_success_rate import AdjustedMetricsSuccessRate +from cfbd.models.adjusted_team_metrics import AdjustedTeamMetrics +from cfbd.models.adjusted_team_metrics_epa import AdjustedTeamMetricsEpa +from cfbd.models.adjusted_team_metrics_rushing import AdjustedTeamMetricsRushing +from cfbd.models.adjusted_team_metrics_success_rate import AdjustedTeamMetricsSuccessRate from cfbd.models.advanced_box_score import AdvancedBoxScore from cfbd.models.advanced_box_score_game_info import AdvancedBoxScoreGameInfo from cfbd.models.advanced_box_score_players import AdvancedBoxScorePlayers @@ -63,6 +63,7 @@ from cfbd.models.game_team_stats_team import GameTeamStatsTeam from cfbd.models.game_team_stats_team_stat import GameTeamStatsTeamStat from cfbd.models.game_weather import GameWeather +from cfbd.models.kicker_paar import KickerPAAR from cfbd.models.live_game import LiveGame from cfbd.models.live_game_drive import LiveGameDrive from cfbd.models.live_game_play import LiveGamePlay @@ -90,6 +91,7 @@ from cfbd.models.player_transfer import PlayerTransfer from cfbd.models.player_usage import PlayerUsage from cfbd.models.player_usage_usage import PlayerUsageUsage +from cfbd.models.player_weighted_epa import PlayerWeightedEPA from cfbd.models.poll import Poll from cfbd.models.poll_rank import PollRank from cfbd.models.poll_week import PollWeek diff --git a/cfbd/models/adjusted_team_metrics.py b/cfbd/models/adjusted_team_metrics.py new file mode 100644 index 00000000..6c7bf013 --- /dev/null +++ b/cfbd/models/adjusted_team_metrics.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Union +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from cfbd.models.adjusted_team_metrics_epa import AdjustedTeamMetricsEpa +from cfbd.models.adjusted_team_metrics_rushing import AdjustedTeamMetricsRushing +from cfbd.models.adjusted_team_metrics_success_rate import AdjustedTeamMetricsSuccessRate + +class AdjustedTeamMetrics(BaseModel): + """ + AdjustedTeamMetrics + """ + year: StrictInt = Field(...) + team_id: StrictInt = Field(default=..., alias="teamId") + team: StrictStr = Field(...) + conference: StrictStr = Field(...) + epa: AdjustedTeamMetricsEpa = Field(...) + epa_allowed: AdjustedTeamMetricsEpa = Field(default=..., alias="epaAllowed") + success_rate: AdjustedTeamMetricsSuccessRate = Field(default=..., alias="successRate") + success_rate_allowed: AdjustedTeamMetricsSuccessRate = Field(default=..., alias="successRateAllowed") + rushing: AdjustedTeamMetricsRushing = Field(...) + rushing_allowed: AdjustedTeamMetricsRushing = Field(default=..., alias="rushingAllowed") + explosiveness: Union[StrictFloat, StrictInt] = Field(...) + explosiveness_allowed: Union[StrictFloat, StrictInt] = Field(default=..., alias="explosivenessAllowed") + __properties = ["year", "teamId", "team", "conference", "epa", "epaAllowed", "successRate", "successRateAllowed", "rushing", "rushingAllowed", "explosiveness", "explosivenessAllowed"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> AdjustedTeamMetrics: + """Create an instance of AdjustedTeamMetrics from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + # override the default output from pydantic by calling `to_dict()` of epa + if self.epa: + _dict['epa'] = self.epa.to_dict() + # override the default output from pydantic by calling `to_dict()` of epa_allowed + if self.epa_allowed: + _dict['epaAllowed'] = self.epa_allowed.to_dict() + # override the default output from pydantic by calling `to_dict()` of success_rate + if self.success_rate: + _dict['successRate'] = self.success_rate.to_dict() + # override the default output from pydantic by calling `to_dict()` of success_rate_allowed + if self.success_rate_allowed: + _dict['successRateAllowed'] = self.success_rate_allowed.to_dict() + # override the default output from pydantic by calling `to_dict()` of rushing + if self.rushing: + _dict['rushing'] = self.rushing.to_dict() + # override the default output from pydantic by calling `to_dict()` of rushing_allowed + if self.rushing_allowed: + _dict['rushingAllowed'] = self.rushing_allowed.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> AdjustedTeamMetrics: + """Create an instance of AdjustedTeamMetrics from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return AdjustedTeamMetrics.parse_obj(obj) + + _obj = AdjustedTeamMetrics.parse_obj({ + "year": obj.get("year"), + "team_id": obj.get("teamId"), + "team": obj.get("team"), + "conference": obj.get("conference"), + "epa": AdjustedTeamMetricsEpa.from_dict(obj.get("epa")) if obj.get("epa") is not None else None, + "epa_allowed": AdjustedTeamMetricsEpa.from_dict(obj.get("epaAllowed")) if obj.get("epaAllowed") is not None else None, + "success_rate": AdjustedTeamMetricsSuccessRate.from_dict(obj.get("successRate")) if obj.get("successRate") is not None else None, + "success_rate_allowed": AdjustedTeamMetricsSuccessRate.from_dict(obj.get("successRateAllowed")) if obj.get("successRateAllowed") is not None else None, + "rushing": AdjustedTeamMetricsRushing.from_dict(obj.get("rushing")) if obj.get("rushing") is not None else None, + "rushing_allowed": AdjustedTeamMetricsRushing.from_dict(obj.get("rushingAllowed")) if obj.get("rushingAllowed") is not None else None, + "explosiveness": obj.get("explosiveness"), + "explosiveness_allowed": obj.get("explosivenessAllowed") + }) + return _obj + + diff --git a/cfbd/models/adjusted_team_metrics_epa.py b/cfbd/models/adjusted_team_metrics_epa.py new file mode 100644 index 00000000..3f3ff3e0 --- /dev/null +++ b/cfbd/models/adjusted_team_metrics_epa.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Union +from pydantic import BaseModel, Field, StrictFloat, StrictInt + +class AdjustedTeamMetricsEpa(BaseModel): + """ + AdjustedTeamMetricsEpa + """ + rushing: Union[StrictFloat, StrictInt] = Field(...) + passing: Union[StrictFloat, StrictInt] = Field(...) + total: Union[StrictFloat, StrictInt] = Field(...) + __properties = ["rushing", "passing", "total"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> AdjustedTeamMetricsEpa: + """Create an instance of AdjustedTeamMetricsEpa from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> AdjustedTeamMetricsEpa: + """Create an instance of AdjustedTeamMetricsEpa from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return AdjustedTeamMetricsEpa.parse_obj(obj) + + _obj = AdjustedTeamMetricsEpa.parse_obj({ + "rushing": obj.get("rushing"), + "passing": obj.get("passing"), + "total": obj.get("total") + }) + return _obj + + diff --git a/cfbd/models/adjusted_team_metrics_rushing.py b/cfbd/models/adjusted_team_metrics_rushing.py new file mode 100644 index 00000000..113ad450 --- /dev/null +++ b/cfbd/models/adjusted_team_metrics_rushing.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Union +from pydantic import BaseModel, Field, StrictFloat, StrictInt + +class AdjustedTeamMetricsRushing(BaseModel): + """ + AdjustedTeamMetricsRushing + """ + open_field_yards: Union[StrictFloat, StrictInt] = Field(default=..., alias="openFieldYards") + second_level_yards: Union[StrictFloat, StrictInt] = Field(default=..., alias="secondLevelYards") + line_yards: Union[StrictFloat, StrictInt] = Field(default=..., alias="lineYards") + __properties = ["openFieldYards", "secondLevelYards", "lineYards"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> AdjustedTeamMetricsRushing: + """Create an instance of AdjustedTeamMetricsRushing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> AdjustedTeamMetricsRushing: + """Create an instance of AdjustedTeamMetricsRushing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return AdjustedTeamMetricsRushing.parse_obj(obj) + + _obj = AdjustedTeamMetricsRushing.parse_obj({ + "open_field_yards": obj.get("openFieldYards"), + "second_level_yards": obj.get("secondLevelYards"), + "line_yards": obj.get("lineYards") + }) + return _obj + + diff --git a/cfbd/models/adjusted_team_metrics_success_rate.py b/cfbd/models/adjusted_team_metrics_success_rate.py new file mode 100644 index 00000000..8202dde6 --- /dev/null +++ b/cfbd/models/adjusted_team_metrics_success_rate.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Union +from pydantic import BaseModel, Field, StrictFloat, StrictInt + +class AdjustedTeamMetricsSuccessRate(BaseModel): + """ + AdjustedTeamMetricsSuccessRate + """ + passing_downs: Union[StrictFloat, StrictInt] = Field(default=..., alias="passingDowns") + standard_downs: Union[StrictFloat, StrictInt] = Field(default=..., alias="standardDowns") + total: Union[StrictFloat, StrictInt] = Field(...) + __properties = ["passingDowns", "standardDowns", "total"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> AdjustedTeamMetricsSuccessRate: + """Create an instance of AdjustedTeamMetricsSuccessRate from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> AdjustedTeamMetricsSuccessRate: + """Create an instance of AdjustedTeamMetricsSuccessRate from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return AdjustedTeamMetricsSuccessRate.parse_obj(obj) + + _obj = AdjustedTeamMetricsSuccessRate.parse_obj({ + "passing_downs": obj.get("passingDowns"), + "standard_downs": obj.get("standardDowns"), + "total": obj.get("total") + }) + return _obj + + diff --git a/cfbd/models/advanced_box_score.py b/cfbd/models/advanced_box_score.py index 77f4fcd5..1806a0df 100644 --- a/cfbd/models/advanced_box_score.py +++ b/cfbd/models/advanced_box_score.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_box_score_game_info.py b/cfbd/models/advanced_box_score_game_info.py index 06d1af93..f9b1d2cb 100644 --- a/cfbd/models/advanced_box_score_game_info.py +++ b/cfbd/models/advanced_box_score_game_info.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_box_score_players.py b/cfbd/models/advanced_box_score_players.py index 761a88e1..238f8870 100644 --- a/cfbd/models/advanced_box_score_players.py +++ b/cfbd/models/advanced_box_score_players.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_box_score_teams.py b/cfbd/models/advanced_box_score_teams.py index 4a5b7f7f..2ad49bf0 100644 --- a/cfbd/models/advanced_box_score_teams.py +++ b/cfbd/models/advanced_box_score_teams.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_game_stat.py b/cfbd/models/advanced_game_stat.py index 3295d51f..e8eb09d6 100644 --- a/cfbd/models/advanced_game_stat.py +++ b/cfbd/models/advanced_game_stat.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_game_stat_offense.py b/cfbd/models/advanced_game_stat_offense.py index 51155de0..f97228be 100644 --- a/cfbd/models/advanced_game_stat_offense.py +++ b/cfbd/models/advanced_game_stat_offense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_game_stat_offense_passing_downs.py b/cfbd/models/advanced_game_stat_offense_passing_downs.py index 3b155c17..3f2f920d 100644 --- a/cfbd/models/advanced_game_stat_offense_passing_downs.py +++ b/cfbd/models/advanced_game_stat_offense_passing_downs.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_game_stat_offense_passing_plays.py b/cfbd/models/advanced_game_stat_offense_passing_plays.py index 9edfeaf8..6c0ef613 100644 --- a/cfbd/models/advanced_game_stat_offense_passing_plays.py +++ b/cfbd/models/advanced_game_stat_offense_passing_plays.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_season_stat.py b/cfbd/models/advanced_season_stat.py index d5d5fa23..73794fa9 100644 --- a/cfbd/models/advanced_season_stat.py +++ b/cfbd/models/advanced_season_stat.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_season_stat_defense.py b/cfbd/models/advanced_season_stat_defense.py index d416cf16..af1bb8b9 100644 --- a/cfbd/models/advanced_season_stat_defense.py +++ b/cfbd/models/advanced_season_stat_defense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_season_stat_offense.py b/cfbd/models/advanced_season_stat_offense.py index 98022c08..81aab827 100644 --- a/cfbd/models/advanced_season_stat_offense.py +++ b/cfbd/models/advanced_season_stat_offense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_season_stat_offense_field_position.py b/cfbd/models/advanced_season_stat_offense_field_position.py index efbaa2c4..8d1a7f24 100644 --- a/cfbd/models/advanced_season_stat_offense_field_position.py +++ b/cfbd/models/advanced_season_stat_offense_field_position.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_season_stat_offense_havoc.py b/cfbd/models/advanced_season_stat_offense_havoc.py index 2034c7d1..7a890f3e 100644 --- a/cfbd/models/advanced_season_stat_offense_havoc.py +++ b/cfbd/models/advanced_season_stat_offense_havoc.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_season_stat_offense_passing_downs.py b/cfbd/models/advanced_season_stat_offense_passing_downs.py index fc7d7228..032fad49 100644 --- a/cfbd/models/advanced_season_stat_offense_passing_downs.py +++ b/cfbd/models/advanced_season_stat_offense_passing_downs.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/advanced_season_stat_offense_passing_plays.py b/cfbd/models/advanced_season_stat_offense_passing_plays.py index de53d81e..ac714965 100644 --- a/cfbd/models/advanced_season_stat_offense_passing_plays.py +++ b/cfbd/models/advanced_season_stat_offense_passing_plays.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/aggregated_team_recruiting.py b/cfbd/models/aggregated_team_recruiting.py index affb0e5f..a48f9ac2 100644 --- a/cfbd/models/aggregated_team_recruiting.py +++ b/cfbd/models/aggregated_team_recruiting.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/betting_game.py b/cfbd/models/betting_game.py index 30d2eec9..8763e705 100644 --- a/cfbd/models/betting_game.py +++ b/cfbd/models/betting_game.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/calendar_week.py b/cfbd/models/calendar_week.py index 3688a7f5..003199cb 100644 --- a/cfbd/models/calendar_week.py +++ b/cfbd/models/calendar_week.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/coach.py b/cfbd/models/coach.py index e2a8dc39..c1ab2af8 100644 --- a/cfbd/models/coach.py +++ b/cfbd/models/coach.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/coach_season.py b/cfbd/models/coach_season.py index e306c781..1a19050f 100644 --- a/cfbd/models/coach_season.py +++ b/cfbd/models/coach_season.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/conference.py b/cfbd/models/conference.py index 821f18ba..72c6028d 100644 --- a/cfbd/models/conference.py +++ b/cfbd/models/conference.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/conference_sp.py b/cfbd/models/conference_sp.py index 8f29e3b8..d0e651f1 100644 --- a/cfbd/models/conference_sp.py +++ b/cfbd/models/conference_sp.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/conference_sp_defense.py b/cfbd/models/conference_sp_defense.py index 50289c1a..e738b67a 100644 --- a/cfbd/models/conference_sp_defense.py +++ b/cfbd/models/conference_sp_defense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/conference_sp_offense.py b/cfbd/models/conference_sp_offense.py index b8728bfd..99f48b9b 100644 --- a/cfbd/models/conference_sp_offense.py +++ b/cfbd/models/conference_sp_offense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/division_classification.py b/cfbd/models/division_classification.py index dd44487a..46e50fd6 100644 --- a/cfbd/models/division_classification.py +++ b/cfbd/models/division_classification.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/draft_pick.py b/cfbd/models/draft_pick.py index 0583d295..01c7ec0b 100644 --- a/cfbd/models/draft_pick.py +++ b/cfbd/models/draft_pick.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/draft_pick_hometown_info.py b/cfbd/models/draft_pick_hometown_info.py index 83113c5d..9ae6d9c7 100644 --- a/cfbd/models/draft_pick_hometown_info.py +++ b/cfbd/models/draft_pick_hometown_info.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/draft_position.py b/cfbd/models/draft_position.py index a1e866e2..70428083 100644 --- a/cfbd/models/draft_position.py +++ b/cfbd/models/draft_position.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/draft_team.py b/cfbd/models/draft_team.py index 1707c04c..6f160384 100644 --- a/cfbd/models/draft_team.py +++ b/cfbd/models/draft_team.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/drive.py b/cfbd/models/drive.py index db89258d..ad2c3f87 100644 --- a/cfbd/models/drive.py +++ b/cfbd/models/drive.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/field_goal_ep.py b/cfbd/models/field_goal_ep.py index 0cc07482..80dabe70 100644 --- a/cfbd/models/field_goal_ep.py +++ b/cfbd/models/field_goal_ep.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/game.py b/cfbd/models/game.py index a163fb31..01255002 100644 --- a/cfbd/models/game.py +++ b/cfbd/models/game.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/game_line.py b/cfbd/models/game_line.py index 60a29604..623dc703 100644 --- a/cfbd/models/game_line.py +++ b/cfbd/models/game_line.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/game_media.py b/cfbd/models/game_media.py index 62693783..0a7ba4db 100644 --- a/cfbd/models/game_media.py +++ b/cfbd/models/game_media.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/game_player_stat_categories.py b/cfbd/models/game_player_stat_categories.py index 3e1095e5..dcb4e4d1 100644 --- a/cfbd/models/game_player_stat_categories.py +++ b/cfbd/models/game_player_stat_categories.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/game_player_stat_player.py b/cfbd/models/game_player_stat_player.py index 56670e28..ac1c2c8a 100644 --- a/cfbd/models/game_player_stat_player.py +++ b/cfbd/models/game_player_stat_player.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/game_player_stat_types.py b/cfbd/models/game_player_stat_types.py index d43b565b..a11803e8 100644 --- a/cfbd/models/game_player_stat_types.py +++ b/cfbd/models/game_player_stat_types.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/game_player_stats.py b/cfbd/models/game_player_stats.py index f78013c1..28927bdb 100644 --- a/cfbd/models/game_player_stats.py +++ b/cfbd/models/game_player_stats.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/game_player_stats_team.py b/cfbd/models/game_player_stats_team.py index cf508028..16a16bd7 100644 --- a/cfbd/models/game_player_stats_team.py +++ b/cfbd/models/game_player_stats_team.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/game_status.py b/cfbd/models/game_status.py index 75c793a0..27a5cf87 100644 --- a/cfbd/models/game_status.py +++ b/cfbd/models/game_status.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/game_team_stats.py b/cfbd/models/game_team_stats.py index a21d9ab6..5146b5c5 100644 --- a/cfbd/models/game_team_stats.py +++ b/cfbd/models/game_team_stats.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/game_team_stats_team.py b/cfbd/models/game_team_stats_team.py index de97d44d..fa255141 100644 --- a/cfbd/models/game_team_stats_team.py +++ b/cfbd/models/game_team_stats_team.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/game_team_stats_team_stat.py b/cfbd/models/game_team_stats_team_stat.py index f2bb9895..03699cd6 100644 --- a/cfbd/models/game_team_stats_team_stat.py +++ b/cfbd/models/game_team_stats_team_stat.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/game_weather.py b/cfbd/models/game_weather.py index 60397f10..8a017cb0 100644 --- a/cfbd/models/game_weather.py +++ b/cfbd/models/game_weather.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/kicker_paar.py b/cfbd/models/kicker_paar.py new file mode 100644 index 00000000..4c7968c3 --- /dev/null +++ b/cfbd/models/kicker_paar.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Union +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + +class KickerPAAR(BaseModel): + """ + KickerPAAR + """ + year: StrictInt = Field(...) + athlete_id: StrictStr = Field(default=..., alias="athleteId") + athlete_name: StrictStr = Field(default=..., alias="athleteName") + team: StrictStr = Field(...) + conference: StrictStr = Field(...) + paar: Union[StrictFloat, StrictInt] = Field(...) + attempts: StrictInt = Field(...) + __properties = ["year", "athleteId", "athleteName", "team", "conference", "paar", "attempts"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> KickerPAAR: + """Create an instance of KickerPAAR from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> KickerPAAR: + """Create an instance of KickerPAAR from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return KickerPAAR.parse_obj(obj) + + _obj = KickerPAAR.parse_obj({ + "year": obj.get("year"), + "athlete_id": obj.get("athleteId"), + "athlete_name": obj.get("athleteName"), + "team": obj.get("team"), + "conference": obj.get("conference"), + "paar": obj.get("paar"), + "attempts": obj.get("attempts") + }) + return _obj + + diff --git a/cfbd/models/live_game.py b/cfbd/models/live_game.py index e49a39cd..bd48afcb 100644 --- a/cfbd/models/live_game.py +++ b/cfbd/models/live_game.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/live_game_drive.py b/cfbd/models/live_game_drive.py index 1910bdac..5bec7b35 100644 --- a/cfbd/models/live_game_drive.py +++ b/cfbd/models/live_game_drive.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/live_game_play.py b/cfbd/models/live_game_play.py index 0fe803cb..754e212a 100644 --- a/cfbd/models/live_game_play.py +++ b/cfbd/models/live_game_play.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/live_game_team.py b/cfbd/models/live_game_team.py index 667aad4d..a6d9a315 100644 --- a/cfbd/models/live_game_team.py +++ b/cfbd/models/live_game_team.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/matchup.py b/cfbd/models/matchup.py index 164aca80..5d073f65 100644 --- a/cfbd/models/matchup.py +++ b/cfbd/models/matchup.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/matchup_game.py b/cfbd/models/matchup_game.py index ea61b863..6d86c5f0 100644 --- a/cfbd/models/matchup_game.py +++ b/cfbd/models/matchup_game.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/media_type.py b/cfbd/models/media_type.py index 23e37349..4e71b50b 100644 --- a/cfbd/models/media_type.py +++ b/cfbd/models/media_type.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/play.py b/cfbd/models/play.py index efabe10b..b2140d9c 100644 --- a/cfbd/models/play.py +++ b/cfbd/models/play.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/play_clock.py b/cfbd/models/play_clock.py index 03d7dcdf..86198a5c 100644 --- a/cfbd/models/play_clock.py +++ b/cfbd/models/play_clock.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/play_stat.py b/cfbd/models/play_stat.py index 3377eb90..1d58b058 100644 --- a/cfbd/models/play_stat.py +++ b/cfbd/models/play_stat.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/play_stat_clock.py b/cfbd/models/play_stat_clock.py index a7c21b4b..36cdb616 100644 --- a/cfbd/models/play_stat_clock.py +++ b/cfbd/models/play_stat_clock.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/play_stat_type.py b/cfbd/models/play_stat_type.py index 08775b26..731e505d 100644 --- a/cfbd/models/play_stat_type.py +++ b/cfbd/models/play_stat_type.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/play_type.py b/cfbd/models/play_type.py index 5285332a..120633b3 100644 --- a/cfbd/models/play_type.py +++ b/cfbd/models/play_type.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/play_win_probability.py b/cfbd/models/play_win_probability.py index 11ccc02e..f11385b4 100644 --- a/cfbd/models/play_win_probability.py +++ b/cfbd/models/play_win_probability.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_game_predicted_points_added.py b/cfbd/models/player_game_predicted_points_added.py index 0ebdb06d..32bc989f 100644 --- a/cfbd/models/player_game_predicted_points_added.py +++ b/cfbd/models/player_game_predicted_points_added.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_game_predicted_points_added_average_ppa.py b/cfbd/models/player_game_predicted_points_added_average_ppa.py index 1abd9252..061680d3 100644 --- a/cfbd/models/player_game_predicted_points_added_average_ppa.py +++ b/cfbd/models/player_game_predicted_points_added_average_ppa.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_game_usage.py b/cfbd/models/player_game_usage.py index b9b8784d..250c74f9 100644 --- a/cfbd/models/player_game_usage.py +++ b/cfbd/models/player_game_usage.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_ppa.py b/cfbd/models/player_ppa.py index f587b756..f106b7cb 100644 --- a/cfbd/models/player_ppa.py +++ b/cfbd/models/player_ppa.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_ppa_chart_item.py b/cfbd/models/player_ppa_chart_item.py index 02e292db..e03f7874 100644 --- a/cfbd/models/player_ppa_chart_item.py +++ b/cfbd/models/player_ppa_chart_item.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_search_result.py b/cfbd/models/player_search_result.py index 699a8b4d..62025411 100644 --- a/cfbd/models/player_search_result.py +++ b/cfbd/models/player_search_result.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_season_predicted_points_added.py b/cfbd/models/player_season_predicted_points_added.py index eb8e17ec..4f65767e 100644 --- a/cfbd/models/player_season_predicted_points_added.py +++ b/cfbd/models/player_season_predicted_points_added.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_season_predicted_points_added_average_ppa.py b/cfbd/models/player_season_predicted_points_added_average_ppa.py index 71b90401..4126fb07 100644 --- a/cfbd/models/player_season_predicted_points_added_average_ppa.py +++ b/cfbd/models/player_season_predicted_points_added_average_ppa.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_stat.py b/cfbd/models/player_stat.py index 3fa39da0..7b92a58f 100644 --- a/cfbd/models/player_stat.py +++ b/cfbd/models/player_stat.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_stats_by_quarter.py b/cfbd/models/player_stats_by_quarter.py index 2fa6b1da..654610a5 100644 --- a/cfbd/models/player_stats_by_quarter.py +++ b/cfbd/models/player_stats_by_quarter.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_transfer.py b/cfbd/models/player_transfer.py index 73875273..1507761c 100644 --- a/cfbd/models/player_transfer.py +++ b/cfbd/models/player_transfer.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_usage.py b/cfbd/models/player_usage.py index c2603ae7..8ac00631 100644 --- a/cfbd/models/player_usage.py +++ b/cfbd/models/player_usage.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_usage_usage.py b/cfbd/models/player_usage_usage.py index 89bf5a7e..6ef0cbfd 100644 --- a/cfbd/models/player_usage_usage.py +++ b/cfbd/models/player_usage_usage.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/player_weighted_epa.py b/cfbd/models/player_weighted_epa.py new file mode 100644 index 00000000..1e3d2bf8 --- /dev/null +++ b/cfbd/models/player_weighted_epa.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Union +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + +class PlayerWeightedEPA(BaseModel): + """ + PlayerWeightedEPA + """ + year: StrictInt = Field(...) + athlete_id: StrictStr = Field(default=..., alias="athleteId") + athlete_name: StrictStr = Field(default=..., alias="athleteName") + position: StrictStr = Field(...) + team: StrictStr = Field(...) + conference: StrictStr = Field(...) + wepa: Union[StrictFloat, StrictInt] = Field(...) + plays: StrictInt = Field(...) + __properties = ["year", "athleteId", "athleteName", "position", "team", "conference", "wepa", "plays"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> PlayerWeightedEPA: + """Create an instance of PlayerWeightedEPA from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> PlayerWeightedEPA: + """Create an instance of PlayerWeightedEPA from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return PlayerWeightedEPA.parse_obj(obj) + + _obj = PlayerWeightedEPA.parse_obj({ + "year": obj.get("year"), + "athlete_id": obj.get("athleteId"), + "athlete_name": obj.get("athleteName"), + "position": obj.get("position"), + "team": obj.get("team"), + "conference": obj.get("conference"), + "wepa": obj.get("wepa"), + "plays": obj.get("plays") + }) + return _obj + + diff --git a/cfbd/models/poll.py b/cfbd/models/poll.py index 35273e2e..597c5a7e 100644 --- a/cfbd/models/poll.py +++ b/cfbd/models/poll.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/poll_rank.py b/cfbd/models/poll_rank.py index f1fd4c2c..2ba592c4 100644 --- a/cfbd/models/poll_rank.py +++ b/cfbd/models/poll_rank.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/poll_week.py b/cfbd/models/poll_week.py index 1a786315..72a67f56 100644 --- a/cfbd/models/poll_week.py +++ b/cfbd/models/poll_week.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/predicted_points_value.py b/cfbd/models/predicted_points_value.py index f984a647..6208034b 100644 --- a/cfbd/models/predicted_points_value.py +++ b/cfbd/models/predicted_points_value.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/pregame_win_probability.py b/cfbd/models/pregame_win_probability.py index b3b6a594..82f1ecb1 100644 --- a/cfbd/models/pregame_win_probability.py +++ b/cfbd/models/pregame_win_probability.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/recruit.py b/cfbd/models/recruit.py index da35292e..c0874307 100644 --- a/cfbd/models/recruit.py +++ b/cfbd/models/recruit.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/recruit_classification.py b/cfbd/models/recruit_classification.py index b6bb37cd..e21f3a4a 100644 --- a/cfbd/models/recruit_classification.py +++ b/cfbd/models/recruit_classification.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/recruit_hometown_info.py b/cfbd/models/recruit_hometown_info.py index 4fa1ca15..45f6b767 100644 --- a/cfbd/models/recruit_hometown_info.py +++ b/cfbd/models/recruit_hometown_info.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/returning_production.py b/cfbd/models/returning_production.py index 48d628ba..5536a8ba 100644 --- a/cfbd/models/returning_production.py +++ b/cfbd/models/returning_production.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/roster_player.py b/cfbd/models/roster_player.py index 34330ad1..72859055 100644 --- a/cfbd/models/roster_player.py +++ b/cfbd/models/roster_player.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/scoreboard_game.py b/cfbd/models/scoreboard_game.py index 22eff9a5..d3051abe 100644 --- a/cfbd/models/scoreboard_game.py +++ b/cfbd/models/scoreboard_game.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/scoreboard_game_betting.py b/cfbd/models/scoreboard_game_betting.py index c8dd1b1d..4cd68d2a 100644 --- a/cfbd/models/scoreboard_game_betting.py +++ b/cfbd/models/scoreboard_game_betting.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/scoreboard_game_home_team.py b/cfbd/models/scoreboard_game_home_team.py index 989d480b..80951904 100644 --- a/cfbd/models/scoreboard_game_home_team.py +++ b/cfbd/models/scoreboard_game_home_team.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/scoreboard_game_venue.py b/cfbd/models/scoreboard_game_venue.py index e9286792..bb9e5753 100644 --- a/cfbd/models/scoreboard_game_venue.py +++ b/cfbd/models/scoreboard_game_venue.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/scoreboard_game_weather.py b/cfbd/models/scoreboard_game_weather.py index 00753705..899b04d1 100644 --- a/cfbd/models/scoreboard_game_weather.py +++ b/cfbd/models/scoreboard_game_weather.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/season_type.py b/cfbd/models/season_type.py index 88dfff45..c8d80993 100644 --- a/cfbd/models/season_type.py +++ b/cfbd/models/season_type.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/stats_by_quarter.py b/cfbd/models/stats_by_quarter.py index 510b3cfe..15443dea 100644 --- a/cfbd/models/stats_by_quarter.py +++ b/cfbd/models/stats_by_quarter.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team.py b/cfbd/models/team.py index 0787d0f4..1185cf50 100644 --- a/cfbd/models/team.py +++ b/cfbd/models/team.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_elo.py b/cfbd/models/team_elo.py index 614156bd..6a8eef60 100644 --- a/cfbd/models/team_elo.py +++ b/cfbd/models/team_elo.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_explosiveness.py b/cfbd/models/team_explosiveness.py index 2f73a75a..7fd4f901 100644 --- a/cfbd/models/team_explosiveness.py +++ b/cfbd/models/team_explosiveness.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_field_position.py b/cfbd/models/team_field_position.py index c3c5511c..ad70f811 100644 --- a/cfbd/models/team_field_position.py +++ b/cfbd/models/team_field_position.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_fpi.py b/cfbd/models/team_fpi.py index f2a4ca54..c2afbd70 100644 --- a/cfbd/models/team_fpi.py +++ b/cfbd/models/team_fpi.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_fpi_efficiencies.py b/cfbd/models/team_fpi_efficiencies.py index 42668b07..0f3a239f 100644 --- a/cfbd/models/team_fpi_efficiencies.py +++ b/cfbd/models/team_fpi_efficiencies.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_fpi_resume_ranks.py b/cfbd/models/team_fpi_resume_ranks.py index 7be1877c..efa1572d 100644 --- a/cfbd/models/team_fpi_resume_ranks.py +++ b/cfbd/models/team_fpi_resume_ranks.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_game_predicted_points_added.py b/cfbd/models/team_game_predicted_points_added.py index f99bdfc6..2a74e41e 100644 --- a/cfbd/models/team_game_predicted_points_added.py +++ b/cfbd/models/team_game_predicted_points_added.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_game_predicted_points_added_offense.py b/cfbd/models/team_game_predicted_points_added_offense.py index a2838123..e5389116 100644 --- a/cfbd/models/team_game_predicted_points_added_offense.py +++ b/cfbd/models/team_game_predicted_points_added_offense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_havoc.py b/cfbd/models/team_havoc.py index 049a9e56..4f7e317b 100644 --- a/cfbd/models/team_havoc.py +++ b/cfbd/models/team_havoc.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_ppa.py b/cfbd/models/team_ppa.py index 50c3c4c3..73ac3f71 100644 --- a/cfbd/models/team_ppa.py +++ b/cfbd/models/team_ppa.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_record.py b/cfbd/models/team_record.py index 548a1405..5a9c9247 100644 --- a/cfbd/models/team_record.py +++ b/cfbd/models/team_record.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_records.py b/cfbd/models/team_records.py index a598ab54..18eff0dd 100644 --- a/cfbd/models/team_records.py +++ b/cfbd/models/team_records.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_recruiting_ranking.py b/cfbd/models/team_recruiting_ranking.py index 0299713d..0e3ed42b 100644 --- a/cfbd/models/team_recruiting_ranking.py +++ b/cfbd/models/team_recruiting_ranking.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_rushing_stats.py b/cfbd/models/team_rushing_stats.py index fb495868..1594b0c4 100644 --- a/cfbd/models/team_rushing_stats.py +++ b/cfbd/models/team_rushing_stats.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_scoring_opportunities.py b/cfbd/models/team_scoring_opportunities.py index 99ee7cf2..772149cf 100644 --- a/cfbd/models/team_scoring_opportunities.py +++ b/cfbd/models/team_scoring_opportunities.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_season_predicted_points_added.py b/cfbd/models/team_season_predicted_points_added.py index bf37735d..4168c5b3 100644 --- a/cfbd/models/team_season_predicted_points_added.py +++ b/cfbd/models/team_season_predicted_points_added.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_season_predicted_points_added_offense.py b/cfbd/models/team_season_predicted_points_added_offense.py index 3ac8e170..74316ed8 100644 --- a/cfbd/models/team_season_predicted_points_added_offense.py +++ b/cfbd/models/team_season_predicted_points_added_offense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,13 +21,13 @@ from typing import Union from pydantic import BaseModel, Field, StrictFloat, StrictInt -from cfbd.models.adjusted_metrics_epa import AdjustedMetricsEpa +from cfbd.models.adjusted_team_metrics_epa import AdjustedTeamMetricsEpa class TeamSeasonPredictedPointsAddedOffense(BaseModel): """ TeamSeasonPredictedPointsAddedOffense """ - cumulative: AdjustedMetricsEpa = Field(...) + cumulative: AdjustedTeamMetricsEpa = Field(...) third_down: Union[StrictFloat, StrictInt] = Field(default=..., alias="thirdDown") second_down: Union[StrictFloat, StrictInt] = Field(default=..., alias="secondDown") first_down: Union[StrictFloat, StrictInt] = Field(default=..., alias="firstDown") @@ -75,7 +75,7 @@ def from_dict(cls, obj: dict) -> TeamSeasonPredictedPointsAddedOffense: return TeamSeasonPredictedPointsAddedOffense.parse_obj(obj) _obj = TeamSeasonPredictedPointsAddedOffense.parse_obj({ - "cumulative": AdjustedMetricsEpa.from_dict(obj.get("cumulative")) if obj.get("cumulative") is not None else None, + "cumulative": AdjustedTeamMetricsEpa.from_dict(obj.get("cumulative")) if obj.get("cumulative") is not None else None, "third_down": obj.get("thirdDown"), "second_down": obj.get("secondDown"), "first_down": obj.get("firstDown"), diff --git a/cfbd/models/team_sp.py b/cfbd/models/team_sp.py index f32ef561..cc5c8dcf 100644 --- a/cfbd/models/team_sp.py +++ b/cfbd/models/team_sp.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_sp_defense.py b/cfbd/models/team_sp_defense.py index 4df7152d..8b966f96 100644 --- a/cfbd/models/team_sp_defense.py +++ b/cfbd/models/team_sp_defense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_sp_offense.py b/cfbd/models/team_sp_offense.py index 3d8c1b0b..bd9ba104 100644 --- a/cfbd/models/team_sp_offense.py +++ b/cfbd/models/team_sp_offense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_sp_special_teams.py b/cfbd/models/team_sp_special_teams.py index 3032c120..fdb65f23 100644 --- a/cfbd/models/team_sp_special_teams.py +++ b/cfbd/models/team_sp_special_teams.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_srs.py b/cfbd/models/team_srs.py index b6dcf24a..b789a70c 100644 --- a/cfbd/models/team_srs.py +++ b/cfbd/models/team_srs.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_stat.py b/cfbd/models/team_stat.py index 64520f7e..e394da2d 100644 --- a/cfbd/models/team_stat.py +++ b/cfbd/models/team_stat.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_stat_stat_value.py b/cfbd/models/team_stat_stat_value.py index 0a3b1e96..a022110c 100644 --- a/cfbd/models/team_stat_stat_value.py +++ b/cfbd/models/team_stat_stat_value.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_success_rates.py b/cfbd/models/team_success_rates.py index 70fc6d0a..8f9c8f57 100644 --- a/cfbd/models/team_success_rates.py +++ b/cfbd/models/team_success_rates.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/team_talent.py b/cfbd/models/team_talent.py index 11bbaa55..a266cebb 100644 --- a/cfbd/models/team_talent.py +++ b/cfbd/models/team_talent.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/transfer_eligibility.py b/cfbd/models/transfer_eligibility.py index eabdc746..766e4517 100644 --- a/cfbd/models/transfer_eligibility.py +++ b/cfbd/models/transfer_eligibility.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/models/venue.py b/cfbd/models/venue.py index 87c314cb..caf7bf01 100644 --- a/cfbd/models/venue.py +++ b/cfbd/models/venue.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/cfbd/rest.py b/cfbd/rest.py index 8c17533b..00a2c1ee 100644 --- a/cfbd/rest.py +++ b/cfbd/rest.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/docs/AdjustedMetricsApi.md b/docs/AdjustedMetricsApi.md new file mode 100644 index 00000000..d6e103b2 --- /dev/null +++ b/docs/AdjustedMetricsApi.md @@ -0,0 +1,336 @@ +# cfbd.AdjustedMetricsApi + +All URIs are relative to *https://apinext.collegefootballdata.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_adjusted_player_passing_stats**](AdjustedMetricsApi.md#get_adjusted_player_passing_stats) | **GET** /wepa/players/passing | +[**get_adjusted_player_rushing_stats**](AdjustedMetricsApi.md#get_adjusted_player_rushing_stats) | **GET** /wepa/players/rushing | +[**get_adjusted_team_season_stats**](AdjustedMetricsApi.md#get_adjusted_team_season_stats) | **GET** /wepa/team/season | +[**get_kicker_paar**](AdjustedMetricsApi.md#get_kicker_paar) | **GET** /wepa/players/kicking | + + +# **get_adjusted_player_passing_stats** +> List[PlayerWeightedEPA] get_adjusted_player_passing_stats(year=year, team=team, conference=conference, position=position) + + + +Retrieve opponent-adjusted player passing statistics + +### Example + +* Bearer Authentication (apiKey): +```python +import time +import os +import cfbd +from cfbd.models.player_weighted_epa import PlayerWeightedEPA +from cfbd.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://apinext.collegefootballdata.com +# See configuration.py for a list of all supported configuration parameters. +configuration = cfbd.Configuration( + host = "https://apinext.collegefootballdata.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: apiKey +configuration = cfbd.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with cfbd.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cfbd.AdjustedMetricsApi(api_client) + year = 56 # int | Optional year filter (optional) + team = 'team_example' # str | Optional team filter (optional) + conference = 'conference_example' # str | Optional conference abbreviation filter (optional) + position = 'position_example' # str | Optional position abbreviation filter (optional) + + try: + api_response = api_instance.get_adjusted_player_passing_stats(year=year, team=team, conference=conference, position=position) + print("The response of AdjustedMetricsApi->get_adjusted_player_passing_stats:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdjustedMetricsApi->get_adjusted_player_passing_stats: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **year** | **int**| Optional year filter | [optional] + **team** | **str**| Optional team filter | [optional] + **conference** | **str**| Optional conference abbreviation filter | [optional] + **position** | **str**| Optional position abbreviation filter | [optional] + +### Return type + +[**List[PlayerWeightedEPA]**](PlayerWeightedEPA.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_adjusted_player_rushing_stats** +> List[PlayerWeightedEPA] get_adjusted_player_rushing_stats(year=year, team=team, conference=conference, position=position) + + + +Retrieve opponent-adjusted player rushing statistics + +### Example + +* Bearer Authentication (apiKey): +```python +import time +import os +import cfbd +from cfbd.models.player_weighted_epa import PlayerWeightedEPA +from cfbd.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://apinext.collegefootballdata.com +# See configuration.py for a list of all supported configuration parameters. +configuration = cfbd.Configuration( + host = "https://apinext.collegefootballdata.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: apiKey +configuration = cfbd.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with cfbd.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cfbd.AdjustedMetricsApi(api_client) + year = 56 # int | Optional year filter (optional) + team = 'team_example' # str | Optional team filter (optional) + conference = 'conference_example' # str | Optional conference abbreviation filter (optional) + position = 'position_example' # str | Optional position abbreviation filter (optional) + + try: + api_response = api_instance.get_adjusted_player_rushing_stats(year=year, team=team, conference=conference, position=position) + print("The response of AdjustedMetricsApi->get_adjusted_player_rushing_stats:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdjustedMetricsApi->get_adjusted_player_rushing_stats: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **year** | **int**| Optional year filter | [optional] + **team** | **str**| Optional team filter | [optional] + **conference** | **str**| Optional conference abbreviation filter | [optional] + **position** | **str**| Optional position abbreviation filter | [optional] + +### Return type + +[**List[PlayerWeightedEPA]**](PlayerWeightedEPA.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_adjusted_team_season_stats** +> List[AdjustedTeamMetrics] get_adjusted_team_season_stats(year=year, team=team, conference=conference) + + + +Retrieve opponent-adjusted team season statistics + +### Example + +* Bearer Authentication (apiKey): +```python +import time +import os +import cfbd +from cfbd.models.adjusted_team_metrics import AdjustedTeamMetrics +from cfbd.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://apinext.collegefootballdata.com +# See configuration.py for a list of all supported configuration parameters. +configuration = cfbd.Configuration( + host = "https://apinext.collegefootballdata.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: apiKey +configuration = cfbd.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with cfbd.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cfbd.AdjustedMetricsApi(api_client) + year = 56 # int | Optional year filter (optional) + team = 'team_example' # str | Optional team filter (optional) + conference = 'conference_example' # str | Optional conference filter (optional) + + try: + api_response = api_instance.get_adjusted_team_season_stats(year=year, team=team, conference=conference) + print("The response of AdjustedMetricsApi->get_adjusted_team_season_stats:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdjustedMetricsApi->get_adjusted_team_season_stats: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **year** | **int**| Optional year filter | [optional] + **team** | **str**| Optional team filter | [optional] + **conference** | **str**| Optional conference filter | [optional] + +### Return type + +[**List[AdjustedTeamMetrics]**](AdjustedTeamMetrics.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_kicker_paar** +> List[KickerPAAR] get_kicker_paar(year=year, team=team, conference=conference) + + + +Retrieve Points Added Above Replacement (PAAR) ratings for kickers + +### Example + +* Bearer Authentication (apiKey): +```python +import time +import os +import cfbd +from cfbd.models.kicker_paar import KickerPAAR +from cfbd.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://apinext.collegefootballdata.com +# See configuration.py for a list of all supported configuration parameters. +configuration = cfbd.Configuration( + host = "https://apinext.collegefootballdata.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: apiKey +configuration = cfbd.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with cfbd.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cfbd.AdjustedMetricsApi(api_client) + year = 56 # int | Optional year filter (optional) + team = 'team_example' # str | Optional team filter (optional) + conference = 'conference_example' # str | Optional conference abbreviation filter (optional) + + try: + api_response = api_instance.get_kicker_paar(year=year, team=team, conference=conference) + print("The response of AdjustedMetricsApi->get_kicker_paar:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdjustedMetricsApi->get_kicker_paar: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **year** | **int**| Optional year filter | [optional] + **team** | **str**| Optional team filter | [optional] + **conference** | **str**| Optional conference abbreviation filter | [optional] + +### Return type + +[**List[KickerPAAR]**](KickerPAAR.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AdjustedTeamMetrics.md b/docs/AdjustedTeamMetrics.md new file mode 100644 index 00000000..99824725 --- /dev/null +++ b/docs/AdjustedTeamMetrics.md @@ -0,0 +1,39 @@ +# AdjustedTeamMetrics + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**year** | **int** | | +**team_id** | **int** | | +**team** | **str** | | +**conference** | **str** | | +**epa** | [**AdjustedTeamMetricsEpa**](AdjustedTeamMetricsEpa.md) | | +**epa_allowed** | [**AdjustedTeamMetricsEpa**](AdjustedTeamMetricsEpa.md) | | +**success_rate** | [**AdjustedTeamMetricsSuccessRate**](AdjustedTeamMetricsSuccessRate.md) | | +**success_rate_allowed** | [**AdjustedTeamMetricsSuccessRate**](AdjustedTeamMetricsSuccessRate.md) | | +**rushing** | [**AdjustedTeamMetricsRushing**](AdjustedTeamMetricsRushing.md) | | +**rushing_allowed** | [**AdjustedTeamMetricsRushing**](AdjustedTeamMetricsRushing.md) | | +**explosiveness** | **float** | | +**explosiveness_allowed** | **float** | | + +## Example + +```python +from cfbd.models.adjusted_team_metrics import AdjustedTeamMetrics + +# TODO update the JSON string below +json = "{}" +# create an instance of AdjustedTeamMetrics from a JSON string +adjusted_team_metrics_instance = AdjustedTeamMetrics.from_json(json) +# print the JSON string representation of the object +print AdjustedTeamMetrics.to_json() + +# convert the object into a dict +adjusted_team_metrics_dict = adjusted_team_metrics_instance.to_dict() +# create an instance of AdjustedTeamMetrics from a dict +adjusted_team_metrics_from_dict = AdjustedTeamMetrics.from_dict(adjusted_team_metrics_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AdjustedTeamMetricsEpa.md b/docs/AdjustedTeamMetricsEpa.md new file mode 100644 index 00000000..3defa451 --- /dev/null +++ b/docs/AdjustedTeamMetricsEpa.md @@ -0,0 +1,30 @@ +# AdjustedTeamMetricsEpa + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rushing** | **float** | | +**passing** | **float** | | +**total** | **float** | | + +## Example + +```python +from cfbd.models.adjusted_team_metrics_epa import AdjustedTeamMetricsEpa + +# TODO update the JSON string below +json = "{}" +# create an instance of AdjustedTeamMetricsEpa from a JSON string +adjusted_team_metrics_epa_instance = AdjustedTeamMetricsEpa.from_json(json) +# print the JSON string representation of the object +print AdjustedTeamMetricsEpa.to_json() + +# convert the object into a dict +adjusted_team_metrics_epa_dict = adjusted_team_metrics_epa_instance.to_dict() +# create an instance of AdjustedTeamMetricsEpa from a dict +adjusted_team_metrics_epa_from_dict = AdjustedTeamMetricsEpa.from_dict(adjusted_team_metrics_epa_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AdjustedTeamMetricsRushing.md b/docs/AdjustedTeamMetricsRushing.md new file mode 100644 index 00000000..6baa83c6 --- /dev/null +++ b/docs/AdjustedTeamMetricsRushing.md @@ -0,0 +1,30 @@ +# AdjustedTeamMetricsRushing + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**open_field_yards** | **float** | | +**second_level_yards** | **float** | | +**line_yards** | **float** | | + +## Example + +```python +from cfbd.models.adjusted_team_metrics_rushing import AdjustedTeamMetricsRushing + +# TODO update the JSON string below +json = "{}" +# create an instance of AdjustedTeamMetricsRushing from a JSON string +adjusted_team_metrics_rushing_instance = AdjustedTeamMetricsRushing.from_json(json) +# print the JSON string representation of the object +print AdjustedTeamMetricsRushing.to_json() + +# convert the object into a dict +adjusted_team_metrics_rushing_dict = adjusted_team_metrics_rushing_instance.to_dict() +# create an instance of AdjustedTeamMetricsRushing from a dict +adjusted_team_metrics_rushing_from_dict = AdjustedTeamMetricsRushing.from_dict(adjusted_team_metrics_rushing_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AdjustedTeamMetricsSuccessRate.md b/docs/AdjustedTeamMetricsSuccessRate.md new file mode 100644 index 00000000..92549b62 --- /dev/null +++ b/docs/AdjustedTeamMetricsSuccessRate.md @@ -0,0 +1,30 @@ +# AdjustedTeamMetricsSuccessRate + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**passing_downs** | **float** | | +**standard_downs** | **float** | | +**total** | **float** | | + +## Example + +```python +from cfbd.models.adjusted_team_metrics_success_rate import AdjustedTeamMetricsSuccessRate + +# TODO update the JSON string below +json = "{}" +# create an instance of AdjustedTeamMetricsSuccessRate from a JSON string +adjusted_team_metrics_success_rate_instance = AdjustedTeamMetricsSuccessRate.from_json(json) +# print the JSON string representation of the object +print AdjustedTeamMetricsSuccessRate.to_json() + +# convert the object into a dict +adjusted_team_metrics_success_rate_dict = adjusted_team_metrics_success_rate_instance.to_dict() +# create an instance of AdjustedTeamMetricsSuccessRate from a dict +adjusted_team_metrics_success_rate_from_dict = AdjustedTeamMetricsSuccessRate.from_dict(adjusted_team_metrics_success_rate_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KickerPAAR.md b/docs/KickerPAAR.md new file mode 100644 index 00000000..dfd38b28 --- /dev/null +++ b/docs/KickerPAAR.md @@ -0,0 +1,34 @@ +# KickerPAAR + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**year** | **int** | | +**athlete_id** | **str** | | +**athlete_name** | **str** | | +**team** | **str** | | +**conference** | **str** | | +**paar** | **float** | | +**attempts** | **int** | | + +## Example + +```python +from cfbd.models.kicker_paar import KickerPAAR + +# TODO update the JSON string below +json = "{}" +# create an instance of KickerPAAR from a JSON string +kicker_paar_instance = KickerPAAR.from_json(json) +# print the JSON string representation of the object +print KickerPAAR.to_json() + +# convert the object into a dict +kicker_paar_dict = kicker_paar_instance.to_dict() +# create an instance of KickerPAAR from a dict +kicker_paar_from_dict = KickerPAAR.from_dict(kicker_paar_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PlayerWeightedEPA.md b/docs/PlayerWeightedEPA.md new file mode 100644 index 00000000..d762ed99 --- /dev/null +++ b/docs/PlayerWeightedEPA.md @@ -0,0 +1,35 @@ +# PlayerWeightedEPA + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**year** | **int** | | +**athlete_id** | **str** | | +**athlete_name** | **str** | | +**position** | **str** | | +**team** | **str** | | +**conference** | **str** | | +**wepa** | **float** | | +**plays** | **int** | | + +## Example + +```python +from cfbd.models.player_weighted_epa import PlayerWeightedEPA + +# TODO update the JSON string below +json = "{}" +# create an instance of PlayerWeightedEPA from a JSON string +player_weighted_epa_instance = PlayerWeightedEPA.from_json(json) +# print the JSON string representation of the object +print PlayerWeightedEPA.to_json() + +# convert the object into a dict +player_weighted_epa_dict = player_weighted_epa_instance.to_dict() +# create an instance of PlayerWeightedEPA from a dict +player_weighted_epa_from_dict = PlayerWeightedEPA.from_dict(player_weighted_epa_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatsApi.md b/docs/StatsApi.md index 6e5e3d66..7256efa2 100644 --- a/docs/StatsApi.md +++ b/docs/StatsApi.md @@ -4,7 +4,6 @@ All URIs are relative to *https://apinext.collegefootballdata.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_adjusted_team_season_stats**](StatsApi.md#get_adjusted_team_season_stats) | **GET** /stats/season/adjusted | [**get_advanced_game_stats**](StatsApi.md#get_advanced_game_stats) | **GET** /stats/game/advanced | [**get_advanced_season_stats**](StatsApi.md#get_advanced_season_stats) | **GET** /stats/season/advanced | [**get_categories**](StatsApi.md#get_categories) | **GET** /stats/categories | @@ -12,86 +11,6 @@ Method | HTTP request | Description [**get_team_stats**](StatsApi.md#get_team_stats) | **GET** /stats/season | -# **get_adjusted_team_season_stats** -> List[AdjustedMetrics] get_adjusted_team_season_stats(year=year, team=team, conference=conference) - - - -Retrieve opponent-adjusted team season statistics - -### Example - -* Bearer Authentication (apiKey): -```python -import time -import os -import cfbd -from cfbd.models.adjusted_metrics import AdjustedMetrics -from cfbd.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://apinext.collegefootballdata.com -# See configuration.py for a list of all supported configuration parameters. -configuration = cfbd.Configuration( - host = "https://apinext.collegefootballdata.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: apiKey -configuration = cfbd.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with cfbd.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cfbd.StatsApi(api_client) - year = 56 # int | Optional year filter (optional) - team = 'team_example' # str | Optional team filter (optional) - conference = 'conference_example' # str | Optional conference filter (optional) - - try: - api_response = api_instance.get_adjusted_team_season_stats(year=year, team=team, conference=conference) - print("The response of StatsApi->get_adjusted_team_season_stats:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling StatsApi->get_adjusted_team_season_stats: %s\n" % e) -``` - - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **year** | **int**| Optional year filter | [optional] - **team** | **str**| Optional team filter | [optional] - **conference** | **str**| Optional conference filter | [optional] - -### Return type - -[**List[AdjustedMetrics]**](AdjustedMetrics.md) - -### Authorization - -[apiKey](../README.md#apiKey) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Ok | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_advanced_game_stats** > List[AdvancedGameStat] get_advanced_game_stats(year=year, team=team, week=week, opponent=opponent, exclude_garbage_time=exclude_garbage_time, season_type=season_type) diff --git a/docs/TeamSeasonPredictedPointsAddedOffense.md b/docs/TeamSeasonPredictedPointsAddedOffense.md index ffa326a9..1bc4ea6b 100644 --- a/docs/TeamSeasonPredictedPointsAddedOffense.md +++ b/docs/TeamSeasonPredictedPointsAddedOffense.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cumulative** | [**AdjustedMetricsEpa**](AdjustedMetricsEpa.md) | | +**cumulative** | [**AdjustedTeamMetricsEpa**](AdjustedTeamMetricsEpa.md) | | **third_down** | **float** | | **second_down** | **float** | | **first_down** | **float** | | diff --git a/pyproject.toml b/pyproject.toml index d90198f0..dc4e5aab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cfbd" -version = "5.1.3a1" +version = "5.2.0a1" description = "College Football Data API" authors = ["the developer "] license = "MIT" diff --git a/setup.py b/setup.py index bac1ab8e..24cb3e63 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "cfbd" -VERSION = "5.1.3a1" +VERSION = "5.2.0a1" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/test/test_adjusted_metrics_api.py b/test/test_adjusted_metrics_api.py new file mode 100644 index 00000000..52f905fb --- /dev/null +++ b/test/test_adjusted_metrics_api.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cfbd.api.adjusted_metrics_api import AdjustedMetricsApi # noqa: E501 + + +class TestAdjustedMetricsApi(unittest.TestCase): + """AdjustedMetricsApi unit test stubs""" + + def setUp(self) -> None: + self.api = AdjustedMetricsApi() # noqa: E501 + + def tearDown(self) -> None: + pass + + def test_get_adjusted_player_passing_stats(self) -> None: + """Test case for get_adjusted_player_passing_stats + + """ + pass + + def test_get_adjusted_player_rushing_stats(self) -> None: + """Test case for get_adjusted_player_rushing_stats + + """ + pass + + def test_get_adjusted_team_season_stats(self) -> None: + """Test case for get_adjusted_team_season_stats + + """ + pass + + def test_get_kicker_paar(self) -> None: + """Test case for get_kicker_paar + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_adjusted_team_metrics.py b/test/test_adjusted_team_metrics.py new file mode 100644 index 00000000..3f685f3e --- /dev/null +++ b/test/test_adjusted_team_metrics.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from cfbd.models.adjusted_team_metrics import AdjustedTeamMetrics # noqa: E501 + +class TestAdjustedTeamMetrics(unittest.TestCase): + """AdjustedTeamMetrics unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdjustedTeamMetrics: + """Test AdjustedTeamMetrics + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AdjustedTeamMetrics` + """ + model = AdjustedTeamMetrics() # noqa: E501 + if include_optional: + return AdjustedTeamMetrics( + year = 56, + team_id = 56, + team = '', + conference = '', + epa = cfbd.models.adjusted_team_metrics_epa.AdjustedTeamMetrics_epa( + rushing = 1.337, + passing = 1.337, + total = 1.337, ), + epa_allowed = cfbd.models.adjusted_team_metrics_epa.AdjustedTeamMetrics_epa( + rushing = 1.337, + passing = 1.337, + total = 1.337, ), + success_rate = cfbd.models.adjusted_team_metrics_success_rate.AdjustedTeamMetrics_successRate( + passing_downs = 1.337, + standard_downs = 1.337, + total = 1.337, ), + success_rate_allowed = cfbd.models.adjusted_team_metrics_success_rate.AdjustedTeamMetrics_successRate( + passing_downs = 1.337, + standard_downs = 1.337, + total = 1.337, ), + rushing = cfbd.models.adjusted_team_metrics_rushing.AdjustedTeamMetrics_rushing( + open_field_yards = 1.337, + second_level_yards = 1.337, + line_yards = 1.337, ), + rushing_allowed = cfbd.models.adjusted_team_metrics_rushing.AdjustedTeamMetrics_rushing( + open_field_yards = 1.337, + second_level_yards = 1.337, + line_yards = 1.337, ), + explosiveness = 1.337, + explosiveness_allowed = 1.337 + ) + else: + return AdjustedTeamMetrics( + year = 56, + team_id = 56, + team = '', + conference = '', + epa = cfbd.models.adjusted_team_metrics_epa.AdjustedTeamMetrics_epa( + rushing = 1.337, + passing = 1.337, + total = 1.337, ), + epa_allowed = cfbd.models.adjusted_team_metrics_epa.AdjustedTeamMetrics_epa( + rushing = 1.337, + passing = 1.337, + total = 1.337, ), + success_rate = cfbd.models.adjusted_team_metrics_success_rate.AdjustedTeamMetrics_successRate( + passing_downs = 1.337, + standard_downs = 1.337, + total = 1.337, ), + success_rate_allowed = cfbd.models.adjusted_team_metrics_success_rate.AdjustedTeamMetrics_successRate( + passing_downs = 1.337, + standard_downs = 1.337, + total = 1.337, ), + rushing = cfbd.models.adjusted_team_metrics_rushing.AdjustedTeamMetrics_rushing( + open_field_yards = 1.337, + second_level_yards = 1.337, + line_yards = 1.337, ), + rushing_allowed = cfbd.models.adjusted_team_metrics_rushing.AdjustedTeamMetrics_rushing( + open_field_yards = 1.337, + second_level_yards = 1.337, + line_yards = 1.337, ), + explosiveness = 1.337, + explosiveness_allowed = 1.337, + ) + """ + + def testAdjustedTeamMetrics(self): + """Test AdjustedTeamMetrics""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_adjusted_team_metrics_epa.py b/test/test_adjusted_team_metrics_epa.py new file mode 100644 index 00000000..5df152da --- /dev/null +++ b/test/test_adjusted_team_metrics_epa.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from cfbd.models.adjusted_team_metrics_epa import AdjustedTeamMetricsEpa # noqa: E501 + +class TestAdjustedTeamMetricsEpa(unittest.TestCase): + """AdjustedTeamMetricsEpa unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdjustedTeamMetricsEpa: + """Test AdjustedTeamMetricsEpa + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AdjustedTeamMetricsEpa` + """ + model = AdjustedTeamMetricsEpa() # noqa: E501 + if include_optional: + return AdjustedTeamMetricsEpa( + rushing = 1.337, + passing = 1.337, + total = 1.337 + ) + else: + return AdjustedTeamMetricsEpa( + rushing = 1.337, + passing = 1.337, + total = 1.337, + ) + """ + + def testAdjustedTeamMetricsEpa(self): + """Test AdjustedTeamMetricsEpa""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_adjusted_team_metrics_rushing.py b/test/test_adjusted_team_metrics_rushing.py new file mode 100644 index 00000000..902d537f --- /dev/null +++ b/test/test_adjusted_team_metrics_rushing.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from cfbd.models.adjusted_team_metrics_rushing import AdjustedTeamMetricsRushing # noqa: E501 + +class TestAdjustedTeamMetricsRushing(unittest.TestCase): + """AdjustedTeamMetricsRushing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdjustedTeamMetricsRushing: + """Test AdjustedTeamMetricsRushing + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AdjustedTeamMetricsRushing` + """ + model = AdjustedTeamMetricsRushing() # noqa: E501 + if include_optional: + return AdjustedTeamMetricsRushing( + open_field_yards = 1.337, + second_level_yards = 1.337, + line_yards = 1.337 + ) + else: + return AdjustedTeamMetricsRushing( + open_field_yards = 1.337, + second_level_yards = 1.337, + line_yards = 1.337, + ) + """ + + def testAdjustedTeamMetricsRushing(self): + """Test AdjustedTeamMetricsRushing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_adjusted_team_metrics_success_rate.py b/test/test_adjusted_team_metrics_success_rate.py new file mode 100644 index 00000000..061f34cd --- /dev/null +++ b/test/test_adjusted_team_metrics_success_rate.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from cfbd.models.adjusted_team_metrics_success_rate import AdjustedTeamMetricsSuccessRate # noqa: E501 + +class TestAdjustedTeamMetricsSuccessRate(unittest.TestCase): + """AdjustedTeamMetricsSuccessRate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdjustedTeamMetricsSuccessRate: + """Test AdjustedTeamMetricsSuccessRate + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AdjustedTeamMetricsSuccessRate` + """ + model = AdjustedTeamMetricsSuccessRate() # noqa: E501 + if include_optional: + return AdjustedTeamMetricsSuccessRate( + passing_downs = 1.337, + standard_downs = 1.337, + total = 1.337 + ) + else: + return AdjustedTeamMetricsSuccessRate( + passing_downs = 1.337, + standard_downs = 1.337, + total = 1.337, + ) + """ + + def testAdjustedTeamMetricsSuccessRate(self): + """Test AdjustedTeamMetricsSuccessRate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_advanced_box_score.py b/test/test_advanced_box_score.py index 7cccb2ff..e036191a 100644 --- a/test/test_advanced_box_score.py +++ b/test/test_advanced_box_score.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_box_score_game_info.py b/test/test_advanced_box_score_game_info.py index 629ea049..d72afc76 100644 --- a/test/test_advanced_box_score_game_info.py +++ b/test/test_advanced_box_score_game_info.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_box_score_players.py b/test/test_advanced_box_score_players.py index fbf16030..ea0c4a32 100644 --- a/test/test_advanced_box_score_players.py +++ b/test/test_advanced_box_score_players.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_box_score_teams.py b/test/test_advanced_box_score_teams.py index 42c11d8b..b0dce45f 100644 --- a/test/test_advanced_box_score_teams.py +++ b/test/test_advanced_box_score_teams.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_game_stat.py b/test/test_advanced_game_stat.py index eb170470..5eec3937 100644 --- a/test/test_advanced_game_stat.py +++ b/test/test_advanced_game_stat.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_game_stat_offense.py b/test/test_advanced_game_stat_offense.py index 35905d3c..7ea78de4 100644 --- a/test/test_advanced_game_stat_offense.py +++ b/test/test_advanced_game_stat_offense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_game_stat_offense_passing_downs.py b/test/test_advanced_game_stat_offense_passing_downs.py index 454104f0..e9cbab39 100644 --- a/test/test_advanced_game_stat_offense_passing_downs.py +++ b/test/test_advanced_game_stat_offense_passing_downs.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_game_stat_offense_passing_plays.py b/test/test_advanced_game_stat_offense_passing_plays.py index 6d2dfc59..bbc5e98c 100644 --- a/test/test_advanced_game_stat_offense_passing_plays.py +++ b/test/test_advanced_game_stat_offense_passing_plays.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_season_stat.py b/test/test_advanced_season_stat.py index be74f751..da242542 100644 --- a/test/test_advanced_season_stat.py +++ b/test/test_advanced_season_stat.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_season_stat_defense.py b/test/test_advanced_season_stat_defense.py index 7f4cb1ea..457506c5 100644 --- a/test/test_advanced_season_stat_defense.py +++ b/test/test_advanced_season_stat_defense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_season_stat_offense.py b/test/test_advanced_season_stat_offense.py index 588198e7..d4682f9f 100644 --- a/test/test_advanced_season_stat_offense.py +++ b/test/test_advanced_season_stat_offense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_season_stat_offense_field_position.py b/test/test_advanced_season_stat_offense_field_position.py index 4c28c5a7..43b4435d 100644 --- a/test/test_advanced_season_stat_offense_field_position.py +++ b/test/test_advanced_season_stat_offense_field_position.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_season_stat_offense_havoc.py b/test/test_advanced_season_stat_offense_havoc.py index da17a645..becd9807 100644 --- a/test/test_advanced_season_stat_offense_havoc.py +++ b/test/test_advanced_season_stat_offense_havoc.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_season_stat_offense_passing_downs.py b/test/test_advanced_season_stat_offense_passing_downs.py index fdb5ee2c..e63a8e43 100644 --- a/test/test_advanced_season_stat_offense_passing_downs.py +++ b/test/test_advanced_season_stat_offense_passing_downs.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_advanced_season_stat_offense_passing_plays.py b/test/test_advanced_season_stat_offense_passing_plays.py index 838055f0..b995c817 100644 --- a/test/test_advanced_season_stat_offense_passing_plays.py +++ b/test/test_advanced_season_stat_offense_passing_plays.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_aggregated_team_recruiting.py b/test/test_aggregated_team_recruiting.py index 5f92ad20..b17e0e41 100644 --- a/test/test_aggregated_team_recruiting.py +++ b/test/test_aggregated_team_recruiting.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_betting_api.py b/test/test_betting_api.py index 43410d98..5a65416a 100644 --- a/test/test_betting_api.py +++ b/test/test_betting_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_betting_game.py b/test/test_betting_game.py index a3e1838d..f46295fc 100644 --- a/test/test_betting_game.py +++ b/test/test_betting_game.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_calendar_week.py b/test/test_calendar_week.py index efbb902c..e6ef0e1a 100644 --- a/test/test_calendar_week.py +++ b/test/test_calendar_week.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_coach.py b/test/test_coach.py index 6e99246d..d58d59ba 100644 --- a/test/test_coach.py +++ b/test/test_coach.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_coach_season.py b/test/test_coach_season.py index 8516fb0c..81543b53 100644 --- a/test/test_coach_season.py +++ b/test/test_coach_season.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_coaches_api.py b/test/test_coaches_api.py index d1b69024..c1a4a2c9 100644 --- a/test/test_coaches_api.py +++ b/test/test_coaches_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_conference.py b/test/test_conference.py index 21421ad0..b32f6f9f 100644 --- a/test/test_conference.py +++ b/test/test_conference.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_conference_sp.py b/test/test_conference_sp.py index e4375585..8fe1eb4b 100644 --- a/test/test_conference_sp.py +++ b/test/test_conference_sp.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_conference_sp_defense.py b/test/test_conference_sp_defense.py index c2348ae9..0d12b4af 100644 --- a/test/test_conference_sp_defense.py +++ b/test/test_conference_sp_defense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_conference_sp_offense.py b/test/test_conference_sp_offense.py index c8f38380..4dde64d1 100644 --- a/test/test_conference_sp_offense.py +++ b/test/test_conference_sp_offense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_conferences_api.py b/test/test_conferences_api.py index 9524ec40..e6f497c7 100644 --- a/test/test_conferences_api.py +++ b/test/test_conferences_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_division_classification.py b/test/test_division_classification.py index 3caad3f5..ab959909 100644 --- a/test/test_division_classification.py +++ b/test/test_division_classification.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_draft_api.py b/test/test_draft_api.py index faca72ae..63b97e8a 100644 --- a/test/test_draft_api.py +++ b/test/test_draft_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_draft_pick.py b/test/test_draft_pick.py index ba6f50c2..778bb6da 100644 --- a/test/test_draft_pick.py +++ b/test/test_draft_pick.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_draft_pick_hometown_info.py b/test/test_draft_pick_hometown_info.py index b98d1ae7..53291611 100644 --- a/test/test_draft_pick_hometown_info.py +++ b/test/test_draft_pick_hometown_info.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_draft_position.py b/test/test_draft_position.py index 153901f9..6983687c 100644 --- a/test/test_draft_position.py +++ b/test/test_draft_position.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_draft_team.py b/test/test_draft_team.py index 96481eb1..f28203d3 100644 --- a/test/test_draft_team.py +++ b/test/test_draft_team.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_drive.py b/test/test_drive.py index cc99d7fb..7cdf2344 100644 --- a/test/test_drive.py +++ b/test/test_drive.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_drives_api.py b/test/test_drives_api.py index ecec9d67..0c6b0057 100644 --- a/test/test_drives_api.py +++ b/test/test_drives_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_field_goal_ep.py b/test/test_field_goal_ep.py index 6924b02d..212ff650 100644 --- a/test/test_field_goal_ep.py +++ b/test/test_field_goal_ep.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_game.py b/test/test_game.py index b27cde56..bddf29e9 100644 --- a/test/test_game.py +++ b/test/test_game.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_game_line.py b/test/test_game_line.py index eb865c0c..1e847939 100644 --- a/test/test_game_line.py +++ b/test/test_game_line.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_game_media.py b/test/test_game_media.py index cbb29e4c..91266f44 100644 --- a/test/test_game_media.py +++ b/test/test_game_media.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_game_player_stat_categories.py b/test/test_game_player_stat_categories.py index bb4f7d7f..ffbf41f8 100644 --- a/test/test_game_player_stat_categories.py +++ b/test/test_game_player_stat_categories.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_game_player_stat_player.py b/test/test_game_player_stat_player.py index 6d3d71c2..f871d159 100644 --- a/test/test_game_player_stat_player.py +++ b/test/test_game_player_stat_player.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_game_player_stat_types.py b/test/test_game_player_stat_types.py index 92c8a773..5fcdae03 100644 --- a/test/test_game_player_stat_types.py +++ b/test/test_game_player_stat_types.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_game_player_stats.py b/test/test_game_player_stats.py index d1044fdb..e33555e6 100644 --- a/test/test_game_player_stats.py +++ b/test/test_game_player_stats.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_game_player_stats_team.py b/test/test_game_player_stats_team.py index a787724b..01921fa1 100644 --- a/test/test_game_player_stats_team.py +++ b/test/test_game_player_stats_team.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_game_status.py b/test/test_game_status.py index d74ed491..53eda4d6 100644 --- a/test/test_game_status.py +++ b/test/test_game_status.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_game_team_stats.py b/test/test_game_team_stats.py index 80195f3d..7152e0f5 100644 --- a/test/test_game_team_stats.py +++ b/test/test_game_team_stats.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_game_team_stats_team.py b/test/test_game_team_stats_team.py index d8a6b7c8..be3db4bd 100644 --- a/test/test_game_team_stats_team.py +++ b/test/test_game_team_stats_team.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_game_team_stats_team_stat.py b/test/test_game_team_stats_team_stat.py index 16dc8df3..1790d29c 100644 --- a/test/test_game_team_stats_team_stat.py +++ b/test/test_game_team_stats_team_stat.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_game_weather.py b/test/test_game_weather.py index 0237bf2a..bbdcfb55 100644 --- a/test/test_game_weather.py +++ b/test/test_game_weather.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_games_api.py b/test/test_games_api.py index 19254b9f..345d1f9a 100644 --- a/test/test_games_api.py +++ b/test/test_games_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_kicker_paar.py b/test/test_kicker_paar.py new file mode 100644 index 00000000..1b9773a5 --- /dev/null +++ b/test/test_kicker_paar.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from cfbd.models.kicker_paar import KickerPAAR # noqa: E501 + +class TestKickerPAAR(unittest.TestCase): + """KickerPAAR unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> KickerPAAR: + """Test KickerPAAR + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `KickerPAAR` + """ + model = KickerPAAR() # noqa: E501 + if include_optional: + return KickerPAAR( + year = 56, + athlete_id = '', + athlete_name = '', + team = '', + conference = '', + paar = 1.337, + attempts = 56 + ) + else: + return KickerPAAR( + year = 56, + athlete_id = '', + athlete_name = '', + team = '', + conference = '', + paar = 1.337, + attempts = 56, + ) + """ + + def testKickerPAAR(self): + """Test KickerPAAR""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_live_game.py b/test/test_live_game.py index 16482c31..4d7b39a7 100644 --- a/test/test_live_game.py +++ b/test/test_live_game.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_live_game_drive.py b/test/test_live_game_drive.py index 8c08ab8c..0fd4bf95 100644 --- a/test/test_live_game_drive.py +++ b/test/test_live_game_drive.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_live_game_play.py b/test/test_live_game_play.py index 143bbb8f..4b5bdd02 100644 --- a/test/test_live_game_play.py +++ b/test/test_live_game_play.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_live_game_team.py b/test/test_live_game_team.py index 82174ecc..5cc953aa 100644 --- a/test/test_live_game_team.py +++ b/test/test_live_game_team.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_matchup.py b/test/test_matchup.py index a8a82210..b4fc319d 100644 --- a/test/test_matchup.py +++ b/test/test_matchup.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_matchup_game.py b/test/test_matchup_game.py index 0011f091..40be4959 100644 --- a/test/test_matchup_game.py +++ b/test/test_matchup_game.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_media_type.py b/test/test_media_type.py index 34ef0998..e4d75cd3 100644 --- a/test/test_media_type.py +++ b/test/test_media_type.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_metrics_api.py b/test/test_metrics_api.py index f07ec78a..d3861f89 100644 --- a/test/test_metrics_api.py +++ b/test/test_metrics_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_play.py b/test/test_play.py index 1a3d8675..7308d8ac 100644 --- a/test/test_play.py +++ b/test/test_play.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_play_clock.py b/test/test_play_clock.py index 41b97d55..013b1d55 100644 --- a/test/test_play_clock.py +++ b/test/test_play_clock.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_play_stat.py b/test/test_play_stat.py index 6a56cd60..b08f05ba 100644 --- a/test/test_play_stat.py +++ b/test/test_play_stat.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_play_stat_clock.py b/test/test_play_stat_clock.py index a5b6bec5..cb74e3ec 100644 --- a/test/test_play_stat_clock.py +++ b/test/test_play_stat_clock.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_play_stat_type.py b/test/test_play_stat_type.py index 0737e9f4..29a3cc5e 100644 --- a/test/test_play_stat_type.py +++ b/test/test_play_stat_type.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_play_type.py b/test/test_play_type.py index d1bcc418..92944a61 100644 --- a/test/test_play_type.py +++ b/test/test_play_type.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_play_win_probability.py b/test/test_play_win_probability.py index 90cb933d..6df952b9 100644 --- a/test/test_play_win_probability.py +++ b/test/test_play_win_probability.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_game_predicted_points_added.py b/test/test_player_game_predicted_points_added.py index 685a3f2d..1a9780f6 100644 --- a/test/test_player_game_predicted_points_added.py +++ b/test/test_player_game_predicted_points_added.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_game_predicted_points_added_average_ppa.py b/test/test_player_game_predicted_points_added_average_ppa.py index 1271f972..409cd052 100644 --- a/test/test_player_game_predicted_points_added_average_ppa.py +++ b/test/test_player_game_predicted_points_added_average_ppa.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_game_usage.py b/test/test_player_game_usage.py index f84400d0..e1fd6a8d 100644 --- a/test/test_player_game_usage.py +++ b/test/test_player_game_usage.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_ppa.py b/test/test_player_ppa.py index 5b587628..2bbb58a8 100644 --- a/test/test_player_ppa.py +++ b/test/test_player_ppa.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_ppa_chart_item.py b/test/test_player_ppa_chart_item.py index e6e35e46..3cd22d8f 100644 --- a/test/test_player_ppa_chart_item.py +++ b/test/test_player_ppa_chart_item.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_search_result.py b/test/test_player_search_result.py index 43f989d8..6485e0a5 100644 --- a/test/test_player_search_result.py +++ b/test/test_player_search_result.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_season_predicted_points_added.py b/test/test_player_season_predicted_points_added.py index 165cecea..efa7e1d6 100644 --- a/test/test_player_season_predicted_points_added.py +++ b/test/test_player_season_predicted_points_added.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_season_predicted_points_added_average_ppa.py b/test/test_player_season_predicted_points_added_average_ppa.py index 87345aa9..5dab3846 100644 --- a/test/test_player_season_predicted_points_added_average_ppa.py +++ b/test/test_player_season_predicted_points_added_average_ppa.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_stat.py b/test/test_player_stat.py index 6324028f..666c0a59 100644 --- a/test/test_player_stat.py +++ b/test/test_player_stat.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_stats_by_quarter.py b/test/test_player_stats_by_quarter.py index e7c24033..e67d6fe9 100644 --- a/test/test_player_stats_by_quarter.py +++ b/test/test_player_stats_by_quarter.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_transfer.py b/test/test_player_transfer.py index bdb75260..32fa70b0 100644 --- a/test/test_player_transfer.py +++ b/test/test_player_transfer.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_usage.py b/test/test_player_usage.py index 61c03cb6..719d6d04 100644 --- a/test/test_player_usage.py +++ b/test/test_player_usage.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_usage_usage.py b/test/test_player_usage_usage.py index b8f650e4..10aded8c 100644 --- a/test/test_player_usage_usage.py +++ b/test/test_player_usage_usage.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_player_weighted_epa.py b/test/test_player_weighted_epa.py new file mode 100644 index 00000000..d38d6f27 --- /dev/null +++ b/test/test_player_weighted_epa.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + College Football Data API + + 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. + + The version of the OpenAPI document: 5.2.0 + Contact: admin@collegefootballdata.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from cfbd.models.player_weighted_epa import PlayerWeightedEPA # noqa: E501 + +class TestPlayerWeightedEPA(unittest.TestCase): + """PlayerWeightedEPA unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlayerWeightedEPA: + """Test PlayerWeightedEPA + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PlayerWeightedEPA` + """ + model = PlayerWeightedEPA() # noqa: E501 + if include_optional: + return PlayerWeightedEPA( + year = 56, + athlete_id = '', + athlete_name = '', + position = '', + team = '', + conference = '', + wepa = 1.337, + plays = 56 + ) + else: + return PlayerWeightedEPA( + year = 56, + athlete_id = '', + athlete_name = '', + position = '', + team = '', + conference = '', + wepa = 1.337, + plays = 56, + ) + """ + + def testPlayerWeightedEPA(self): + """Test PlayerWeightedEPA""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_players_api.py b/test/test_players_api.py index 45b6abb9..9d45a9c8 100644 --- a/test/test_players_api.py +++ b/test/test_players_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_plays_api.py b/test/test_plays_api.py index 8e0bb348..f9a07a2e 100644 --- a/test/test_plays_api.py +++ b/test/test_plays_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_poll.py b/test/test_poll.py index 63cab55a..fe2ad5f0 100644 --- a/test/test_poll.py +++ b/test/test_poll.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_poll_rank.py b/test/test_poll_rank.py index c2fb7ed0..af594fc8 100644 --- a/test/test_poll_rank.py +++ b/test/test_poll_rank.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_poll_week.py b/test/test_poll_week.py index bbd09484..92e9e283 100644 --- a/test/test_poll_week.py +++ b/test/test_poll_week.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_predicted_points_value.py b/test/test_predicted_points_value.py index d2bfc3da..25420441 100644 --- a/test/test_predicted_points_value.py +++ b/test/test_predicted_points_value.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_pregame_win_probability.py b/test/test_pregame_win_probability.py index af020365..76e6cff1 100644 --- a/test/test_pregame_win_probability.py +++ b/test/test_pregame_win_probability.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_rankings_api.py b/test/test_rankings_api.py index 37b65bb8..5c994713 100644 --- a/test/test_rankings_api.py +++ b/test/test_rankings_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_ratings_api.py b/test/test_ratings_api.py index bbf6024d..0050296f 100644 --- a/test/test_ratings_api.py +++ b/test/test_ratings_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_recruit.py b/test/test_recruit.py index 4f7814db..580b9055 100644 --- a/test/test_recruit.py +++ b/test/test_recruit.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_recruit_classification.py b/test/test_recruit_classification.py index 1d202743..3f31ba99 100644 --- a/test/test_recruit_classification.py +++ b/test/test_recruit_classification.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_recruit_hometown_info.py b/test/test_recruit_hometown_info.py index f61c2b84..afb2f2f3 100644 --- a/test/test_recruit_hometown_info.py +++ b/test/test_recruit_hometown_info.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_recruiting_api.py b/test/test_recruiting_api.py index d884ddb7..b11b256b 100644 --- a/test/test_recruiting_api.py +++ b/test/test_recruiting_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_returning_production.py b/test/test_returning_production.py index 22126103..c6b74fe9 100644 --- a/test/test_returning_production.py +++ b/test/test_returning_production.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_roster_player.py b/test/test_roster_player.py index b8e3aae9..ec0b1c81 100644 --- a/test/test_roster_player.py +++ b/test/test_roster_player.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scoreboard_game.py b/test/test_scoreboard_game.py index 80b51202..801ea123 100644 --- a/test/test_scoreboard_game.py +++ b/test/test_scoreboard_game.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scoreboard_game_betting.py b/test/test_scoreboard_game_betting.py index 0628869d..12487190 100644 --- a/test/test_scoreboard_game_betting.py +++ b/test/test_scoreboard_game_betting.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scoreboard_game_home_team.py b/test/test_scoreboard_game_home_team.py index 41c7bbb3..2d4027d9 100644 --- a/test/test_scoreboard_game_home_team.py +++ b/test/test_scoreboard_game_home_team.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scoreboard_game_venue.py b/test/test_scoreboard_game_venue.py index 7a66bf09..571fd170 100644 --- a/test/test_scoreboard_game_venue.py +++ b/test/test_scoreboard_game_venue.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scoreboard_game_weather.py b/test/test_scoreboard_game_weather.py index df4d8cee..e5e1cbe0 100644 --- a/test/test_scoreboard_game_weather.py +++ b/test/test_scoreboard_game_weather.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_season_type.py b/test/test_season_type.py index 9d3803e7..cfe6a780 100644 --- a/test/test_season_type.py +++ b/test/test_season_type.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_stats_api.py b/test/test_stats_api.py index ec25d7fa..a5a74574 100644 --- a/test/test_stats_api.py +++ b/test/test_stats_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,12 +27,6 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_get_adjusted_team_season_stats(self) -> None: - """Test case for get_adjusted_team_season_stats - - """ - pass - def test_get_advanced_game_stats(self) -> None: """Test case for get_advanced_game_stats diff --git a/test/test_stats_by_quarter.py b/test/test_stats_by_quarter.py index 463ac526..dc54d520 100644 --- a/test/test_stats_by_quarter.py +++ b/test/test_stats_by_quarter.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team.py b/test/test_team.py index 815a3233..56df386b 100644 --- a/test/test_team.py +++ b/test/test_team.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_elo.py b/test/test_team_elo.py index 1d4253d3..dc627ac8 100644 --- a/test/test_team_elo.py +++ b/test/test_team_elo.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_explosiveness.py b/test/test_team_explosiveness.py index d23d8bee..588a6ef5 100644 --- a/test/test_team_explosiveness.py +++ b/test/test_team_explosiveness.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_field_position.py b/test/test_team_field_position.py index 70f9c11e..95ea0b62 100644 --- a/test/test_team_field_position.py +++ b/test/test_team_field_position.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_fpi.py b/test/test_team_fpi.py index 1824e9dc..a27e89fd 100644 --- a/test/test_team_fpi.py +++ b/test/test_team_fpi.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_fpi_efficiencies.py b/test/test_team_fpi_efficiencies.py index 54d0fc4d..4a09b3dc 100644 --- a/test/test_team_fpi_efficiencies.py +++ b/test/test_team_fpi_efficiencies.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_fpi_resume_ranks.py b/test/test_team_fpi_resume_ranks.py index 2cf69afb..10021837 100644 --- a/test/test_team_fpi_resume_ranks.py +++ b/test/test_team_fpi_resume_ranks.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_game_predicted_points_added.py b/test/test_team_game_predicted_points_added.py index cb04d634..98941a99 100644 --- a/test/test_team_game_predicted_points_added.py +++ b/test/test_team_game_predicted_points_added.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_game_predicted_points_added_offense.py b/test/test_team_game_predicted_points_added_offense.py index 6b8e15da..7ccd95a1 100644 --- a/test/test_team_game_predicted_points_added_offense.py +++ b/test/test_team_game_predicted_points_added_offense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_havoc.py b/test/test_team_havoc.py index b8a548d3..98a20291 100644 --- a/test/test_team_havoc.py +++ b/test/test_team_havoc.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_ppa.py b/test/test_team_ppa.py index 1526b442..bbc1244f 100644 --- a/test/test_team_ppa.py +++ b/test/test_team_ppa.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_record.py b/test/test_team_record.py index 7cbfa2ee..f6a6db25 100644 --- a/test/test_team_record.py +++ b/test/test_team_record.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_records.py b/test/test_team_records.py index 02ce441e..6a8e9a18 100644 --- a/test/test_team_records.py +++ b/test/test_team_records.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_recruiting_ranking.py b/test/test_team_recruiting_ranking.py index adf9d2ec..e8ba44fc 100644 --- a/test/test_team_recruiting_ranking.py +++ b/test/test_team_recruiting_ranking.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_rushing_stats.py b/test/test_team_rushing_stats.py index 9d5ef2c5..2c500fa1 100644 --- a/test/test_team_rushing_stats.py +++ b/test/test_team_rushing_stats.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_scoring_opportunities.py b/test/test_team_scoring_opportunities.py index 5d039120..094e0167 100644 --- a/test/test_team_scoring_opportunities.py +++ b/test/test_team_scoring_opportunities.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_season_predicted_points_added.py b/test/test_team_season_predicted_points_added.py index a1ff7904..f72430e2 100644 --- a/test/test_team_season_predicted_points_added.py +++ b/test/test_team_season_predicted_points_added.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -41,7 +41,7 @@ def make_instance(self, include_optional) -> TeamSeasonPredictedPointsAdded: conference = '', team = '', offense = cfbd.models.team_season_predicted_points_added_offense.TeamSeasonPredictedPointsAdded_offense( - cumulative = cfbd.models.adjusted_metrics_epa.AdjustedMetrics_epa( + cumulative = cfbd.models.adjusted_team_metrics_epa.AdjustedTeamMetrics_epa( rushing = 1.337, passing = 1.337, total = 1.337, ), @@ -52,7 +52,7 @@ def make_instance(self, include_optional) -> TeamSeasonPredictedPointsAdded: passing = 1.337, overall = 1.337, ), defense = cfbd.models.team_season_predicted_points_added_offense.TeamSeasonPredictedPointsAdded_offense( - cumulative = cfbd.models.adjusted_metrics_epa.AdjustedMetrics_epa( + cumulative = cfbd.models.adjusted_team_metrics_epa.AdjustedTeamMetrics_epa( rushing = 1.337, passing = 1.337, total = 1.337, ), @@ -69,7 +69,7 @@ def make_instance(self, include_optional) -> TeamSeasonPredictedPointsAdded: conference = '', team = '', offense = cfbd.models.team_season_predicted_points_added_offense.TeamSeasonPredictedPointsAdded_offense( - cumulative = cfbd.models.adjusted_metrics_epa.AdjustedMetrics_epa( + cumulative = cfbd.models.adjusted_team_metrics_epa.AdjustedTeamMetrics_epa( rushing = 1.337, passing = 1.337, total = 1.337, ), @@ -80,7 +80,7 @@ def make_instance(self, include_optional) -> TeamSeasonPredictedPointsAdded: passing = 1.337, overall = 1.337, ), defense = cfbd.models.team_season_predicted_points_added_offense.TeamSeasonPredictedPointsAdded_offense( - cumulative = cfbd.models.adjusted_metrics_epa.AdjustedMetrics_epa( + cumulative = cfbd.models.adjusted_team_metrics_epa.AdjustedTeamMetrics_epa( rushing = 1.337, passing = 1.337, total = 1.337, ), diff --git a/test/test_team_season_predicted_points_added_offense.py b/test/test_team_season_predicted_points_added_offense.py index 93a17642..804ffebf 100644 --- a/test/test_team_season_predicted_points_added_offense.py +++ b/test/test_team_season_predicted_points_added_offense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> TeamSeasonPredictedPointsAddedOffen model = TeamSeasonPredictedPointsAddedOffense() # noqa: E501 if include_optional: return TeamSeasonPredictedPointsAddedOffense( - cumulative = cfbd.models.adjusted_metrics_epa.AdjustedMetrics_epa( + cumulative = cfbd.models.adjusted_team_metrics_epa.AdjustedTeamMetrics_epa( rushing = 1.337, passing = 1.337, total = 1.337, ), @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> TeamSeasonPredictedPointsAddedOffen ) else: return TeamSeasonPredictedPointsAddedOffense( - cumulative = cfbd.models.adjusted_metrics_epa.AdjustedMetrics_epa( + cumulative = cfbd.models.adjusted_team_metrics_epa.AdjustedTeamMetrics_epa( rushing = 1.337, passing = 1.337, total = 1.337, ), diff --git a/test/test_team_sp.py b/test/test_team_sp.py index 19da2038..397088ad 100644 --- a/test/test_team_sp.py +++ b/test/test_team_sp.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_sp_defense.py b/test/test_team_sp_defense.py index 4955e6d1..4dfc5b63 100644 --- a/test/test_team_sp_defense.py +++ b/test/test_team_sp_defense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_sp_offense.py b/test/test_team_sp_offense.py index 6c2962be..4e14b0ff 100644 --- a/test/test_team_sp_offense.py +++ b/test/test_team_sp_offense.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_sp_special_teams.py b/test/test_team_sp_special_teams.py index dcd6c99e..52f0526b 100644 --- a/test/test_team_sp_special_teams.py +++ b/test/test_team_sp_special_teams.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_srs.py b/test/test_team_srs.py index 1c023f81..f84f4927 100644 --- a/test/test_team_srs.py +++ b/test/test_team_srs.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_stat.py b/test/test_team_stat.py index 0cb86237..16a95dd8 100644 --- a/test/test_team_stat.py +++ b/test/test_team_stat.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_stat_stat_value.py b/test/test_team_stat_stat_value.py index 94405365..718f5e29 100644 --- a/test/test_team_stat_stat_value.py +++ b/test/test_team_stat_stat_value.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_success_rates.py b/test/test_team_success_rates.py index 28f59f5a..a65d3d0b 100644 --- a/test/test_team_success_rates.py +++ b/test/test_team_success_rates.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_team_talent.py b/test/test_team_talent.py index 8bf7c9eb..b46f6b27 100644 --- a/test/test_team_talent.py +++ b/test/test_team_talent.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_teams_api.py b/test/test_teams_api.py index ffbe587f..1c675319 100644 --- a/test/test_teams_api.py +++ b/test/test_teams_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_transfer_eligibility.py b/test/test_transfer_eligibility.py index 16792179..b483adc5 100644 --- a/test/test_transfer_eligibility.py +++ b/test/test_transfer_eligibility.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_venue.py b/test/test_venue.py index 837125f5..067b71e4 100644 --- a/test/test_venue.py +++ b/test/test_venue.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_venues_api.py b/test/test_venues_api.py index d79bc818..973c7814 100644 --- a/test/test_venues_api.py +++ b/test/test_venues_api.py @@ -5,7 +5,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. - The version of the OpenAPI document: 5.1.3 + The version of the OpenAPI document: 5.2.0 Contact: admin@collegefootballdata.com Generated by OpenAPI Generator (https://openapi-generator.tech)