Skip to content

Commit

Permalink
feat(wepa): moving team endpoint and adding new player endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 22, 2024
1 parent ee4ad02 commit a98b08c
Show file tree
Hide file tree
Showing 298 changed files with 2,555 additions and 572 deletions.
33 changes: 21 additions & 12 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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)

```

Expand All @@ -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 |
Expand Down Expand Up @@ -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 |
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
15 changes: 9 additions & 6 deletions cfbd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
The version of the OpenAPI document: 5.1.3
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


__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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions cfbd/api/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading

0 comments on commit a98b08c

Please sign in to comment.