NHL API Wrapper. For standings, team stats and outcomes.
Project description
NHL-py-api
NHL-py-api is a Python package that provides a simple wrapper around the NHL API, allowing you to easily access and retrieve NHL data in your Python applications.
Note: This is very early, I created this to help me with some machine learning projects around the NHL and the NHL data sets.
Installation
You can install NHL-py-api using pip:
pip install nhl-py-api
Usage
from nhlpy import NHLClient
client = NHLClient()
Available methods:
client.teams.all()
client.teams.get_by_id(id=1, roster=False)
client.teams.get_team_next_game(id=1)
client.teams.get_team_previous_game(id=1)
client.teams.get_team_stats(id=1)
# Standings
client.standings.get_standings(season="20222023", detailed_record=False)
client.standings.get_standing_types()
Developers
poetry install --with dev
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nhl_api_py-0.1.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for nhl_api_py-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1382bf66bec0ff330cd81be537bfdfb77f5cf33a06287d394e7431957bf86fb1 |
|
MD5 | facd99381b8f55977fb2b6176c331172 |
|
BLAKE2b-256 | c6a9cf29cd3c59b267c8814be09a36a77425e59d7c6058c3f14fcecaf049c1c0 |