Skip to main content

chickenstats API

Project description

chickenstats-api

API for downloading NHL data

  • API version: 0.1.4
  • Package version: 0.1.4

Requirements

Python 3.9+

Installation

pip install chickenstats-api
import chickenstats_api

Getting Started

import chickenstats_api
from chickenstats_api.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.chickenstats.com
# See configuration.py for a list of all supported configuration parameters.
configuration = chickenstats_api.Configuration(
    host = "https://api.chickenstats.com"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

configuration.access_token = os.environ["ACCESS_TOKEN"]


# Enter a context with an instance of the API client
with chickenstats_api.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = chickenstats_api.InferenceApi(api_client)
    game_id = [56] # List[int] |  (optional)
    season = [56] # List[int] |  (optional)
    sessions = ['sessions_example'] # List[str] |  (optional)
    limit = 10000 # int |  (optional) (default to 10000)
    offset = 0 # int |  (optional) (default to 0)

    try:
        # Read Pred Goal
        api_response = api_instance.read_pred_goal(game_id=game_id, season=season, sessions=sessions, limit=limit, offset=offset)
        print("The response of InferenceApi->read_pred_goal:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling InferenceApi->read_pred_goal: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.chickenstats.com

Class Method HTTP request Description
InferenceApi read_pred_goal GET /api/v1/inference/pred_goal Read Pred Goal
LinesApi read_game_lines GET /api/v1/chicken_nhl/lines/game Read Game Lines
LinesApi read_line_ids GET /api/v1/chicken_nhl/lines/line_ids Read Line Ids
LinesApi read_lines_game_ids GET /api/v1/chicken_nhl/lines/game_ids Read Lines Game Ids
LinesApi read_season_lines GET /api/v1/chicken_nhl/lines/season Read Season Lines
LiveApi read_live_games GET /api/v1/live/games Read Live Games
LiveApi read_live_pbp GET /api/v1/live/play_by_play Read Live Pbp
LoginApi login_auth0_token POST /api/v1/login/auth0-token Login Auth0 Token
LoginApi login_callback POST /api/v1/login/callback Login Callback
LoginApi recover_password POST /api/v1/password-recovery/{email} Recover Password
LoginApi recover_password_html_content POST /api/v1/password-recovery-html-content/{email} Recover Password Html Content
LoginApi reset_password POST /api/v1/reset-password/ Reset Password
LoginApi test_token POST /api/v1/login/test-token Test Token
PlayByPlayApi read_pbp GET /api/v1/chicken_nhl/play_by_play Read Pbp
PlayByPlayApi read_pbp_game_ids GET /api/v1/chicken_nhl/play_by_play/game_ids Read Pbp Game Ids
PlayByPlayApi read_pbp_play_ids GET /api/v1/chicken_nhl/play_by_play/play_ids Read Pbp Play Ids
RapmApi read_rapm GET /api/v1/chicken_nhl/rapm Read Rapm
StatsApi read_game_stats GET /api/v1/chicken_nhl/stats/game Read Game Stats
StatsApi read_season_stats GET /api/v1/chicken_nhl/stats/season Read Season Stats
StatsApi read_stats_game_ids GET /api/v1/chicken_nhl/stats/game_ids Read Stats Game Ids
TeamStatsApi read_game_team_stats GET /api/v1/chicken_nhl/team_stats/game Read Game Team Stats
TeamStatsApi read_season_team_stats GET /api/v1/chicken_nhl/team_stats/season Read Season Team Stats
TeamStatsApi read_team_stats_game_ids GET /api/v1/chicken_nhl/team_stats/game_ids Read Team Stats Game Ids
TeamStatsApi read_team_stats_ids GET /api/v1/chicken_nhl/team_stats/team_stats_ids Read Team Stats Ids
UsersApi delete_user_me DELETE /api/v1/users/me Delete User Me
UsersApi get_programmatic_credentials GET /api/v1/users/me/programmatic-credentials Get Programmatic Credentials
UsersApi read_user_me GET /api/v1/users/me Read User Me
UsersApi resend_verification POST /api/v1/users/me/resend-verification Resend Verification
UsersApi rotate_programmatic_credentials POST /api/v1/users/me/programmatic-credentials/rotate Rotate Programmatic Credentials
UsersApi signup POST /api/v1/users/signup Signup
UsersApi sync_ghost_tier POST /api/v1/users/me/sync-ghost Sync Ghost Tier
UsersApi update_password_me PATCH /api/v1/users/me/password Update Password Me
UsersApi update_user_me PATCH /api/v1/users/me Update User Me

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

OAuth2PasswordBearer

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes: N/A

Author

chicken@chickenandstats.com

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

chickenstats_api-0.1.4.tar.gz (79.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chickenstats_api-0.1.4-py3-none-any.whl (132.8 kB view details)

Uploaded Python 3

File details

Details for the file chickenstats_api-0.1.4.tar.gz.

File metadata

  • Download URL: chickenstats_api-0.1.4.tar.gz
  • Upload date:
  • Size: 79.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chickenstats_api-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f4d38a3b18c16eaf543c1495cf103c76d8791e39b710ad65206890eb0ca4887d
MD5 63a8a52342b27f3a2c7d2b895845acf2
BLAKE2b-256 9ccb4a48989fe9b90f19253b56676db4c4a936968097ba2354c4ffa27f65a8a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for chickenstats_api-0.1.4.tar.gz:

Publisher: publish.yml on chickenandstats/chickenstats-api-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chickenstats_api-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for chickenstats_api-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0292dfaa58c0383c47695260dde1625ed807ab85bcdb550652a4354bed981a1b
MD5 52911e4c89ea1b725059f0c5c9dd9456
BLAKE2b-256 75240907ea5c7a2eedb85c5799f61d4bf5616c7aa76b60ad2a10eaed07edaf05

See more details on using hashes here.

Provenance

The following attestation bundles were made for chickenstats_api-0.1.4-py3-none-any.whl:

Publisher: publish.yml on chickenandstats/chickenstats-api-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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