A poker package to parse Hand histories into json objects
Project description
PokerHistoryParser
Description
A poker package to parse Hand histories into json objects
PokerHistoryParser is a powerful tool for analyzing and extracting data from poker hand histories.
This project is designed to help poker players and analysts better understand their performance by providing detailed
analyses of hands played.
Table of Contents
Introduction
Welcome to the PokerHistoryParser documentation.
This tool allows you to analyze poker hand histories.
It is designed to be easy to use and integrate into your projects.
It returns data as a dictionary or JSON file for easy use in your programs.
Installation
To install the package, use the following command:
pip install pkrhistoryparser
Usage
Base Examples
Here are some simple examples of using PokerHistoryParser:
Parse a poker hand history to a dict to be used in a program:
from pkrhistoryparser.parser import HandHistoryParser
parser = HandHistoryParser()
hand_text = parser.get_raw_text("path/to/hand/history.txt")
hand_info = parser.parse_hand(hand_text)
Parse a poker hand history to a JSON file:
from pkrhistoryparser.parser import HandHistoryParser
parser = HandHistoryParser()
parser.parse_to_json('path/to/hand/history.txt', 'path/to/save/json/file.json')
For more details on usage, please refer to the documentation.
Supported Poker Sites
Currently, PokerHistoryParser supports the following poker sites:
- Winamax
Upcoming Features
Here are some features we plan to add in future versions:
- Analysis of tournament summary files
- Analysis of CashGame files
- Support for more poker sites
Contributing
All contributions are welcome! To contribute, please follow these steps:
- Fork the repository
- Create a branch for your feature (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
This project is licensed under the MIT license. See the LICENSE file for more details.
Authors
- Alexandre MANGWA a.k.a Manggy94 on GitHub - Main dev -
Associated Projects
For any questions or issues, feel free to open an issue in the repository or contact us 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
File details
Details for the file pkrhistoryparser-3.0.4.tar.gz
.
File metadata
- Download URL: pkrhistoryparser-3.0.4.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbcba12ae8d6c9ace1dfb42f761b3247c50b4f31f84206940e8e0770d546a391 |
|
MD5 | ced81508db3fc2beca972d1867166cc7 |
|
BLAKE2b-256 | 43fcf1cec9d68af56654cf77aa556bb79c2582971308c37d934f9d34e6cfe266 |
File details
Details for the file pkrhistoryparser-3.0.4-py3-none-any.whl
.
File metadata
- Download URL: pkrhistoryparser-3.0.4-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 190591bcf6bffbdf40817e510b086a30cf32ed019ce339b24851370f7defa604 |
|
MD5 | 1a2d42ecce4dd078c6c0596d42383dc9 |
|
BLAKE2b-256 | 306eb46a38779226db02ee0dd734c89c9663dac601cf82b093123d0ea2d939b1 |