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: Easily gather data related to Table Hockey players, such as points and rank.
- 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 for more detailed usage.
Documentation
For full documentation of functions, see the manpage 'Manpage.md or visit the pypi documentation if available, the documentation is not yet any different from this readme.
Example Functions
- GetPlayerID(Name): retrieves the ITHF player ID for a given player name.
- 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.py and examples/.
Development
Feel free to contribute! To install the package in development mode just add -e:
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 tablehockeytools-0.1.1.tar.gz.
File metadata
- Download URL: tablehockeytools-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f97139b682fe9b22d8aa47b218ae7beabe916d0cd9dcf0593efe9fcfef5833b9
|
|
| MD5 |
58dcf280f54898508e0d70c6f6b32666
|
|
| BLAKE2b-256 |
4dea650a995c0c7deda24738429e56e232151671bfdadca41013423d9bc79010
|
File details
Details for the file TableHockeyTools-0.1.1-py3-none-any.whl.
File metadata
- Download URL: TableHockeyTools-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
962587bcc44e635f1319d1fbfea0470562c83ea051d97892bf674a2389497b5d
|
|
| MD5 |
29056a87ea0e8454f6416bae0dcd08d4
|
|
| BLAKE2b-256 |
a28cc96f15b54e6a61344db53a1b06cd250f8773bf0ad46cbb3920252f0ddb44
|