Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xtreyspf-0.1.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

xtreyspf-0.1.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

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

Hashes for xtreyspf-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fd60a4da51aa8ddce4e5f509838396e7bf1e0abf0463e084ea5e26503709639d
MD5 54c432b542222546efb60c79deb5cb41
BLAKE2b-256 85d840e45214b97197a23fcb7eae58b51251559487e4e48b42fff3350ea2d5d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtreyspf-0.1.3.tar.gz:

Publisher: python-publish.yml on bingchiliingsacker-dot/XtreysPF

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for xtreyspf-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b307526ec50b1cbe1f30bc727f675016b6db9e79b91646d8463cd056fc58b1e0
MD5 be691ff7e6ca3bffee4f2d63ffc7734f
BLAKE2b-256 6382bad3c1065f6224849f6f471391fafc978956e1f4c1067b777dbee91ab118

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtreyspf-0.1.3-py3-none-any.whl:

Publisher: python-publish.yml on bingchiliingsacker-dot/XtreysPF

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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