Package: powerplay
powerplay (Py)A Python client for the NHL APIDocumenting the publicly accessible portions of the NHL API.OverviewThis Python package is automatically generated by theSwagger Codegenproject.Installation & Usagepip installpowerplay can be installed via pip:pipinstallpowerplayor from the repo (which may at times be more up to date):gitclonehttps://github.com/saiemgilani/powerplay-pycdpowerplay-py
pipinstall-e.(you may need to runpipwith root permission:sudo pip install git+https://github.com/saiemgilani/powerplay-py.git)Then import the package:importpowerplaySetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importpowerplayRequirements.Python 3.6+Getting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimporttimeimportpowerplayfrompowerplay.restimportApiExceptionfrompprintimportpprint# create an instance of the API classapi_instance=powerplay.ConferencesApi(powerplay.ApiClient(configuration))id=1.2# float | The ID of the conference.try:# Get an NHL conference.api_response=api_instance.get_conference(id)pprint(api_response)exceptApiExceptionase:print("Exception when calling ConferencesApi->get_conference:%s\n"%e)# create an instance of the API classapi_instance=powerplay.ConferencesApi(powerplay.ApiClient(configuration))try:# Get all current NHL conferences.api_response=api_instance.get_conferences()pprint(api_response)exceptApiExceptionase:print("Exception when calling ConferencesApi->get_conferences:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://statsapi.web.nhl.com/api/v1ClassMethodHTTP requestDescriptionConferencesApiget_conferenceGET/conferences/{id}Get an NHL conference.ConferencesApiget_conferencesGET/conferencesGet all current NHL conferences.DivisionsApiget_divisionGET/divisions/{id}Get an NHL division.DivisionsApiget_divisionsGET/divisionsGet all current NHL divisions.DraftApiget_draftGET/draftGet round-by-round data for current year's NHL Entry Draft.DraftApiget_draft_by_yearGET/draft/{year}Get round-by-round data for a specific year's NHL Entry Draft.DraftApiget_draft_prospectGET/draft/prospects/{id}Get an NHL Entry Draft prospect.DraftApiget_draft_prospectsGET/draft/prospectsGet all NHL Entry Draft prospects.GamesApiget_gameGET/game/{id}/feed/liveGet all available data for an NHL game.GamesApiget_game_boxscoreGET/game/{id}/boxscoreGet the boxscore for an NHL game.GamesApiget_game_contentGET/game/{id}/contentGet editorials, video replays and photo highlights for an NHL game.GamesApiget_game_diffGET/game/{id}/feed/live/diffPatchGet all available data for an NHL game after a specific time.PlayersApiget_playerGET/people/{id}Get an NHL player.PlayersApiget_player_statsGET/people/{id}/statsGet specific statistics for an NHL player.ScheduleApiget_scheduleGET/scheduleGet the NHL game schedule.StandingsApiget_standing_typesGET/standingsTypesGet all available NHL standing types.StandingsApiget_standingsGET/standingsGet NHL division standings.StandingsApiget_standings_by_typeGET/standings/{type}Get NHL standings for a specific standing type.StatsApiget_stat_typesGET/statTypesGet all available NHL statistic types.TeamsApiget_teamGET/teams/{id}Get an NHL team.TeamsApiget_team_rosterGET/teams/{id}/rosterGet an NHL team's roster.TeamsApiget_team_statsGET/teams/{id}/statsGet all statistics for an NHL team.TeamsApiget_teamsGET/teamsGet all NHL teams.Documentation For ModelsAnyOfGameContentMediaEpgItemsConferenceConferencesDivisionDivisionConferenceDivisionsDraftDraftDraftsDraftPicksDraftProspectDraftProspectAmateurLeagueDraftProspectAmateurTeamDraftProspectPrimaryPositionDraftProspectProspectCategoryDraftProspectsDraftRoundsDraftTeamErrorFranchiseGameGameBoxscoreGameBoxscoreTeamGameBoxscoreTeamCoachesGameBoxscoreTeamOnIcePlusGameBoxscoreTeamPersonGameBoxscoreTeamPlayersGameBoxscoreTeamPlayersPersonGameBoxscoreTeamPlayersPositionGameBoxscoreTeamPlayersStatsGameBoxscoreTeamPlayersStatsSkaterStatsGameBoxscoreTeamPositionGameBoxscoreTeamTeamGameBoxscoreTeamTeamStatsGameBoxscoreTeamTeamStatsTeamSkaterStatsGameBoxscoreTeamsGameBoxscoresGameContentGameContentEditorialGameContentHighlightsGameContentMediaGameContentMediaMilestonesGameContentMediaMilestonesItemsGameDecisionPlayerGameEditorialGameEditorialContributorGameEditorialContributorContributorsGameEditorialKeywordGameEditorialMediaGameEditorialTokenDataGameEditorialsGameGameDataGameGameDataDatetimeGameGameDataGameGameGameDataStatusGameGameDataTeamsGameGameDataVenueGameHighlightGameHighlightPlaybacksGameHighlightTypeGameHighlightsGameLinescoreGameLinescoreIntermissionInfoGameLinescorePowerPlayInfoGameLinescoreShootoutInfoGameLinescoreShootoutInfoAwayGameLinescoreTeamGameLinescoreTeamsGameLiveDataGameLiveDataDecisionsGameLiveDataPlaysGameLiveDataPlaysPlaysByPeriodGameMediaAudioGameMediaAudioItemsGameMediaNHLTVGameMediaNHLTVItemsGameMetaDataGameOfficialGameOfficialOfficialGamePeriodGamePeriodAwayGamePeriodHomeGamePlayGamePlayAboutGamePlayAboutGoalsGamePlayCoordinatesGamePlayPlayerGamePlayPlayersGamePlayResultGamePlayTeamPhotoPhotoCutsPlayerPlayerCurrentTeamPlayerStatsPlayerStatsOpponentDivisionPlayerStatsSplitsPlayerStatsStatPlayerStatsStatsPlayerStatsTypePlayersRosterRosterPersonRostersScheduleScheduleDayScheduleGameScheduleGameContentScheduleGameTeamsScheduleGameTeamsAwayScheduleGameTeamsAwayLeagueRecordScheduleGameTeamsAwayTeamScheduleGameTeamsHomeScheduleGameTeamsHomeLeagueRecordScheduleGameTicketsStandingTypesStandingTypesInnerStandingsStandingsDivisionStandingsLeagueStandingsRecordsStandingsStreakStandingsTeamRecordsStatTypesStatTypesInnerTeamTeamNextGameScheduleTeamNextGameScheduleDatesTeamNextGameScheduleGamesTeamNextGameScheduleStatusTeamNextGameScheduleTeamsTeamNextGameScheduleTeamsAwayTeamNextGameScheduleTeamsAwayLeagueRecordTeamNextGameScheduleTeamsAwayTeamTeamNextGameScheduleTeamsHomeTeamNextGameScheduleTeamsHomeLeagueRecordTeamRosterTeamStatsTeamStatsSplitsTeamStatsStatTeamStatsStatsTeamStatsTypeTeamsVenueVenueTimeZoneDocumentation For AuthorizationAll endpoints do not require authorization.Our AuthorsSaiem GilaniCitationsTo cite thepowerplayPython package in publications, use:BibTex Citation@misc{saiemgilani2021powerplay,author={Gilani, Saiem},title={powerplay: The SportsDataverse Package for Hockey Data.},url={https://powerplay-py.sportsdataverse.org},season={2021}}