Skip to main content

Making it easier to use the NHL API in python projects.

Project description

Easy NHL

pypi-version

Full documentation for the package is avalaible at https://easy-nhl.readthedocs.io/en/latest/

Overview

Ever had a project idea that looks to take advantage of the NHL API, but you don't know where to start because there's no documentation?

Look no further!

This api wrapper was developed to make grabbing and using that data a snap!

Here's what you get:

  1. A few classes to make this simple
  2. Built in methods on those classes, to make the data gathering a breeze

Requirements

  • Python (3.5, 3.6, 3.7, 3.8)

Installation

pip install easy-nhl

Example

from easy_nhl import Team

print(Team().teams)
# This will give you a payload of all current and former NHL teams (A list of dicts). 
# You can then use the Team class to get rosters and more information as follows:
sabres = Team(7)
print(sabres.roster())

# You can get historical rosters as well by passing in a season.
# All of this is gone over in more detail in the documentation....
print(sabres.roster('20052006'))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easy-nhl-0.3.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

easy_nhl-0.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file easy-nhl-0.3.tar.gz.

File metadata

  • Download URL: easy-nhl-0.3.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for easy-nhl-0.3.tar.gz
Algorithm Hash digest
SHA256 844941b091aa3f25f9b754421feb994210807e243ecb1e87fd24296b157367d3
MD5 16c635828fde34dfa952ae2201636743
BLAKE2b-256 b7937a57295f42ca9826bee57402f6a3a33f1b9ff829ed2088a18695adcca0ac

See more details on using hashes here.

File details

Details for the file easy_nhl-0.3-py3-none-any.whl.

File metadata

  • Download URL: easy_nhl-0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for easy_nhl-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3746161275f022a051f064ea63cad230f73c928a8c736da05f95fa7df2698344
MD5 69d76794eb72b19f2be74fec4bfc2af7
BLAKE2b-256 a82c404d2ba0edc0fd41fc8bff1cc0fe97270e5057cc625b4b436ac95f13326e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page