{"id":22832525,"url":"https://github.com/powercommands/nhl","last_synced_at":"2025-03-31T02:19:06.947Z","repository":{"id":162485214,"uuid":"637028703","full_name":"PowerCommands/nhl","owner":"PowerCommands","description":"NHL Power Commands, dig in to NHL stats, fetch current data from NHL.com. No database needed as all data is stored in json files.","archived":false,"fork":false,"pushed_at":"2023-11-17T12:53:41.000Z","size":12201,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-06T07:21:13.607Z","etag":null,"topics":["console","console-application","hockey-stats","nhl","powercommands","sports"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PowerCommands.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-06T09:33:12.000Z","updated_at":"2023-11-22T13:02:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"95a4e0ad-2c9f-4482-beaa-271c5c2863f9","html_url":"https://github.com/PowerCommands/nhl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerCommands%2Fnhl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerCommands%2Fnhl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerCommands%2Fnhl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerCommands%2Fnhl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PowerCommands","download_url":"https://codeload.github.com/PowerCommands/nhl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246403903,"owners_count":20771530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["console","console-application","hockey-stats","nhl","powercommands","sports"],"created_at":"2024-12-12T21:07:51.533Z","updated_at":"2025-03-31T02:19:06.927Z","avatar_url":"https://github.com/PowerCommands.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NHL Power Commands\nNHL Power Commands, dig in to NHL stats, fetch current data from NHL.com and from https://statsapi.web.nhl.com/api/ read more about that here: https://gitlab.com/dword4/nhlapi\n \nThis project is therefore dependent on that this services are running and do not have breaking changes.\n\n## Prerequisites\nYou need support for at least .NET 6 or higher versions, you can download current SDK from here: [Microsoft .NET Download](https://dotnet.microsoft.com/en-us/download)\n\n## Installation of the Power Commands NHL Client\nThere are one prepared release for **Windows x64** machines in the release [Downloads](Downloads).\n- Unzip the **PainKiller.NhlCommands.zip** file to your local machine, suggestion is to create a new directory named PowerCommands.Nhl in your main program directory\n- Start the program **nhl.exe** and then run the command ```install``` this will unzip the base data, that will give you a good start, over time you will need to fetch updates, which is described under the section **Maintain the database with updates** the start data is up do date with season 2022/2023. \n\nNow you are ready to start using the NHL PowerCommands Client!\n\n## Run solution from Visual Studio (or a IDE tool of your own choice)\nThis project is open source and completely free for you to use as you wish, just clone this repo and run the code in the **src** directory, be sure to mark the **PainKiller.PowerCommands.PowerCommandsConsole** as startup project before you hit **F5**.\n\n# Help\nFor every commands you could always use the ```--help``` option to display help about the command.\nThere are some commands that belongs to the Power Commands framework, they are not described here, read more about [Power Commands on github](https://github.com/PowerCommands/PowerCommands2022) if you are interested.\n\n# Use tab\nWith the tab key you can cycle through valid commands, options and suggestion that a specific command has, many commands has a filter for countries using their abbreviation, use tab to help you.\n\n[Follow progress on twitter](https://twitter.com/PowerCommands) \u003cimg src=\"https://github.com/PowerCommands/PowerCommands2022/blob/main/Docs/images/Twitter.png?raw=true\" alt=\"drawing\" width=\"20\"/\u003e\n\n\n# Commands\n\n## stats\nShow points statistic for a specific season or current season, default top count is 25\n\nnhl\u003e**stats** --top 5\n```\nPlace FullName            TeamAbbrevs Nationality GamesPlayed Points Goals Assists PointsPerGame PositionCode\n    1 Connor McDavid      EDM         CAN                  82    153    64      89 1,86585       C\n    2 Leon Draisaitl      EDM         DEU                  80    128    52      76 1,6           C\n    3 David Pastrnak      BOS         CZE                  82    113    61      52 1,37804       R\n    4 Nikita Kucherov     TBL         RUS                  82    113    30      83 1,37804       R\n    5 Nathan MacKinnon    COL         CAN                  71    111    42      69 1,56338       C    \n```\n**Options** (option always has a trailing ```--``` before option name)\n\n*team goalies at-least-game-count name top goals assists points-per-game forward defense rookie*\n\n**Country filters (one or as many as you want)**\n\n*SWE|FIN|CAN|USA|CZE|SVK|DEU|AUS|CHE|SVN|NOR|DNK|NLD|BLR|LVA|FRA|AUT|GBR|UKR|HRV|LTU|KAZ|POL|NGA|BHS|ITA|RUS*\n\n**Examples**\n\n### Show points stats for current top 25 (default)\n ```stats```\n\n### Show points stats for 2010, show first top 100\n ```stats 2010 --top 100```\n### Show points stats for all swedish players for current season\n```stats --nation swe```\n### Compare swedish and finnish players for season 2016/2017 in the top 100\n```stats 2017 SWE FIN --top 100```\n### Show rookie points stats for current season top 25 (default)\n```stats --rookie```\n### Show stats for Finnish players current season in Carolina\n```stats FIN --team car```\n### Show defense men points stats for current season top 25 (default)\n```stats --defense```\n### Show stats for current season top 25 goal scorer (default)\n```stats --goals```\n### Show stats for current season top 25 assists (default)\n```stats --assists```\n### Show stats for current season top 25 points per game (default)\n```stats --goals-per-game```\n\n## draft\n\nFetch draft data from NHL api to build up your base data or just display drafts from the local database file. Draft has a dependency to downloaded players.\n\nnhl\u003e**draft** 2017 --take 5\n```\n2017 Nico Hischier Naters CHE Halifax  Round:1 PickOverall: 1\n2017 Nolan Patrick Winnipeg CAN Brandon  Round:1 PickOverall: 2\n2017 Miro Heiskanen Espoo FIN HIFK  Round:1 PickOverall: 3\n2017 Cale Makar Calgary CAN Brooks  Round:1 PickOverall: 4\n2017 Elias Pettersson Sundsvall SWE Timra  Round:1 PickOverall: 5\n```\n\n**Options** (option always has a trailing ```--``` before option name)\n\n*take include-all delete*\n\n**Country filters (one or as many as you want)**\n\n*SWE|FIN|CAN|USA|CZE|SVK|DEU|AUS|CHE|SVN|NOR|DNK|NLD|BLR|LVA|FRA|AUT|GBR|UKR|HRV|LTU|KAZ|POL|NGA|BHS|ITA|RUS*\n\n**Examples**\n### Show draft for season 2010/2011\n```draft 2010```\n### Include skaters that for some reason missing in the database (probably never made it to the NHL?)\n```draft 2010 --include-all```\n### Delete a draft year (in case you want to download it again)\n```draft --delete 1980```\n\n## Player\nSearch player with filters.\n\n**Options** (option always has a trailing ```--``` before option name)\n\n*goalies active un-drafted*\n\n**Country filters (one or as many as you want)**\n\n*SWE|FIN|CAN|USA|CZE|SVK|DEU|AUS|CHE|SVN|NOR|DNK|NLD|BLR|LVA|FRA|AUT|GBR|UKR|HRV|LTU|KAZ|POL|NGA|BHS|ITA|RUS*\n\n**Examples**\n### Search \"wayne gretzky\"\n```player \"wayne gretzky\"```\n### Search swedish players\n```player SWE```\n### Search Canadian undrafted players named \"wayne\"\n```player \"wayne\" CAN --un-drafted```\n\n## Seasons\n\nShow goal or point stats for seasons or a specific season.\n\nnhl\u003e**seasons** 2010 --stop 2012\n```\nSeason  Winner        Nation WinnerPoint PointsPerGame Over99 Games Status\n2009/10 Henrik Sedin  SWE            112 1,36585            4    82 Completed\n2010/11 Daniel Sedin  SWE            104 1,26829            1    82 Completed\n2011/12 Evgeni Malkin RUS            109 1,45333            1    82 Completed\n```\n\n**Options** (option always has a trailing ```--``` before option name)\n\n*stop goals*\n\n**Examples**\n### Show points leader for current season\n```seasons```\n### Show goal leader stats for current season\n```seasons --goals```\n### Show points winners for seasons 2010 to 2015\n```seasons 2010 --stop 2015```\n\n# Maintain the database with updates\n\n## download\nDownload data from nhl.com, skaters stats is default and does not explicit have to been set by option.\n\n**Options** (option always has a trailing ```--``` before option name)\n\n*goalies standings drafts find-missing-players*\n\n**Examples**\n### Download skater statistic for current season\n```download```\n\n### Download skater statistic for season 2000\n```download 2000```\n\n### Download goalies statistic for every skater seasons previously downloaded.\n```download --goalies```\n\n### Look for players that are missing and download them.\n```download --find-missing-players```\n\n### Download drafts (and prospects) from 2010 until an already existing year.\n```download 2010 --drafts```\n\n### Download NHL team standings from the min skaters year downloaded to current season\n```download --standings```\n\n## db\nWith the db command you can view metadata about your local NHL json file based database, below is a sample of what is shown.\n\n```\nPlayers\nNumber of players: 7034\nNationalities: CAN|FIN|USA|CZE|SWE|SVK|RUS|LVA|UKR|POL|BLR|LTU|DEU|FRA|CHE|GBR|KAZ|NOR|NGA|KOR|AUT|JAM|SVN|ITA|PRY|NLD|SRB|VEN|DNK|LBN|AUS|HRV|BHS|JPN|BRA\nLast updated:2023-04-14 11:35:12\n File size: 10 MB\n ```\n\n**Examples**\n\n```db```\n\n# This applications is made with the use of Power Commands!\nRead more about [Power Commands on github](https://github.com/PowerCommands/PowerCommands2022) if you are interested.\n\n[Follow progress on twitter](https://twitter.com/PowerCommands) \u003cimg src=\"https://github.com/PowerCommands/PowerCommands2022/blob/main/Docs/images/Twitter.png?raw=true\" alt=\"drawing\" width=\"20\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowercommands%2Fnhl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowercommands%2Fnhl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowercommands%2Fnhl/lists"}