nhl-api-py 2.2.4__tar.gz → 2.2.5__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.
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/PKG-INFO +50 -1
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/README.md +49 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/_version.py +1 -1
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/pyproject.toml +1 -1
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/__init__.py +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/api/__init__.py +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/api/game_center.py +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/api/helpers.py +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/api/misc.py +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/api/schedule.py +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/api/standings.py +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/api/stats.py +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/api/teams.py +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/config.py +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/data/seasonal_information_manifest.json +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/data/team_stat_ids.json +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/data/teams_20232024.json +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/http_client.py +0 -0
- {nhl_api_py-2.2.4 → nhl_api_py-2.2.5}/nhlpy/nhl_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: nhl-api-py
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.5
|
|
4
4
|
Summary: NHL API. For standings, team stats, outcomes, player information. Contains each individual API endpoint as well as convience methods for easy data loading in Pandas or any ML applications.
|
|
5
5
|
Home-page: https://github.com/coreyjs/nhl-api-py
|
|
6
6
|
License: GPL-3.0-or-later
|
|
@@ -56,6 +56,41 @@ client = NHLClient(verbose=True) # a tad more logging such as the URL being call
|
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
|
|
59
|
+
### Stats Endpoints (In development)
|
|
60
|
+
|
|
61
|
+
```python
|
|
62
|
+
|
|
63
|
+
client.club_stats_season(team_abbr="BUF") # kinda weird endpoint.
|
|
64
|
+
|
|
65
|
+
client.player_career_stats(player_id=8478402)
|
|
66
|
+
|
|
67
|
+
# Team Summary Stats.
|
|
68
|
+
# These have lots of available parameters. You can also tap into the apache cayenne expressions to build custom
|
|
69
|
+
# queries, if you have that knowledge.
|
|
70
|
+
client.stats.team_summary(start_season="20202021", end_season="20212022", game_type_id=2)
|
|
71
|
+
client.stats.team_summary(start_season="20202021", end_season="20212022")
|
|
72
|
+
|
|
73
|
+
###
|
|
74
|
+
# Skater Summary Stats.
|
|
75
|
+
# Queries for skaters for year ranges, filterable down by franchise.
|
|
76
|
+
client.stats.skater_stats_summary(start_season="20232024", end_season="20232024")
|
|
77
|
+
client.stats.skater_stats_summary(franchise_id=10, start_season="20232024", end_season="20232024")
|
|
78
|
+
|
|
79
|
+
# skater_stats_summary_by_expression is more advanced method. It allows for more direct manipulation of the query and
|
|
80
|
+
# the cayenne expression clauses.
|
|
81
|
+
sort_expr = [
|
|
82
|
+
{"property": "points", "direction": "DESC"},
|
|
83
|
+
{"property": "gamesPlayed", "direction": "ASC"},
|
|
84
|
+
{"property": "playerId", "direction": "ASC"},
|
|
85
|
+
]
|
|
86
|
+
expr = "gameTypeId=2 and seasonId<=20232024 and seasonId>=20222023"
|
|
87
|
+
client.stats.skater_stats_summary_by_expression(default_cayenne_exp=expr, sort_expr=sort_expr)
|
|
88
|
+
|
|
89
|
+
###
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
|
|
59
94
|
### Schedule Endpoints
|
|
60
95
|
|
|
61
96
|
```python
|
|
@@ -66,6 +101,7 @@ client.schedule.get_schedule_by_team_by_month(team_abbr="BUF")
|
|
|
66
101
|
client.schedule.get_schedule_by_team_by_month(team_abbr="BUF", month="2021-01")
|
|
67
102
|
|
|
68
103
|
client.schedule.get_schedule_by_team_by_week(team_abbr="BUF")
|
|
104
|
+
client.schedule.get_schedule_by_team_by_week(team_abbr="BUF", date="2024-01-01")
|
|
69
105
|
|
|
70
106
|
client.schedule.get_season_schedule(team_abbr="BUF", season="20212022")
|
|
71
107
|
|
|
@@ -106,6 +142,19 @@ client.game_center.score_now()
|
|
|
106
142
|
```
|
|
107
143
|
|
|
108
144
|
|
|
145
|
+
### Misc Endpoints
|
|
146
|
+
```python
|
|
147
|
+
client.misc.glossary()
|
|
148
|
+
|
|
149
|
+
client.misc.config()
|
|
150
|
+
|
|
151
|
+
client.misc.countries()
|
|
152
|
+
|
|
153
|
+
client.misc.season_specific_rules_and_info()
|
|
154
|
+
|
|
155
|
+
client.misc.draft_year_and_rounds()
|
|
156
|
+
```
|
|
157
|
+
|
|
109
158
|
---
|
|
110
159
|
### Insomnia Rest Client Export
|
|
111
160
|
|
|
@@ -30,6 +30,41 @@ client = NHLClient(verbose=True) # a tad more logging such as the URL being call
|
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
|
|
33
|
+
### Stats Endpoints (In development)
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
|
|
37
|
+
client.club_stats_season(team_abbr="BUF") # kinda weird endpoint.
|
|
38
|
+
|
|
39
|
+
client.player_career_stats(player_id=8478402)
|
|
40
|
+
|
|
41
|
+
# Team Summary Stats.
|
|
42
|
+
# These have lots of available parameters. You can also tap into the apache cayenne expressions to build custom
|
|
43
|
+
# queries, if you have that knowledge.
|
|
44
|
+
client.stats.team_summary(start_season="20202021", end_season="20212022", game_type_id=2)
|
|
45
|
+
client.stats.team_summary(start_season="20202021", end_season="20212022")
|
|
46
|
+
|
|
47
|
+
###
|
|
48
|
+
# Skater Summary Stats.
|
|
49
|
+
# Queries for skaters for year ranges, filterable down by franchise.
|
|
50
|
+
client.stats.skater_stats_summary(start_season="20232024", end_season="20232024")
|
|
51
|
+
client.stats.skater_stats_summary(franchise_id=10, start_season="20232024", end_season="20232024")
|
|
52
|
+
|
|
53
|
+
# skater_stats_summary_by_expression is more advanced method. It allows for more direct manipulation of the query and
|
|
54
|
+
# the cayenne expression clauses.
|
|
55
|
+
sort_expr = [
|
|
56
|
+
{"property": "points", "direction": "DESC"},
|
|
57
|
+
{"property": "gamesPlayed", "direction": "ASC"},
|
|
58
|
+
{"property": "playerId", "direction": "ASC"},
|
|
59
|
+
]
|
|
60
|
+
expr = "gameTypeId=2 and seasonId<=20232024 and seasonId>=20222023"
|
|
61
|
+
client.stats.skater_stats_summary_by_expression(default_cayenne_exp=expr, sort_expr=sort_expr)
|
|
62
|
+
|
|
63
|
+
###
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
|
|
33
68
|
### Schedule Endpoints
|
|
34
69
|
|
|
35
70
|
```python
|
|
@@ -40,6 +75,7 @@ client.schedule.get_schedule_by_team_by_month(team_abbr="BUF")
|
|
|
40
75
|
client.schedule.get_schedule_by_team_by_month(team_abbr="BUF", month="2021-01")
|
|
41
76
|
|
|
42
77
|
client.schedule.get_schedule_by_team_by_week(team_abbr="BUF")
|
|
78
|
+
client.schedule.get_schedule_by_team_by_week(team_abbr="BUF", date="2024-01-01")
|
|
43
79
|
|
|
44
80
|
client.schedule.get_season_schedule(team_abbr="BUF", season="20212022")
|
|
45
81
|
|
|
@@ -80,6 +116,19 @@ client.game_center.score_now()
|
|
|
80
116
|
```
|
|
81
117
|
|
|
82
118
|
|
|
119
|
+
### Misc Endpoints
|
|
120
|
+
```python
|
|
121
|
+
client.misc.glossary()
|
|
122
|
+
|
|
123
|
+
client.misc.config()
|
|
124
|
+
|
|
125
|
+
client.misc.countries()
|
|
126
|
+
|
|
127
|
+
client.misc.season_specific_rules_and_info()
|
|
128
|
+
|
|
129
|
+
client.misc.draft_year_and_rounds()
|
|
130
|
+
```
|
|
131
|
+
|
|
83
132
|
---
|
|
84
133
|
### Insomnia Rest Client Export
|
|
85
134
|
|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "nhl-api-py"
|
|
7
|
-
version = "2.2.
|
|
7
|
+
version = "2.2.5"
|
|
8
8
|
description = "NHL API. For standings, team stats, outcomes, player information. Contains each individual API endpoint as well as convience methods for easy data loading in Pandas or any ML applications."
|
|
9
9
|
authors = ["Corey Schaf <cschaf@gmail.com>"]
|
|
10
10
|
readme = "README.md"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|