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
examplesfolder 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.
Metadata
Release files for TableHockeyTools 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tablehockeytools-0.1.5.tar.gz | 10.4 kB | Without provenance | Details for tablehockeytools-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tablehockeytools-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for tablehockeytools-0.1.5-py3-none-any.whl |
Total release size: 20.2 kB
Release files / tablehockeytools-0.1.5.tar.gz
| Download URL | tablehockeytools-0.1.5.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
290010a04db50be2be195c311ac16805ebf1b68de408fde8dabffda230940f91
|
|
BLAKE2b-256 checksum How to use checksums |
a391b1f141ee79527e97c3649308c9d290fbce176d054eb06ca144c2cd0f44be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / tablehockeytools-0.1.5-py3-none-any.whl
| Download URL | tablehockeytools-0.1.5-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5318b383970dfbfe69fc59169443428f4c659007eab28b9759c93a260a52114c
|
|
BLAKE2b-256 checksum How to use checksums |
07eb609c9d63c4dfa5890f5e4331ef00e5c55e17b87972ef84ce7220b185cbee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for TableHockeyTools 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.