Registry / analytics / pokerkit

pokerkit

JSON →
library0.7.4pypypi✓ verified 84d ago

An open-source Python library for poker game simulations, hand evaluations, and statistical analysis. Current version 0.7.4, requires Python >=3.11. Active development with regular releases.

pip install pokerkit
INSTALL
IMPORT
SIG · POKERKIT
P
pokerkit
analyticspythonv0.7.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ACPCProtocolParser
✓ from pokerkit import ACPCProtocolParser
✗ from pokerkit import Game
Automation
✓ from pokerkit import Automation
Card
✓ from pokerkit import Card

Create a Texas Hold'em game, simulate a round with a board and player hands, then evaluate hand strengths.

from pokerkit import Game, Hand, Deck # Create a game (Texas Hold'em, 6 players, fixed limit) game = Game('holdem', 6) # Simulate a round deck = Deck() deck.shuffle() board = deck.draw(5) hands = [deck.draw(2) for _ in range(6)] # Evaluate hands results = [Hand.evaluate(board, hand) for hand in hands] print(results)
Debug
Known issues
gotchaThe `Game` object is not thread-safe; do not share between threads without external locks.
fix
Create separate Game instances per thread or use threading locks.
affects: all
breakingIn version 0.7.0, the `Hand.evaluate()` method was changed to return a tuple instead of a single value. Old code expecting a scalar may break.
fix
Update code to unpack the tuple: `rank, _ = Hand.evaluate(board, hand)`
affects: >=0.7.0
deprecatedThe `Deck` class now requires explicit shuffling; `Deck.shuffle()` must be called before drawing. In earlier versions, drawing after creation automatically shuffled.
fix
Always call `deck.shuffle()` before drawing cards.
affects: >=0.6.0
Upgrade
Version history
0.7.4latest on PyPI · released May 22, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
OpenAI (training)
1
Resources
pokerkit — pip install pokerkit · libregistry