Skip to main content

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}")

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.31.tar.gz (2.8 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.31-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file xtreyspf-0.1.31.tar.gz.

File metadata

  • Download URL: xtreyspf-0.1.31.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.7

File hashes

Hashes for xtreyspf-0.1.31.tar.gz
Algorithm Hash digest
SHA256 b4db67922fc30d12f72c6d047190f834b4f76483e55f89c3a127595a8f2433b4
MD5 6d67df8d7aebaa4438f1afe49e5cc6bb
BLAKE2b-256 b6b8ac2c3c908c4c30aeb00579cfeb1a7de45b9abf81eacda2b85158352262ef

See more details on using hashes here.

File details

Details for the file xtreyspf-0.1.31-py3-none-any.whl.

File metadata

  • Download URL: xtreyspf-0.1.31-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.7

File hashes

Hashes for xtreyspf-0.1.31-py3-none-any.whl
Algorithm Hash digest
SHA256 eccfab2f397f73cf04da7fe2471741e8342b5cfbb6244dbaaf7d6697a977b9d2
MD5 378b0a38a3482d9166a0942b5d440c97
BLAKE2b-256 db1a299a9d11e6650638cc878302ce9596d2e0978c5c93c7ee3ddeab93e563f3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.31 This release

2 files

0.1.3

2 files

0.1.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page