wsba-hockey 0.1.2__py3-none-any.whl → 1.0.0__py3-none-any.whl
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.
- wsba_hockey/__init__.py +1 -1
- wsba_hockey/stats/calculate_viz/shot_impact.py +2 -0
- wsba_hockey/tools/__init__.py +0 -0
- wsba_hockey/tools/agg.py +185 -0
- wsba_hockey/tools/archive/old_scraping.py +1104 -0
- wsba_hockey/tools/plotting.py +113 -0
- wsba_hockey/tools/scraping.py +836 -369
- wsba_hockey/tools/utils/__init__.py +1 -0
- wsba_hockey/tools/utils/config.py +14 -0
- wsba_hockey/tools/utils/save_pages.py +133 -0
- wsba_hockey/tools/utils/shared.py +450 -0
- wsba_hockey/tools/xg_model.py +275 -47
- wsba_hockey/wsba_main.py +699 -132
- {wsba_hockey-0.1.2.dist-info → wsba_hockey-1.0.0.dist-info}/METADATA +42 -11
- wsba_hockey-1.0.0.dist-info/RECORD +18 -0
- {wsba_hockey-0.1.2.dist-info → wsba_hockey-1.0.0.dist-info}/WHEEL +1 -1
- wsba_hockey-0.1.2.dist-info/RECORD +0 -9
- {wsba_hockey-0.1.2.dist-info → wsba_hockey-1.0.0.dist-info}/licenses/LICENSE +0 -0
- {wsba_hockey-0.1.2.dist-info → wsba_hockey-1.0.0.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: wsba_hockey
|
3
|
-
Version: 0.
|
3
|
+
Version: 1.0.0
|
4
4
|
Summary: WeakSide Breakout's complete Python package of access to hockey data, primairly including the scraping of National Hockey League schedule, play-by-play, and shifts information.
|
5
5
|
Author-email: Owen Singh <owenbksingh@gmail.com>
|
6
6
|
Project-URL: Homepage, https://github.com/owensingh38/wsba_hockey/
|
@@ -44,36 +44,67 @@ wsba.nhl_scrape_season('20242025',split_shifts=False,remove=['game-end'],local=T
|
|
44
44
|
|
45
45
|
```python
|
46
46
|
wsba.nhl_scrape_schedule('20242025')
|
47
|
-
wsba.nhl_scrape_seasons_info(seasons=['20212022','20222023','20232024','20242025])
|
47
|
+
wsba.nhl_scrape_seasons_info(seasons=['20212022','20222023','20232024','20242025'])
|
48
48
|
wsba.nhl_scrape_standings(arg = '2024-03-20')
|
49
49
|
```
|
50
50
|
|
51
51
|
### NHL Rosters and Player Information
|
52
52
|
|
53
53
|
```python
|
54
|
-
wsba.
|
54
|
+
wsba.nhl_scrape_roster('20242025')
|
55
|
+
wsba.nhl_scrape_team_info()
|
55
56
|
```
|
56
57
|
|
58
|
+
### NHL Draft Rankings and Prospects
|
59
|
+
|
60
|
+
```python
|
61
|
+
wsba.nhl_scrape_draft_rankings()
|
62
|
+
wsba.nhl_scrape_prospects('BOS')
|
63
|
+
```
|
64
|
+
|
65
|
+
|
57
66
|
## DATA ANALYTICS
|
58
|
-
### Expected Goals (WeakSide Breakout and MoneyPuck models)
|
59
|
-
### Goal Impacts and Shot Analysis
|
60
|
-
### Stat Aggregation
|
61
|
-
|
67
|
+
### Expected Goals (WeakSide Breakout and MoneyPuck models)
|
68
|
+
### Goal Impacts and Shot Analysis
|
69
|
+
### Stat Aggregation
|
70
|
+
```python
|
71
|
+
pbp = wsba.nhl_scrape_season('20232024',remove=[], local = True)
|
72
|
+
wsba.nhl_calculate_stats(pbp,'skater',[2],['5v5','4v4','3v3'],xg='moneypuck',shot_impact = True)
|
73
|
+
```
|
74
|
+
### Shot Plotting (Plots, Heatmaps, etc.)
|
75
|
+
```python
|
76
|
+
skater_dict = {
|
77
|
+
'Patrice Bergeron':['20212022','BOS']
|
78
|
+
}
|
79
|
+
pbp = wsba.nhl_scrape_season('20212022',remove=[], local = True)
|
80
|
+
|
81
|
+
wsba.nhl_plot_skater_shots(pbp,skater_dict,['5v5'],legend=True)
|
82
|
+
wsba.nhl_plot_games(pbp,legend=True)
|
83
|
+
```
|
62
84
|
|
63
85
|
## REPOSITORY
|
64
|
-
### Past Season Play-by-Play
|
86
|
+
### Past Season Play-by-Play
|
87
|
+
```python
|
88
|
+
wsba.repo_load_pbp(seasons=['20212022','20222023','20232024','20242025'])
|
89
|
+
```
|
65
90
|
### Team Information
|
66
91
|
```python
|
67
92
|
wsba.repo_load_teaminfo()
|
68
|
-
wsba.repo_load_rosters(seasons=['20212022','20222023','20232024','20242025])
|
93
|
+
wsba.repo_load_rosters(seasons=['20212022','20222023','20232024','20242025'])
|
69
94
|
```
|
70
95
|
### Schedule
|
71
96
|
```python
|
72
|
-
wsba.repo_load_schedule(seasons=['20212022','20222023','20232024','20242025])
|
97
|
+
wsba.repo_load_schedule(seasons=['20212022','20222023','20232024','20242025'])
|
73
98
|
```
|
74
99
|
|
75
100
|
## ACKNOWLEDGEMENTS AND CREDITS
|
76
101
|
### Huge thanks to the following:
|
77
|
-
Harry Shomer - Creator of the hockey_scraper package, which contains select utils functions
|
102
|
+
Harry Shomer - Creator of the hockey_scraper package, which contains select utils functions within this package and otherwise inspires the creation of this package.
|
78
103
|
|
79
104
|
Dan Morse - Creator of the hockeyR package; another important inspiration and model for developing an NHL scraper.
|
105
|
+
|
106
|
+
Patrick Bacon - Creator of TopDownHockey package
|
107
|
+
|
108
|
+
MoneyPuck - Source of available xG data in the package
|
109
|
+
|
110
|
+
Anyone in the NHL Public Analytics community who has stuck around and supported WeakSide Breakout Analysis hockey.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
wsba_hockey/__init__.py,sha256=QXyc8FFlCDWQuECyyEbj80ASHEbTFj4R13DOFOY9nJg,353
|
2
|
+
wsba_hockey/wsba_main.py,sha256=YV1EIw09G3runuys60ANlB8dbpMykk0JA0jdftiZeSk,37472
|
3
|
+
wsba_hockey/stats/calculate_viz/shot_impact.py,sha256=7zxf64yt87YDucUBG31W75u951AUbMC7a3x5ClNIxYI,39
|
4
|
+
wsba_hockey/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
+
wsba_hockey/tools/agg.py,sha256=WRfuxJt0OgDSEkqHtuGql9nZrQnLGzkm6DUFVbDXayE,9560
|
6
|
+
wsba_hockey/tools/plotting.py,sha256=cwB9vU2OEZYN7nCnlmqKiNAeBFstxPNMWrPSZB5r8Gs,3815
|
7
|
+
wsba_hockey/tools/scraping.py,sha256=3wg3cAYXUsTfMTByeCqOTVTK_QOMZlAQ3RtvsJgcF7I,48740
|
8
|
+
wsba_hockey/tools/xg_model.py,sha256=qjScRMzLOkVsv6zVzJJxHBlbBPF6xg6_koncMCyYGYE,15052
|
9
|
+
wsba_hockey/tools/archive/old_scraping.py,sha256=hEjMI1RtfeZnf0RBiJFI38oXkLZ3WofeH5xqcF4pzgM,49585
|
10
|
+
wsba_hockey/tools/utils/__init__.py,sha256=vccXhOtzARoR99fmEWU1OEI3qCIdQ9Z42AlRA_BUhrs,114
|
11
|
+
wsba_hockey/tools/utils/config.py,sha256=D3Uk05-YTyrhfReMTTLfNI3HN_rON2uo_CDE9oER3Lg,351
|
12
|
+
wsba_hockey/tools/utils/save_pages.py,sha256=CsyL_0n-b-4pJoUauwU3HpnCO6n69-RlBMJQBd_qGDc,4979
|
13
|
+
wsba_hockey/tools/utils/shared.py,sha256=dH_JwZfia5fib8rksy5sW-mBp0pluBPvw37Vdr8Kap0,14211
|
14
|
+
wsba_hockey-1.0.0.dist-info/licenses/LICENSE,sha256=Nr_Um1Pd5FQJTWWgm7maZArdtYMbDhzXYSwyJIZDGik,1114
|
15
|
+
wsba_hockey-1.0.0.dist-info/METADATA,sha256=z9Iunr1XgXkMDXHO2T51CFi1m6iBWgAUrIM-ALYgY8E,3534
|
16
|
+
wsba_hockey-1.0.0.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
|
17
|
+
wsba_hockey-1.0.0.dist-info/top_level.txt,sha256=acU7s3x-RZC1zGiqCOmO0g267iqCg34lzIfdmYxxGmQ,12
|
18
|
+
wsba_hockey-1.0.0.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
wsba_hockey/__init__.py,sha256=7jvYvoqcDj11U1WBjVHa3Tr_WE4LSK-ZfGkIjZFOGME,229
|
2
|
-
wsba_hockey/wsba_main.py,sha256=HH0iB_Lk-etIHVdW9nm2WI0-C8yOJE7-WcEabhgjV5E,13143
|
3
|
-
wsba_hockey/tools/scraping.py,sha256=_QiUxhpUtZ1jW6401hcfUDDItyJsbB0cCH6zeFLhYYU,34348
|
4
|
-
wsba_hockey/tools/xg_model.py,sha256=sVAGFL0T4jvT-UPT_LsDVe40E0kWHHHs0Itf6CduptY,5976
|
5
|
-
wsba_hockey-0.1.2.dist-info/licenses/LICENSE,sha256=Nr_Um1Pd5FQJTWWgm7maZArdtYMbDhzXYSwyJIZDGik,1114
|
6
|
-
wsba_hockey-0.1.2.dist-info/METADATA,sha256=L_QTahxxMnKhQBHfYyYPYmZNRs8OouHbe5q-yT_M8Jg,2664
|
7
|
-
wsba_hockey-0.1.2.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
8
|
-
wsba_hockey-0.1.2.dist-info/top_level.txt,sha256=acU7s3x-RZC1zGiqCOmO0g267iqCg34lzIfdmYxxGmQ,12
|
9
|
-
wsba_hockey-0.1.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|