An extended add-on for pre-flop card evaluation.
Project description
Description
Treys is a library made by someone from MIT. It is widely used to easily evaluate rounds of Texas Hold'em from the flop to the river. But one problem i came across using Treys is that it does not have an evaluator to evaluate pre-flop rounds. So i built XtreysPF to fix that problem, XtreysPF(Short for eXtended treys PreFlop) is an Add-on that evaluates hole cards and hole cards only. Unlike the Treys which uses a 5-card, 6-card, or 7-card basis, XtreysPF relies on a 2-card basis where it converts unreadable integers into ranks from 1-91.
Installation
To install XtreysPF, install treys using:
pip install treys
Then, open your terminal and run:
pip install git+https://github.com/bingchiliingsacker-dot/XtreysPF.git
or:
pip install xtreyspf
Note: If you run into any issues installing or using XtreysPF, feel free to open a ticket on the Issues tab!
Usage
XtreysPF has one goal only, and its to rank the strength of the hole cards. Cards are ranked from 1 to 91 with 'A-A' or pocket Ace's being the strongest and a '2-7' being the weakest pair
Here is a quick test to see if XtreysPF is working:
from treys import Deck
import xtreyspf as pf
d = Deck()
cards = d.draw(2)
rank = pf.preflop_eval(cards)
print(f"Pre-flop hand rank: {rank}")
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 xtreyspf-0.1.3.tar.gz.
File metadata
- Download URL: xtreyspf-0.1.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd60a4da51aa8ddce4e5f509838396e7bf1e0abf0463e084ea5e26503709639d
|
|
| MD5 |
54c432b542222546efb60c79deb5cb41
|
|
| BLAKE2b-256 |
85d840e45214b97197a23fcb7eae58b51251559487e4e48b42fff3350ea2d5d4
|
Provenance
The following attestation bundles were made for xtreyspf-0.1.3.tar.gz:
Publisher:
python-publish.yml on bingchiliingsacker-dot/XtreysPF
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xtreyspf-0.1.3.tar.gz -
Subject digest:
fd60a4da51aa8ddce4e5f509838396e7bf1e0abf0463e084ea5e26503709639d - Sigstore transparency entry: 2255439739
- Sigstore integration time:
-
Permalink:
bingchiliingsacker-dot/XtreysPF@b5acb0ac9b03dedc20042ec71a7d315cd1d16b5a -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/bingchiliingsacker-dot
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b5acb0ac9b03dedc20042ec71a7d315cd1d16b5a -
Trigger Event:
release
-
Statement type:
File details
Details for the file xtreyspf-0.1.3-py3-none-any.whl.
File metadata
- Download URL: xtreyspf-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b307526ec50b1cbe1f30bc727f675016b6db9e79b91646d8463cd056fc58b1e0
|
|
| MD5 |
be691ff7e6ca3bffee4f2d63ffc7734f
|
|
| BLAKE2b-256 |
6382bad3c1065f6224849f6f471391fafc978956e1f4c1067b777dbee91ab118
|
Provenance
The following attestation bundles were made for xtreyspf-0.1.3-py3-none-any.whl:
Publisher:
python-publish.yml on bingchiliingsacker-dot/XtreysPF
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xtreyspf-0.1.3-py3-none-any.whl -
Subject digest:
b307526ec50b1cbe1f30bc727f675016b6db9e79b91646d8463cd056fc58b1e0 - Sigstore transparency entry: 2255439748
- Sigstore integration time:
-
Permalink:
bingchiliingsacker-dot/XtreysPF@b5acb0ac9b03dedc20042ec71a7d315cd1d16b5a -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/bingchiliingsacker-dot
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b5acb0ac9b03dedc20042ec71a7d315cd1d16b5a -
Trigger Event:
release
-
Statement type: