chickenstats API
Project description
chickenstats-api
API for downloading NHL data
- API version: 0.1.1
- Package version: 0.1.1
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.AdminApi(api_client)
lines_create = chickenstats_api.LinesCreate() # LinesCreate |
try:
# Create Lines
api_response = api_instance.create_lines(lines_create)
print("The response of AdminApi->create_lines:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->create_lines: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api.chickenstats.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AdminApi | create_lines | POST /api/v1/chicken_nhl/lines | Create Lines |
| AdminApi | create_pbp | POST /api/v1/chicken_nhl/play_by_play | Create Pbp |
| AdminApi | create_stats | POST /api/v1/chicken_nhl/stats | Create Stats |
| AdminApi | create_team_stats | POST /api/v1/chicken_nhl/team_stats | Create Team Stats |
| 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 |
| LoginApi | login_access_token | POST /api/v1/login/access-token | Login Access Token |
| 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 |
| 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 | create_user | POST /api/v1/users/ | Create User |
| UsersApi | delete_user | DELETE /api/v1/users/{user_id} | Delete User |
| UsersApi | delete_user_me | DELETE /api/v1/users/me | Delete User Me |
| UsersApi | read_user_by_id | GET /api/v1/users/{user_id} | Read User By Id |
| UsersApi | read_user_me | GET /api/v1/users/me | Read User Me |
| UsersApi | read_users | GET /api/v1/users/ | Read Users |
| UsersApi | update_password_me | PATCH /api/v1/users/me/password | Update Password Me |
| UsersApi | update_user | PATCH /api/v1/users/{user_id} | Update User |
| UsersApi | update_user_me | PATCH /api/v1/users/me | Update User Me |
Documentation For Models
- HTTPValidationError
- LinesCreate
- LinesGame
- LinesGameResponse
- LinesPublic
- LinesSeason
- LinesSeasonResponse
- Message
- NewPassword
- PbpPublic
- PbpResponse
- StatsCreate
- StatsGame
- StatsGameResponse
- StatsSeason
- StatsSeasonResponse
- TeamStatsCreate
- TeamStatsGame
- TeamStatsGameResponse
- TeamStatsPublic
- TeamStatsSeason
- TeamStatsSeasonResponse
- Token
- UpdatePassword
- UserCreate
- UserPublic
- UserUpdate
- UserUpdateMe
- UsersPublic
- ValidationError
- ValidationErrorLocInner
Documentation For Authorization
Authentication schemes defined for the API:
OAuth2PasswordBearer
- Type: OAuth
- Flow: password
- Authorization URL:
- Scopes: N/A
Author
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.1.tar.gz
(70.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chickenstats_api-0.1.1.tar.gz.
File metadata
- Download URL: chickenstats_api-0.1.1.tar.gz
- Upload date:
- Size: 70.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbbed306c8d3cba85f99d711000681a54211509b0a40a7087d815af116dcf917
|
|
| MD5 |
d2a583fba19f364c64980cbc5d0caec8
|
|
| BLAKE2b-256 |
6884ba09556b6158107e56fbede7505f666dceeb932e6b15a86bffd56f9010a1
|
File details
Details for the file chickenstats_api-0.1.1-py3-none-any.whl.
File metadata
- Download URL: chickenstats_api-0.1.1-py3-none-any.whl
- Upload date:
- Size: 123.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9838a12d18a8cd1a6388b4cddfb1d45f4a45906bc3a8d75cedb09b54ae553526
|
|
| MD5 |
208539ed2dec37370ef14d2837b5d2e9
|
|
| BLAKE2b-256 |
13c3d3bc0f5ec40ddddda1a780da90abdd6acc655dec17159c3ea12f2293bed3
|