puckapi 0.1.0__tar.gz → 0.1.1__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.
- {puckapi-0.1.0 → puckapi-0.1.1}/PKG-INFO +2 -1
- {puckapi-0.1.0 → puckapi-0.1.1}/README.md +1 -0
- puckapi-0.1.1/src/puckapi/_version.py +1 -0
- {puckapi-0.1.0 → puckapi-0.1.1}/src/puckapi/client.py +20 -0
- puckapi-0.1.0/src/puckapi/_version.py +0 -1
- {puckapi-0.1.0 → puckapi-0.1.1}/.gitignore +0 -0
- {puckapi-0.1.0 → puckapi-0.1.1}/LICENSE +0 -0
- {puckapi-0.1.0 → puckapi-0.1.1}/pyproject.toml +0 -0
- {puckapi-0.1.0 → puckapi-0.1.1}/src/puckapi/__init__.py +0 -0
- {puckapi-0.1.0 → puckapi-0.1.1}/src/puckapi/_core.py +0 -0
- {puckapi-0.1.0 → puckapi-0.1.1}/src/puckapi/py.typed +0 -0
- {puckapi-0.1.0 → puckapi-0.1.1}/tests/test_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: puckapi
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Python client for the PuckAPI NHL data API. No dependencies.
|
|
5
5
|
Project-URL: Homepage, https://puckapi.com
|
|
6
6
|
Project-URL: Documentation, https://puckapi.com/docs
|
|
@@ -185,6 +185,7 @@ Method names match the API tool names. Arguments are keyword arguments; required
|
|
|
185
185
|
| `get_shot_map` | 10 | Shot map |
|
|
186
186
|
| `get_shifts` | 10 | Shifts |
|
|
187
187
|
| `get_situation_time` | 10 | Situation time |
|
|
188
|
+
| `get_predictions` | 5 | Predictions |
|
|
188
189
|
|
|
189
190
|
Full API reference: https://puckapi.com/docs
|
|
190
191
|
|
|
@@ -155,6 +155,7 @@ Method names match the API tool names. Arguments are keyword arguments; required
|
|
|
155
155
|
| `get_shot_map` | 10 | Shot map |
|
|
156
156
|
| `get_shifts` | 10 | Shifts |
|
|
157
157
|
| `get_situation_time` | 10 | Situation time |
|
|
158
|
+
| `get_predictions` | 5 | Predictions |
|
|
158
159
|
|
|
159
160
|
Full API reference: https://puckapi.com/docs
|
|
160
161
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.1"
|
|
@@ -27,6 +27,7 @@ TOOLS: Dict[str, int] = {
|
|
|
27
27
|
"get_shot_map": 10,
|
|
28
28
|
"get_shifts": 10,
|
|
29
29
|
"get_situation_time": 10,
|
|
30
|
+
"get_predictions": 5,
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
|
|
@@ -890,3 +891,22 @@ class Client(BaseClient):
|
|
|
890
891
|
"include_players": include_players,
|
|
891
892
|
},
|
|
892
893
|
)
|
|
894
|
+
|
|
895
|
+
def get_predictions(
|
|
896
|
+
self,
|
|
897
|
+
) -> Any:
|
|
898
|
+
"""Predictions.
|
|
899
|
+
|
|
900
|
+
Use for the model's win probability for each NHL game on the current slate: home and away win
|
|
901
|
+
probability, the A/B/C confidence grade, start time, plus the model version and when the slate
|
|
902
|
+
was generated. Takes no arguments (current slate only). Probabilities are the model's own; no
|
|
903
|
+
odds, prices or goalie and injury notes are included. The accuracy note states the backtest
|
|
904
|
+
figure and that it is not a live record. An empty slate costs nothing; so does a failed call.
|
|
905
|
+
Costs 5 credits.
|
|
906
|
+
|
|
907
|
+
Costs 5 credits per call.
|
|
908
|
+
|
|
909
|
+
Returns:
|
|
910
|
+
The unwrapped ``data`` object from the response.
|
|
911
|
+
"""
|
|
912
|
+
return self._call("get_predictions", {})
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|