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-api-py
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.2.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for nhl_api_py-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7428bd0426951246dc6d4368fc9af5ce8defcb7991e3c09a2724ddec13d3c97 |
|
MD5 | 76b5f2d2b32a66658412f1b68fdc1cba |
|
BLAKE2b-256 | f0547dfa6515677f953e03c44080d3825e946053aa47af2e2765c20ae8815e32 |