chickenstats-api 0.1.2__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/PKG-INFO +31 -19
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/README.md +30 -18
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/__init__.py +24 -4
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/api/__init__.py +3 -1
- chickenstats_api-0.1.4/chickenstats_api/api/inference_api.py +290 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/api/lines_api.py +13 -25
- chickenstats_api-0.1.4/chickenstats_api/api/live_api.py +408 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/api/login_api.py +214 -51
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/api/play_by_play_api.py +13 -22
- chickenstats_api-0.1.4/chickenstats_api/api/rapm_api.py +340 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/api/stats_api.py +10 -19
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/api/team_stats_api.py +13 -25
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/api/users_api.py +161 -504
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/api_client.py +2 -2
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/configuration.py +4 -4
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/exceptions.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/__init__.py +9 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/http_validation_error.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/lines_create.py +18 -2
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/lines_game.py +18 -2
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/lines_game_response.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/lines_public.py +18 -2
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/lines_season.py +18 -2
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/lines_season_response.py +1 -1
- chickenstats_api-0.1.4/chickenstats_api/models/live_games_public.py +132 -0
- chickenstats_api-0.1.4/chickenstats_api/models/live_pbp_public.py +1184 -0
- chickenstats_api-0.1.4/chickenstats_api/models/live_pbp_response.py +106 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/message.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/new_password.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/pbp_public.py +49 -6
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/pbp_response.py +1 -1
- chickenstats_api-0.1.4/chickenstats_api/models/pred_goal_response.py +106 -0
- chickenstats_api-0.1.4/chickenstats_api/models/pred_goal_row.py +108 -0
- chickenstats_api-0.1.4/chickenstats_api/models/programmatic_credentials.py +99 -0
- chickenstats_api-0.1.4/chickenstats_api/models/rapm_response.py +106 -0
- chickenstats_api-0.1.4/chickenstats_api/models/rapm_scores.py +509 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/stats_create.py +26 -2
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/stats_game.py +26 -2
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/stats_game_response.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/stats_season.py +26 -2
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/stats_season_response.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/team_stats_create.py +18 -2
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/team_stats_game.py +18 -2
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/team_stats_game_response.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/team_stats_public.py +18 -2
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/team_stats_season.py +18 -2
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/team_stats_season_response.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/token.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/update_password.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/user_create.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/user_public.py +12 -3
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/user_register.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/user_update.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/user_update_me.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/users_public.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/validation_error.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/models/validation_error_loc_inner.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/rest.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api.egg-info/PKG-INFO +31 -19
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api.egg-info/SOURCES.txt +22 -18
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/pyproject.toml +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/setup.py +2 -2
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_http_validation_error.py +19 -16
- chickenstats_api-0.1.4/test/test_inference_api.py +39 -0
- chickenstats_api-0.1.4/test/test_lines_api.py +60 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_lines_create.py +52 -45
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_lines_game.py +9 -5
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_lines_game_response.py +17 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_lines_public.py +53 -46
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_lines_season.py +9 -5
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_lines_season_response.py +17 -1
- chickenstats_api-0.1.4/test/test_live_api.py +46 -0
- chickenstats_api-0.1.4/test/test_live_games_public.py +71 -0
- chickenstats_api-0.1.4/test/test_live_pbp_public.py +276 -0
- chickenstats_api-0.1.4/test/test_live_pbp_response.py +469 -0
- chickenstats_api-0.1.4/test/test_login_api.py +74 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_message.py +16 -15
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_new_password.py +16 -15
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_pbp_public.py +20 -15
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_pbp_response.py +9 -1
- chickenstats_api-0.1.4/test/test_play_by_play_api.py +53 -0
- chickenstats_api-0.1.4/test/test_pred_goal_response.py +79 -0
- chickenstats_api-0.1.4/test/test_pred_goal_row.py +63 -0
- chickenstats_api-0.1.4/test/test_programmatic_credentials.py +56 -0
- chickenstats_api-0.1.4/test/test_rapm_api.py +39 -0
- chickenstats_api-0.1.4/test/test_rapm_response.py +195 -0
- chickenstats_api-0.1.4/test/test_rapm_scores.py +120 -0
- chickenstats_api-0.1.4/test/test_stats_api.py +53 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_stats_create.py +28 -17
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_stats_game.py +28 -17
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_stats_game_response.py +25 -5
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_stats_season.py +28 -17
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_stats_season_response.py +25 -5
- chickenstats_api-0.1.4/test/test_team_stats_api.py +60 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_team_stats_create.py +34 -27
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_team_stats_game.py +9 -5
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_team_stats_game_response.py +17 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_team_stats_public.py +35 -28
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_team_stats_season.py +9 -5
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_team_stats_season_response.py +17 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_token.py +16 -15
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_update_password.py +16 -15
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_user_create.py +17 -15
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_user_public.py +20 -16
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_user_register.py +1 -1
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_user_update.py +17 -15
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_user_update_me.py +16 -15
- chickenstats_api-0.1.4/test/test_users_api.py +95 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_users_public.py +24 -17
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_validation_error.py +19 -16
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/test/test_validation_error_loc_inner.py +16 -15
- chickenstats_api-0.1.2/chickenstats_api/api/admin_api.py +0 -803
- chickenstats_api-0.1.2/chickenstats_api/api/chicken_nhl_api.py +0 -2483
- chickenstats_api-0.1.2/chickenstats_api/api/game_stats_api.py +0 -720
- chickenstats_api-0.1.2/chickenstats_api/api/season_stats_api.py +0 -383
- chickenstats_api-0.1.2/chickenstats_api/models/body_chicken_nhl_read_pbp.py +0 -162
- chickenstats_api-0.1.2/chickenstats_api/models/chicken_nhl_read_pbp_game_ids_season_parameter_inner.py +0 -150
- chickenstats_api-0.1.2/chickenstats_api/models/chicken_nhl_read_pbp_season_parameter_inner.py +0 -150
- chickenstats_api-0.1.2/chickenstats_api/models/game_id.py +0 -150
- chickenstats_api-0.1.2/chickenstats_api/models/season.py +0 -150
- chickenstats_api-0.1.2/test/test_admin_api.py +0 -60
- chickenstats_api-0.1.2/test/test_body_chicken_nhl_read_pbp.py +0 -77
- chickenstats_api-0.1.2/test/test_chicken_nhl_api.py +0 -112
- chickenstats_api-0.1.2/test/test_chicken_nhl_read_pbp_game_ids_season_parameter_inner.py +0 -54
- chickenstats_api-0.1.2/test/test_chicken_nhl_read_pbp_season_parameter_inner.py +0 -52
- chickenstats_api-0.1.2/test/test_game_id.py +0 -50
- chickenstats_api-0.1.2/test/test_game_stats_api.py +0 -49
- chickenstats_api-0.1.2/test/test_lines_api.py +0 -49
- chickenstats_api-0.1.2/test/test_login_api.py +0 -63
- chickenstats_api-0.1.2/test/test_play_by_play_api.py +0 -56
- chickenstats_api-0.1.2/test/test_season.py +0 -50
- chickenstats_api-0.1.2/test/test_season_stats_api.py +0 -35
- chickenstats_api-0.1.2/test/test_stats_api.py +0 -56
- chickenstats_api-0.1.2/test/test_team_stats_api.py +0 -35
- chickenstats_api-0.1.2/test/test_users_api.py +0 -91
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/api_response.py +0 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api/py.typed +0 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api.egg-info/dependency_links.txt +0 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api.egg-info/requires.txt +0 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/chickenstats_api.egg-info/top_level.txt +0 -0
- {chickenstats_api-0.1.2 → chickenstats_api-0.1.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chickenstats_api
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: chickenstats API
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: chicken
|
|
@@ -20,8 +20,8 @@ Dynamic: author
|
|
|
20
20
|
|
|
21
21
|
API for downloading NHL data
|
|
22
22
|
|
|
23
|
-
- API version: 0.1.
|
|
24
|
-
- Package version: 0.1.
|
|
23
|
+
- API version: 0.1.4
|
|
24
|
+
- Package version: 0.1.4
|
|
25
25
|
|
|
26
26
|
## Requirements
|
|
27
27
|
|
|
@@ -62,16 +62,20 @@ configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
|
62
62
|
# Enter a context with an instance of the API client
|
|
63
63
|
with chickenstats_api.ApiClient(configuration) as api_client:
|
|
64
64
|
# Create an instance of the API class
|
|
65
|
-
api_instance = chickenstats_api.
|
|
66
|
-
|
|
65
|
+
api_instance = chickenstats_api.InferenceApi(api_client)
|
|
66
|
+
game_id = [56] # List[int] | (optional)
|
|
67
|
+
season = [56] # List[int] | (optional)
|
|
68
|
+
sessions = ['sessions_example'] # List[str] | (optional)
|
|
69
|
+
limit = 10000 # int | (optional) (default to 10000)
|
|
70
|
+
offset = 0 # int | (optional) (default to 0)
|
|
67
71
|
|
|
68
72
|
try:
|
|
69
|
-
#
|
|
70
|
-
api_response = api_instance.
|
|
71
|
-
print("The response of
|
|
73
|
+
# Read Pred Goal
|
|
74
|
+
api_response = api_instance.read_pred_goal(game_id=game_id, season=season, sessions=sessions, limit=limit, offset=offset)
|
|
75
|
+
print("The response of InferenceApi->read_pred_goal:\n")
|
|
72
76
|
pprint(api_response)
|
|
73
77
|
except ApiException as e:
|
|
74
|
-
print("Exception when calling
|
|
78
|
+
print("Exception when calling InferenceApi->read_pred_goal: %s\n" % e)
|
|
75
79
|
|
|
76
80
|
```
|
|
77
81
|
|
|
@@ -81,15 +85,15 @@ All URIs are relative to *https://api.chickenstats.com*
|
|
|
81
85
|
|
|
82
86
|
Class | Method | HTTP request | Description
|
|
83
87
|
------------ | ------------- | ------------- | -------------
|
|
84
|
-
*
|
|
85
|
-
*AdminApi* | [**create_pbp**](docs/AdminApi.md#create_pbp) | **POST** /api/v1/chicken_nhl/play_by_play | Create Pbp
|
|
86
|
-
*AdminApi* | [**create_stats**](docs/AdminApi.md#create_stats) | **POST** /api/v1/chicken_nhl/stats | Create Stats
|
|
87
|
-
*AdminApi* | [**create_team_stats**](docs/AdminApi.md#create_team_stats) | **POST** /api/v1/chicken_nhl/team_stats | Create Team Stats
|
|
88
|
+
*InferenceApi* | [**read_pred_goal**](docs/InferenceApi.md#read_pred_goal) | **GET** /api/v1/inference/pred_goal | Read Pred Goal
|
|
88
89
|
*LinesApi* | [**read_game_lines**](docs/LinesApi.md#read_game_lines) | **GET** /api/v1/chicken_nhl/lines/game | Read Game Lines
|
|
89
90
|
*LinesApi* | [**read_line_ids**](docs/LinesApi.md#read_line_ids) | **GET** /api/v1/chicken_nhl/lines/line_ids | Read Line Ids
|
|
90
91
|
*LinesApi* | [**read_lines_game_ids**](docs/LinesApi.md#read_lines_game_ids) | **GET** /api/v1/chicken_nhl/lines/game_ids | Read Lines Game Ids
|
|
91
92
|
*LinesApi* | [**read_season_lines**](docs/LinesApi.md#read_season_lines) | **GET** /api/v1/chicken_nhl/lines/season | Read Season Lines
|
|
92
|
-
*
|
|
93
|
+
*LiveApi* | [**read_live_games**](docs/LiveApi.md#read_live_games) | **GET** /api/v1/live/games | Read Live Games
|
|
94
|
+
*LiveApi* | [**read_live_pbp**](docs/LiveApi.md#read_live_pbp) | **GET** /api/v1/live/play_by_play | Read Live Pbp
|
|
95
|
+
*LoginApi* | [**login_auth0_token**](docs/LoginApi.md#login_auth0_token) | **POST** /api/v1/login/auth0-token | Login Auth0 Token
|
|
96
|
+
*LoginApi* | [**login_callback**](docs/LoginApi.md#login_callback) | **POST** /api/v1/login/callback | Login Callback
|
|
93
97
|
*LoginApi* | [**recover_password**](docs/LoginApi.md#recover_password) | **POST** /api/v1/password-recovery/{email} | Recover Password
|
|
94
98
|
*LoginApi* | [**recover_password_html_content**](docs/LoginApi.md#recover_password_html_content) | **POST** /api/v1/password-recovery-html-content/{email} | Recover Password Html Content
|
|
95
99
|
*LoginApi* | [**reset_password**](docs/LoginApi.md#reset_password) | **POST** /api/v1/reset-password/ | Reset Password
|
|
@@ -97,6 +101,7 @@ Class | Method | HTTP request | Description
|
|
|
97
101
|
*PlayByPlayApi* | [**read_pbp**](docs/PlayByPlayApi.md#read_pbp) | **GET** /api/v1/chicken_nhl/play_by_play | Read Pbp
|
|
98
102
|
*PlayByPlayApi* | [**read_pbp_game_ids**](docs/PlayByPlayApi.md#read_pbp_game_ids) | **GET** /api/v1/chicken_nhl/play_by_play/game_ids | Read Pbp Game Ids
|
|
99
103
|
*PlayByPlayApi* | [**read_pbp_play_ids**](docs/PlayByPlayApi.md#read_pbp_play_ids) | **GET** /api/v1/chicken_nhl/play_by_play/play_ids | Read Pbp Play Ids
|
|
104
|
+
*RapmApi* | [**read_rapm**](docs/RapmApi.md#read_rapm) | **GET** /api/v1/chicken_nhl/rapm | Read Rapm
|
|
100
105
|
*StatsApi* | [**read_game_stats**](docs/StatsApi.md#read_game_stats) | **GET** /api/v1/chicken_nhl/stats/game | Read Game Stats
|
|
101
106
|
*StatsApi* | [**read_season_stats**](docs/StatsApi.md#read_season_stats) | **GET** /api/v1/chicken_nhl/stats/season | Read Season Stats
|
|
102
107
|
*StatsApi* | [**read_stats_game_ids**](docs/StatsApi.md#read_stats_game_ids) | **GET** /api/v1/chicken_nhl/stats/game_ids | Read Stats Game Ids
|
|
@@ -104,15 +109,14 @@ Class | Method | HTTP request | Description
|
|
|
104
109
|
*TeamStatsApi* | [**read_season_team_stats**](docs/TeamStatsApi.md#read_season_team_stats) | **GET** /api/v1/chicken_nhl/team_stats/season | Read Season Team Stats
|
|
105
110
|
*TeamStatsApi* | [**read_team_stats_game_ids**](docs/TeamStatsApi.md#read_team_stats_game_ids) | **GET** /api/v1/chicken_nhl/team_stats/game_ids | Read Team Stats Game Ids
|
|
106
111
|
*TeamStatsApi* | [**read_team_stats_ids**](docs/TeamStatsApi.md#read_team_stats_ids) | **GET** /api/v1/chicken_nhl/team_stats/team_stats_ids | Read Team Stats Ids
|
|
107
|
-
*UsersApi* | [**create_user**](docs/UsersApi.md#create_user) | **POST** /api/v1/users/ | Create User
|
|
108
|
-
*UsersApi* | [**delete_user**](docs/UsersApi.md#delete_user) | **DELETE** /api/v1/users/{user_id} | Delete User
|
|
109
112
|
*UsersApi* | [**delete_user_me**](docs/UsersApi.md#delete_user_me) | **DELETE** /api/v1/users/me | Delete User Me
|
|
110
|
-
*UsersApi* | [**
|
|
113
|
+
*UsersApi* | [**get_programmatic_credentials**](docs/UsersApi.md#get_programmatic_credentials) | **GET** /api/v1/users/me/programmatic-credentials | Get Programmatic Credentials
|
|
111
114
|
*UsersApi* | [**read_user_me**](docs/UsersApi.md#read_user_me) | **GET** /api/v1/users/me | Read User Me
|
|
112
|
-
*UsersApi* | [**
|
|
115
|
+
*UsersApi* | [**resend_verification**](docs/UsersApi.md#resend_verification) | **POST** /api/v1/users/me/resend-verification | Resend Verification
|
|
116
|
+
*UsersApi* | [**rotate_programmatic_credentials**](docs/UsersApi.md#rotate_programmatic_credentials) | **POST** /api/v1/users/me/programmatic-credentials/rotate | Rotate Programmatic Credentials
|
|
113
117
|
*UsersApi* | [**signup**](docs/UsersApi.md#signup) | **POST** /api/v1/users/signup | Signup
|
|
118
|
+
*UsersApi* | [**sync_ghost_tier**](docs/UsersApi.md#sync_ghost_tier) | **POST** /api/v1/users/me/sync-ghost | Sync Ghost Tier
|
|
114
119
|
*UsersApi* | [**update_password_me**](docs/UsersApi.md#update_password_me) | **PATCH** /api/v1/users/me/password | Update Password Me
|
|
115
|
-
*UsersApi* | [**update_user**](docs/UsersApi.md#update_user) | **PATCH** /api/v1/users/{user_id} | Update User
|
|
116
120
|
*UsersApi* | [**update_user_me**](docs/UsersApi.md#update_user_me) | **PATCH** /api/v1/users/me | Update User Me
|
|
117
121
|
|
|
118
122
|
|
|
@@ -125,10 +129,18 @@ Class | Method | HTTP request | Description
|
|
|
125
129
|
- [LinesPublic](docs/LinesPublic.md)
|
|
126
130
|
- [LinesSeason](docs/LinesSeason.md)
|
|
127
131
|
- [LinesSeasonResponse](docs/LinesSeasonResponse.md)
|
|
132
|
+
- [LiveGamesPublic](docs/LiveGamesPublic.md)
|
|
133
|
+
- [LivePbpPublic](docs/LivePbpPublic.md)
|
|
134
|
+
- [LivePbpResponse](docs/LivePbpResponse.md)
|
|
128
135
|
- [Message](docs/Message.md)
|
|
129
136
|
- [NewPassword](docs/NewPassword.md)
|
|
130
137
|
- [PbpPublic](docs/PbpPublic.md)
|
|
131
138
|
- [PbpResponse](docs/PbpResponse.md)
|
|
139
|
+
- [PredGoalResponse](docs/PredGoalResponse.md)
|
|
140
|
+
- [PredGoalRow](docs/PredGoalRow.md)
|
|
141
|
+
- [ProgrammaticCredentials](docs/ProgrammaticCredentials.md)
|
|
142
|
+
- [RapmResponse](docs/RapmResponse.md)
|
|
143
|
+
- [RapmScores](docs/RapmScores.md)
|
|
132
144
|
- [StatsCreate](docs/StatsCreate.md)
|
|
133
145
|
- [StatsGame](docs/StatsGame.md)
|
|
134
146
|
- [StatsGameResponse](docs/StatsGameResponse.md)
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
API for downloading NHL data
|
|
4
4
|
|
|
5
|
-
- API version: 0.1.
|
|
6
|
-
- Package version: 0.1.
|
|
5
|
+
- API version: 0.1.4
|
|
6
|
+
- Package version: 0.1.4
|
|
7
7
|
|
|
8
8
|
## Requirements
|
|
9
9
|
|
|
@@ -44,16 +44,20 @@ configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
|
44
44
|
# Enter a context with an instance of the API client
|
|
45
45
|
with chickenstats_api.ApiClient(configuration) as api_client:
|
|
46
46
|
# Create an instance of the API class
|
|
47
|
-
api_instance = chickenstats_api.
|
|
48
|
-
|
|
47
|
+
api_instance = chickenstats_api.InferenceApi(api_client)
|
|
48
|
+
game_id = [56] # List[int] | (optional)
|
|
49
|
+
season = [56] # List[int] | (optional)
|
|
50
|
+
sessions = ['sessions_example'] # List[str] | (optional)
|
|
51
|
+
limit = 10000 # int | (optional) (default to 10000)
|
|
52
|
+
offset = 0 # int | (optional) (default to 0)
|
|
49
53
|
|
|
50
54
|
try:
|
|
51
|
-
#
|
|
52
|
-
api_response = api_instance.
|
|
53
|
-
print("The response of
|
|
55
|
+
# Read Pred Goal
|
|
56
|
+
api_response = api_instance.read_pred_goal(game_id=game_id, season=season, sessions=sessions, limit=limit, offset=offset)
|
|
57
|
+
print("The response of InferenceApi->read_pred_goal:\n")
|
|
54
58
|
pprint(api_response)
|
|
55
59
|
except ApiException as e:
|
|
56
|
-
print("Exception when calling
|
|
60
|
+
print("Exception when calling InferenceApi->read_pred_goal: %s\n" % e)
|
|
57
61
|
|
|
58
62
|
```
|
|
59
63
|
|
|
@@ -63,15 +67,15 @@ All URIs are relative to *https://api.chickenstats.com*
|
|
|
63
67
|
|
|
64
68
|
Class | Method | HTTP request | Description
|
|
65
69
|
------------ | ------------- | ------------- | -------------
|
|
66
|
-
*
|
|
67
|
-
*AdminApi* | [**create_pbp**](docs/AdminApi.md#create_pbp) | **POST** /api/v1/chicken_nhl/play_by_play | Create Pbp
|
|
68
|
-
*AdminApi* | [**create_stats**](docs/AdminApi.md#create_stats) | **POST** /api/v1/chicken_nhl/stats | Create Stats
|
|
69
|
-
*AdminApi* | [**create_team_stats**](docs/AdminApi.md#create_team_stats) | **POST** /api/v1/chicken_nhl/team_stats | Create Team Stats
|
|
70
|
+
*InferenceApi* | [**read_pred_goal**](docs/InferenceApi.md#read_pred_goal) | **GET** /api/v1/inference/pred_goal | Read Pred Goal
|
|
70
71
|
*LinesApi* | [**read_game_lines**](docs/LinesApi.md#read_game_lines) | **GET** /api/v1/chicken_nhl/lines/game | Read Game Lines
|
|
71
72
|
*LinesApi* | [**read_line_ids**](docs/LinesApi.md#read_line_ids) | **GET** /api/v1/chicken_nhl/lines/line_ids | Read Line Ids
|
|
72
73
|
*LinesApi* | [**read_lines_game_ids**](docs/LinesApi.md#read_lines_game_ids) | **GET** /api/v1/chicken_nhl/lines/game_ids | Read Lines Game Ids
|
|
73
74
|
*LinesApi* | [**read_season_lines**](docs/LinesApi.md#read_season_lines) | **GET** /api/v1/chicken_nhl/lines/season | Read Season Lines
|
|
74
|
-
*
|
|
75
|
+
*LiveApi* | [**read_live_games**](docs/LiveApi.md#read_live_games) | **GET** /api/v1/live/games | Read Live Games
|
|
76
|
+
*LiveApi* | [**read_live_pbp**](docs/LiveApi.md#read_live_pbp) | **GET** /api/v1/live/play_by_play | Read Live Pbp
|
|
77
|
+
*LoginApi* | [**login_auth0_token**](docs/LoginApi.md#login_auth0_token) | **POST** /api/v1/login/auth0-token | Login Auth0 Token
|
|
78
|
+
*LoginApi* | [**login_callback**](docs/LoginApi.md#login_callback) | **POST** /api/v1/login/callback | Login Callback
|
|
75
79
|
*LoginApi* | [**recover_password**](docs/LoginApi.md#recover_password) | **POST** /api/v1/password-recovery/{email} | Recover Password
|
|
76
80
|
*LoginApi* | [**recover_password_html_content**](docs/LoginApi.md#recover_password_html_content) | **POST** /api/v1/password-recovery-html-content/{email} | Recover Password Html Content
|
|
77
81
|
*LoginApi* | [**reset_password**](docs/LoginApi.md#reset_password) | **POST** /api/v1/reset-password/ | Reset Password
|
|
@@ -79,6 +83,7 @@ Class | Method | HTTP request | Description
|
|
|
79
83
|
*PlayByPlayApi* | [**read_pbp**](docs/PlayByPlayApi.md#read_pbp) | **GET** /api/v1/chicken_nhl/play_by_play | Read Pbp
|
|
80
84
|
*PlayByPlayApi* | [**read_pbp_game_ids**](docs/PlayByPlayApi.md#read_pbp_game_ids) | **GET** /api/v1/chicken_nhl/play_by_play/game_ids | Read Pbp Game Ids
|
|
81
85
|
*PlayByPlayApi* | [**read_pbp_play_ids**](docs/PlayByPlayApi.md#read_pbp_play_ids) | **GET** /api/v1/chicken_nhl/play_by_play/play_ids | Read Pbp Play Ids
|
|
86
|
+
*RapmApi* | [**read_rapm**](docs/RapmApi.md#read_rapm) | **GET** /api/v1/chicken_nhl/rapm | Read Rapm
|
|
82
87
|
*StatsApi* | [**read_game_stats**](docs/StatsApi.md#read_game_stats) | **GET** /api/v1/chicken_nhl/stats/game | Read Game Stats
|
|
83
88
|
*StatsApi* | [**read_season_stats**](docs/StatsApi.md#read_season_stats) | **GET** /api/v1/chicken_nhl/stats/season | Read Season Stats
|
|
84
89
|
*StatsApi* | [**read_stats_game_ids**](docs/StatsApi.md#read_stats_game_ids) | **GET** /api/v1/chicken_nhl/stats/game_ids | Read Stats Game Ids
|
|
@@ -86,15 +91,14 @@ Class | Method | HTTP request | Description
|
|
|
86
91
|
*TeamStatsApi* | [**read_season_team_stats**](docs/TeamStatsApi.md#read_season_team_stats) | **GET** /api/v1/chicken_nhl/team_stats/season | Read Season Team Stats
|
|
87
92
|
*TeamStatsApi* | [**read_team_stats_game_ids**](docs/TeamStatsApi.md#read_team_stats_game_ids) | **GET** /api/v1/chicken_nhl/team_stats/game_ids | Read Team Stats Game Ids
|
|
88
93
|
*TeamStatsApi* | [**read_team_stats_ids**](docs/TeamStatsApi.md#read_team_stats_ids) | **GET** /api/v1/chicken_nhl/team_stats/team_stats_ids | Read Team Stats Ids
|
|
89
|
-
*UsersApi* | [**create_user**](docs/UsersApi.md#create_user) | **POST** /api/v1/users/ | Create User
|
|
90
|
-
*UsersApi* | [**delete_user**](docs/UsersApi.md#delete_user) | **DELETE** /api/v1/users/{user_id} | Delete User
|
|
91
94
|
*UsersApi* | [**delete_user_me**](docs/UsersApi.md#delete_user_me) | **DELETE** /api/v1/users/me | Delete User Me
|
|
92
|
-
*UsersApi* | [**
|
|
95
|
+
*UsersApi* | [**get_programmatic_credentials**](docs/UsersApi.md#get_programmatic_credentials) | **GET** /api/v1/users/me/programmatic-credentials | Get Programmatic Credentials
|
|
93
96
|
*UsersApi* | [**read_user_me**](docs/UsersApi.md#read_user_me) | **GET** /api/v1/users/me | Read User Me
|
|
94
|
-
*UsersApi* | [**
|
|
97
|
+
*UsersApi* | [**resend_verification**](docs/UsersApi.md#resend_verification) | **POST** /api/v1/users/me/resend-verification | Resend Verification
|
|
98
|
+
*UsersApi* | [**rotate_programmatic_credentials**](docs/UsersApi.md#rotate_programmatic_credentials) | **POST** /api/v1/users/me/programmatic-credentials/rotate | Rotate Programmatic Credentials
|
|
95
99
|
*UsersApi* | [**signup**](docs/UsersApi.md#signup) | **POST** /api/v1/users/signup | Signup
|
|
100
|
+
*UsersApi* | [**sync_ghost_tier**](docs/UsersApi.md#sync_ghost_tier) | **POST** /api/v1/users/me/sync-ghost | Sync Ghost Tier
|
|
96
101
|
*UsersApi* | [**update_password_me**](docs/UsersApi.md#update_password_me) | **PATCH** /api/v1/users/me/password | Update Password Me
|
|
97
|
-
*UsersApi* | [**update_user**](docs/UsersApi.md#update_user) | **PATCH** /api/v1/users/{user_id} | Update User
|
|
98
102
|
*UsersApi* | [**update_user_me**](docs/UsersApi.md#update_user_me) | **PATCH** /api/v1/users/me | Update User Me
|
|
99
103
|
|
|
100
104
|
|
|
@@ -107,10 +111,18 @@ Class | Method | HTTP request | Description
|
|
|
107
111
|
- [LinesPublic](docs/LinesPublic.md)
|
|
108
112
|
- [LinesSeason](docs/LinesSeason.md)
|
|
109
113
|
- [LinesSeasonResponse](docs/LinesSeasonResponse.md)
|
|
114
|
+
- [LiveGamesPublic](docs/LiveGamesPublic.md)
|
|
115
|
+
- [LivePbpPublic](docs/LivePbpPublic.md)
|
|
116
|
+
- [LivePbpResponse](docs/LivePbpResponse.md)
|
|
110
117
|
- [Message](docs/Message.md)
|
|
111
118
|
- [NewPassword](docs/NewPassword.md)
|
|
112
119
|
- [PbpPublic](docs/PbpPublic.md)
|
|
113
120
|
- [PbpResponse](docs/PbpResponse.md)
|
|
121
|
+
- [PredGoalResponse](docs/PredGoalResponse.md)
|
|
122
|
+
- [PredGoalRow](docs/PredGoalRow.md)
|
|
123
|
+
- [ProgrammaticCredentials](docs/ProgrammaticCredentials.md)
|
|
124
|
+
- [RapmResponse](docs/RapmResponse.md)
|
|
125
|
+
- [RapmScores](docs/RapmScores.md)
|
|
114
126
|
- [StatsCreate](docs/StatsCreate.md)
|
|
115
127
|
- [StatsGame](docs/StatsGame.md)
|
|
116
128
|
- [StatsGameResponse](docs/StatsGameResponse.md)
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
API for downloading NHL data
|
|
9
9
|
|
|
10
|
-
The version of the OpenAPI document: 0.1.
|
|
10
|
+
The version of the OpenAPI document: 0.1.4
|
|
11
11
|
Contact: chicken@chickenandstats.com
|
|
12
12
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
13
13
|
|
|
@@ -15,14 +15,16 @@
|
|
|
15
15
|
""" # noqa: E501
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
__version__ = "0.1.
|
|
18
|
+
__version__ = "0.1.4"
|
|
19
19
|
|
|
20
20
|
# Define package exports
|
|
21
21
|
__all__ = [
|
|
22
|
-
"
|
|
22
|
+
"InferenceApi",
|
|
23
23
|
"LinesApi",
|
|
24
|
+
"LiveApi",
|
|
24
25
|
"LoginApi",
|
|
25
26
|
"PlayByPlayApi",
|
|
27
|
+
"RapmApi",
|
|
26
28
|
"StatsApi",
|
|
27
29
|
"TeamStatsApi",
|
|
28
30
|
"UsersApi",
|
|
@@ -42,10 +44,18 @@ __all__ = [
|
|
|
42
44
|
"LinesPublic",
|
|
43
45
|
"LinesSeason",
|
|
44
46
|
"LinesSeasonResponse",
|
|
47
|
+
"LiveGamesPublic",
|
|
48
|
+
"LivePbpPublic",
|
|
49
|
+
"LivePbpResponse",
|
|
45
50
|
"Message",
|
|
46
51
|
"NewPassword",
|
|
47
52
|
"PbpPublic",
|
|
48
53
|
"PbpResponse",
|
|
54
|
+
"PredGoalResponse",
|
|
55
|
+
"PredGoalRow",
|
|
56
|
+
"ProgrammaticCredentials",
|
|
57
|
+
"RapmResponse",
|
|
58
|
+
"RapmScores",
|
|
49
59
|
"StatsCreate",
|
|
50
60
|
"StatsGame",
|
|
51
61
|
"StatsGameResponse",
|
|
@@ -70,10 +80,12 @@ __all__ = [
|
|
|
70
80
|
]
|
|
71
81
|
|
|
72
82
|
# import apis into sdk package
|
|
73
|
-
from chickenstats_api.api.
|
|
83
|
+
from chickenstats_api.api.inference_api import InferenceApi as InferenceApi
|
|
74
84
|
from chickenstats_api.api.lines_api import LinesApi as LinesApi
|
|
85
|
+
from chickenstats_api.api.live_api import LiveApi as LiveApi
|
|
75
86
|
from chickenstats_api.api.login_api import LoginApi as LoginApi
|
|
76
87
|
from chickenstats_api.api.play_by_play_api import PlayByPlayApi as PlayByPlayApi
|
|
88
|
+
from chickenstats_api.api.rapm_api import RapmApi as RapmApi
|
|
77
89
|
from chickenstats_api.api.stats_api import StatsApi as StatsApi
|
|
78
90
|
from chickenstats_api.api.team_stats_api import TeamStatsApi as TeamStatsApi
|
|
79
91
|
from chickenstats_api.api.users_api import UsersApi as UsersApi
|
|
@@ -97,10 +109,18 @@ from chickenstats_api.models.lines_game_response import LinesGameResponse as Lin
|
|
|
97
109
|
from chickenstats_api.models.lines_public import LinesPublic as LinesPublic
|
|
98
110
|
from chickenstats_api.models.lines_season import LinesSeason as LinesSeason
|
|
99
111
|
from chickenstats_api.models.lines_season_response import LinesSeasonResponse as LinesSeasonResponse
|
|
112
|
+
from chickenstats_api.models.live_games_public import LiveGamesPublic as LiveGamesPublic
|
|
113
|
+
from chickenstats_api.models.live_pbp_public import LivePbpPublic as LivePbpPublic
|
|
114
|
+
from chickenstats_api.models.live_pbp_response import LivePbpResponse as LivePbpResponse
|
|
100
115
|
from chickenstats_api.models.message import Message as Message
|
|
101
116
|
from chickenstats_api.models.new_password import NewPassword as NewPassword
|
|
102
117
|
from chickenstats_api.models.pbp_public import PbpPublic as PbpPublic
|
|
103
118
|
from chickenstats_api.models.pbp_response import PbpResponse as PbpResponse
|
|
119
|
+
from chickenstats_api.models.pred_goal_response import PredGoalResponse as PredGoalResponse
|
|
120
|
+
from chickenstats_api.models.pred_goal_row import PredGoalRow as PredGoalRow
|
|
121
|
+
from chickenstats_api.models.programmatic_credentials import ProgrammaticCredentials as ProgrammaticCredentials
|
|
122
|
+
from chickenstats_api.models.rapm_response import RapmResponse as RapmResponse
|
|
123
|
+
from chickenstats_api.models.rapm_scores import RapmScores as RapmScores
|
|
104
124
|
from chickenstats_api.models.stats_create import StatsCreate as StatsCreate
|
|
105
125
|
from chickenstats_api.models.stats_game import StatsGame as StatsGame
|
|
106
126
|
from chickenstats_api.models.stats_game_response import StatsGameResponse as StatsGameResponse
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# flake8: noqa
|
|
2
2
|
|
|
3
3
|
# import apis into api package
|
|
4
|
-
from chickenstats_api.api.
|
|
4
|
+
from chickenstats_api.api.inference_api import InferenceApi
|
|
5
5
|
from chickenstats_api.api.lines_api import LinesApi
|
|
6
|
+
from chickenstats_api.api.live_api import LiveApi
|
|
6
7
|
from chickenstats_api.api.login_api import LoginApi
|
|
7
8
|
from chickenstats_api.api.play_by_play_api import PlayByPlayApi
|
|
9
|
+
from chickenstats_api.api.rapm_api import RapmApi
|
|
8
10
|
from chickenstats_api.api.stats_api import StatsApi
|
|
9
11
|
from chickenstats_api.api.team_stats_api import TeamStatsApi
|
|
10
12
|
from chickenstats_api.api.users_api import UsersApi
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
chickenstats API
|
|
5
|
+
|
|
6
|
+
API for downloading NHL data
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.4
|
|
9
|
+
Contact: chicken@chickenandstats.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictInt, StrictStr
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from chickenstats_api.models.pred_goal_response import PredGoalResponse
|
|
24
|
+
|
|
25
|
+
from chickenstats_api.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from chickenstats_api.api_response import ApiResponse
|
|
27
|
+
from chickenstats_api.rest import RESTResponseType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class InferenceApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def read_pred_goal(
|
|
45
|
+
self,
|
|
46
|
+
game_id: Optional[List[StrictInt]] = None,
|
|
47
|
+
season: Optional[List[StrictInt]] = None,
|
|
48
|
+
sessions: Optional[List[StrictStr]] = None,
|
|
49
|
+
limit: Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]] = None,
|
|
50
|
+
offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
|
|
51
|
+
_request_timeout: Optional[Union[float, Tuple[float, float]]] = None,
|
|
52
|
+
) -> PredGoalResponse:
|
|
53
|
+
"""Read Pred Goal
|
|
54
|
+
|
|
55
|
+
Pre-computed pred_goal values from pbpcs for shot/miss/goal events.
|
|
56
|
+
|
|
57
|
+
:param game_id:
|
|
58
|
+
:type game_id: List[int]
|
|
59
|
+
:param season:
|
|
60
|
+
:type season: List[int]
|
|
61
|
+
:param sessions:
|
|
62
|
+
:type sessions: List[str]
|
|
63
|
+
:param limit:
|
|
64
|
+
:type limit: int
|
|
65
|
+
:param offset:
|
|
66
|
+
:type offset: int
|
|
67
|
+
:return: Returns the result object.
|
|
68
|
+
""" # noqa: E501
|
|
69
|
+
|
|
70
|
+
_param = self._read_pred_goal_serialize(
|
|
71
|
+
game_id=game_id,
|
|
72
|
+
season=season,
|
|
73
|
+
sessions=sessions,
|
|
74
|
+
limit=limit,
|
|
75
|
+
offset=offset,
|
|
76
|
+
_request_auth=None,
|
|
77
|
+
_content_type=None,
|
|
78
|
+
_headers=None,
|
|
79
|
+
_host_index=0
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
83
|
+
'200': "PredGoalResponse",
|
|
84
|
+
'422': "HTTPValidationError",
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
response_data = self.api_client.call_api(
|
|
88
|
+
*_param,
|
|
89
|
+
_request_timeout=_request_timeout
|
|
90
|
+
)
|
|
91
|
+
response_data.read()
|
|
92
|
+
return self.api_client.response_deserialize(
|
|
93
|
+
response_data=response_data,
|
|
94
|
+
response_types_map=_response_types_map,
|
|
95
|
+
).data
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
@validate_call
|
|
99
|
+
def read_pred_goal_with_http_info(
|
|
100
|
+
self,
|
|
101
|
+
game_id: Optional[List[StrictInt]] = None,
|
|
102
|
+
season: Optional[List[StrictInt]] = None,
|
|
103
|
+
sessions: Optional[List[StrictStr]] = None,
|
|
104
|
+
limit: Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]] = None,
|
|
105
|
+
offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
|
|
106
|
+
_request_timeout: Optional[Union[float, Tuple[float, float]]] = None,
|
|
107
|
+
) -> ApiResponse[PredGoalResponse]:
|
|
108
|
+
"""Read Pred Goal
|
|
109
|
+
|
|
110
|
+
Pre-computed pred_goal values from pbpcs for shot/miss/goal events.
|
|
111
|
+
|
|
112
|
+
:param game_id:
|
|
113
|
+
:type game_id: List[int]
|
|
114
|
+
:param season:
|
|
115
|
+
:type season: List[int]
|
|
116
|
+
:param sessions:
|
|
117
|
+
:type sessions: List[str]
|
|
118
|
+
:param limit:
|
|
119
|
+
:type limit: int
|
|
120
|
+
:param offset:
|
|
121
|
+
:type offset: int
|
|
122
|
+
:return: Returns the result object.
|
|
123
|
+
""" # noqa: E501
|
|
124
|
+
|
|
125
|
+
_param = self._read_pred_goal_serialize(
|
|
126
|
+
game_id=game_id,
|
|
127
|
+
season=season,
|
|
128
|
+
sessions=sessions,
|
|
129
|
+
limit=limit,
|
|
130
|
+
offset=offset,
|
|
131
|
+
_request_auth=None,
|
|
132
|
+
_content_type=None,
|
|
133
|
+
_headers=None,
|
|
134
|
+
_host_index=0
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
138
|
+
'200': "PredGoalResponse",
|
|
139
|
+
'422': "HTTPValidationError",
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
response_data = self.api_client.call_api(
|
|
143
|
+
*_param,
|
|
144
|
+
_request_timeout=_request_timeout
|
|
145
|
+
)
|
|
146
|
+
response_data.read()
|
|
147
|
+
return self.api_client.response_deserialize(
|
|
148
|
+
response_data=response_data,
|
|
149
|
+
response_types_map=_response_types_map,
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
@validate_call
|
|
154
|
+
def read_pred_goal_without_preload_content(
|
|
155
|
+
self,
|
|
156
|
+
game_id: Optional[List[StrictInt]] = None,
|
|
157
|
+
season: Optional[List[StrictInt]] = None,
|
|
158
|
+
sessions: Optional[List[StrictStr]] = None,
|
|
159
|
+
limit: Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]] = None,
|
|
160
|
+
offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
|
|
161
|
+
_request_timeout: Optional[Union[float, Tuple[float, float]]] = None,
|
|
162
|
+
) -> RESTResponseType:
|
|
163
|
+
"""Read Pred Goal
|
|
164
|
+
|
|
165
|
+
Pre-computed pred_goal values from pbpcs for shot/miss/goal events.
|
|
166
|
+
|
|
167
|
+
:param game_id:
|
|
168
|
+
:type game_id: List[int]
|
|
169
|
+
:param season:
|
|
170
|
+
:type season: List[int]
|
|
171
|
+
:param sessions:
|
|
172
|
+
:type sessions: List[str]
|
|
173
|
+
:param limit:
|
|
174
|
+
:type limit: int
|
|
175
|
+
:param offset:
|
|
176
|
+
:type offset: int
|
|
177
|
+
:return: Returns the result object.
|
|
178
|
+
""" # noqa: E501
|
|
179
|
+
|
|
180
|
+
_param = self._read_pred_goal_serialize(
|
|
181
|
+
game_id=game_id,
|
|
182
|
+
season=season,
|
|
183
|
+
sessions=sessions,
|
|
184
|
+
limit=limit,
|
|
185
|
+
offset=offset,
|
|
186
|
+
_request_auth=None,
|
|
187
|
+
_content_type=None,
|
|
188
|
+
_headers=None,
|
|
189
|
+
_host_index=0
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
193
|
+
'200': "PredGoalResponse",
|
|
194
|
+
'422': "HTTPValidationError",
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
response_data = self.api_client.call_api(
|
|
198
|
+
*_param,
|
|
199
|
+
_request_timeout=_request_timeout
|
|
200
|
+
)
|
|
201
|
+
return response_data.response
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
def _read_pred_goal_serialize(
|
|
205
|
+
self,
|
|
206
|
+
game_id,
|
|
207
|
+
season,
|
|
208
|
+
sessions,
|
|
209
|
+
limit,
|
|
210
|
+
offset,
|
|
211
|
+
_request_auth,
|
|
212
|
+
_content_type,
|
|
213
|
+
_headers,
|
|
214
|
+
_host_index,
|
|
215
|
+
) -> RequestSerialized:
|
|
216
|
+
|
|
217
|
+
_host = None
|
|
218
|
+
|
|
219
|
+
_collection_formats: Dict[str, str] = {
|
|
220
|
+
'game_id': 'multi',
|
|
221
|
+
'season': 'multi',
|
|
222
|
+
'sessions': 'multi',
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
_path_params: Dict[str, str] = {}
|
|
226
|
+
_query_params: List[Tuple[str, str]] = []
|
|
227
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
228
|
+
_form_params: List[Tuple[str, str]] = []
|
|
229
|
+
_files: Dict[
|
|
230
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
231
|
+
] = {}
|
|
232
|
+
_body_params: Optional[bytes] = None
|
|
233
|
+
|
|
234
|
+
# process the path parameters
|
|
235
|
+
# process the query parameters
|
|
236
|
+
if game_id is not None:
|
|
237
|
+
|
|
238
|
+
_query_params.append(('game_id', game_id))
|
|
239
|
+
|
|
240
|
+
if season is not None:
|
|
241
|
+
|
|
242
|
+
_query_params.append(('season', season))
|
|
243
|
+
|
|
244
|
+
if sessions is not None:
|
|
245
|
+
|
|
246
|
+
_query_params.append(('sessions', sessions))
|
|
247
|
+
|
|
248
|
+
if limit is not None:
|
|
249
|
+
|
|
250
|
+
_query_params.append(('limit', limit))
|
|
251
|
+
|
|
252
|
+
if offset is not None:
|
|
253
|
+
|
|
254
|
+
_query_params.append(('offset', offset))
|
|
255
|
+
|
|
256
|
+
# process the header parameters
|
|
257
|
+
# process the form parameters
|
|
258
|
+
# process the body parameter
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
# set the HTTP header `Accept`
|
|
262
|
+
if 'Accept' not in _header_params:
|
|
263
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
264
|
+
[
|
|
265
|
+
'application/json'
|
|
266
|
+
]
|
|
267
|
+
)
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
# authentication setting
|
|
271
|
+
_auth_settings: List[str] = [
|
|
272
|
+
'OAuth2PasswordBearer'
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
return self.api_client.param_serialize(
|
|
276
|
+
method='GET',
|
|
277
|
+
resource_path='/api/v1/inference/pred_goal',
|
|
278
|
+
path_params=_path_params,
|
|
279
|
+
query_params=_query_params,
|
|
280
|
+
header_params=_header_params,
|
|
281
|
+
body=_body_params,
|
|
282
|
+
post_params=_form_params,
|
|
283
|
+
files=_files,
|
|
284
|
+
auth_settings=_auth_settings,
|
|
285
|
+
collection_formats=_collection_formats,
|
|
286
|
+
_host=_host,
|
|
287
|
+
_request_auth=_request_auth
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
|