Skip to main content

Analytics software for NHL teams data past and present

Project description

Track current rankings, as well as trends and recent patterns for your favorite team.

Model the probability of winning the next game, making playoffs, winning specific playoff games, or the championship as a whole.

Notes

I hope to extend this to include individual/player statistics at some point too.

Initially available as a command line interface.

Eventually this will be hosted as a website rendered by a Flask API and Svelte front-end, and available in a more dynamic, engaging format.

I suggest using direnv to automatically load/unload the venv shell.

sudo apt install direnv

Running

Requires Python3 and venv. See the argcomplete package page for details on how to set it up with various shells, the tab-completion is working on this project and highly useful to anyone using this program.

git clone https://github.com/nutratech/nhlrank.git
cd nhlrank

make init
make deps

./sp fetch  # if CSV is out of date
./sp stand -c  # "-c" means used cached, e.g. don't fetch
./sp stand -c -t "Detroit Red Wings"  # show details for a team
./sp stand -c -s rating  # sort teams in standings by Glicko rating

# sort teams in standings by average opponent, include team details
./sp stand -c -t "Anaheim Ducks" -s avg_opp

# show help
./sp -h
./sp stand -h

Shortcut for testing

You can create a symbolic link for quick testing.

sudo ln -s "<FULL_PATH_TO_sp>" /usr/local/bin/sp

Test it.

sp stand -h

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

nhlrank-0.0.1.dev15.tar.gz (24.1 kB view details)

Uploaded Source

File details

Details for the file nhlrank-0.0.1.dev15.tar.gz.

File metadata

  • Download URL: nhlrank-0.0.1.dev15.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for nhlrank-0.0.1.dev15.tar.gz
Algorithm Hash digest
SHA256 99e06dc35bd11707e5915c3c23baae3c7c4776e29c53c019c98cb18345865b53
MD5 960fd51dc1cbd311b0ddd0fa7df9dcbb
BLAKE2b-256 2bcdbb99c6ec7ea84273b091ddb17cf9b9c0fd2f9fd75edcfc560c8a9ad4c219

See more details on using hashes here.

Supported by

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