Skip to main content

A collection of tools for working with TableHockey data.

Project description

TableHockeyTools

this package is in early development and is lacking in functionality

TableHockeyTools is a Python package designed to gather data related to Table Hockey. TableHockeyTools provides convenient functions to make working with Table Hockey data straightforward.

Features

  • Data Gathering: Gather data related to Table Hockey players, such as points and rank.
  • Tournament Calcualtions: Calculate points values for positions in a tournament
  • Tournament Predictions: sort the players of a tournament in decreasing order from ranking.
  • Examples Provided: The examples folder demonstrates usage for various functions.

Installation

this project is available on pypi and can be installed using 'pip':

pip install TableHockeyTools

Alternativeley, you can clone this repository and install using pip:

git clone https://github.com/Benginy-lab/TableHockeyTools.git
cd TableHockeyTools
pip install .

Usage

Import the package THTools and use the functions as needed:

import THTools as tht

# Example usage
player_names = ['Evigeny Matansev', 'Rainers Kalnins']
player_ids = []
for player_name in player_names:
    player_ids.append(tht.GetPlayerID(player_name))
for player_id, player_name in zip(player_ids, player_names):
    player_points = tht.GetPlayerPoints(player_id)
    print(f"{player_name} has {player_points} points.")

Check out the examples folder or the Manpage for more detailed usage.

Documentation

Manpage

For full documentation of functions, see the Manpage

Example Functions

  • GetPlayerPoints(ID): retrieves the points for a given player ID.
  • GetPlayerRank(ID): retrieves the rank for a given player ID.

Each function documented in THTools/THTools.py and Manpage.md.

Development

Feel free to contribute! To install the package in development mode, simply add -e:

git clone https://github.com/Benginy-lab/TableHockeyTools.git
cd TableHockeyTools
pip install -e .

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For questions, reach out via GitHub issues or contact me directly.

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

tablehockeytools-0.1.4.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

tablehockeytools-0.1.4-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tablehockeytools-0.1.4.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.24

File hashes

Hashes for tablehockeytools-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3ac29b33a1aaf627764aa64584e435c962939ae22a36ce7bdd9bf268884724dc
MD5 0bad0547c9cddf2cec26cc0acb18ef89
BLAKE2b-256 fdae9696270b8f067d6430abd143ce3e7d79be41cd82bb3719dea5f8a31c845a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tablehockeytools-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d5a14d563ab4b489ea4f988ad0a843d9968b97634fef437b9007f604188d4852
MD5 395fbbee80271a94b61f513a36078d05
BLAKE2b-256 3c58ecc4c4a074aeb2273482fc19a9beb788d776124876735ab1b463aeb49fc3

See more details on using hashes here.

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