THTools(1)

NAME
**THTools** - Python package for retrieving and displaying table hockey player data.

SYNOPSIS
from THTools import THlog, GetPlayerPoints, GetPlayerRank, GetPlayerID, GetPlayerName

DESCRIPTION
**THTools** provides functions to work with table hockey player data. This includes functions for retrieving player ranking points, ranks, IDs, and names. Logging is provided with customizable verbosity and warning suppression.

FUNCTIONS

THlog(message, mode="info")
    Logs messages with different color-coded modes. Parameters:

    -

    -

GetPlayerPoints(player_ids=None, player_names=None, return_mode="list", verbose=False, supress_warnings=False)
    Fetches ranking points for specified players. Parameters:

    -

    -

    -

    -

    -
Returns:

    List,

GetPlayerRank(player_ids=None, player_names=None, return_mode="list", verbose=False, supress_warnings=False)
    Fetches open ranking position for specified players. Parameters:

    Same
Returns:

    List,

GetPlayerID(player_names, return_mode="single", verbose=False, supress_warnings=False)
    Fetches player ID(s) for given player name(s). Last name is required first, followed by first name. Given names are case-insensitive. Parameters:

    -

    -
Returns:

    List,

GetPlayerName(player_ids, return_mode="single", verbose=False, supress_warnings=False)
    Fetches player name(s) for given player ID(s). Parameters:

    Same
Returns:

    List,

EXAMPLES

Log an informational message:
    THlog("Retrieving player points", info )

Get ranking points for a single player by ID:
    points = GetPlayerPoints(player_ids="12345", return_mode="single")

Get the player ID for a name:
    player_id = GetPlayerID("Doe John", return_mode="single")

DEPENDENCIES

-

-

-