pkpython 0.1.0__cp311-cp311-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pkpy/__init__.py ADDED
@@ -0,0 +1,129 @@
1
+ """
2
+ pkpy — Python bindings for the pkcore Rust poker analysis library.
3
+
4
+ Provides card types, hand evaluation, and Texas Hold'em game simulation.
5
+
6
+ Basic usage::
7
+
8
+ from pkpy import Card, Cards, HoleCards, Board, Game, Outs
9
+
10
+ # Parse individual cards
11
+ ace = Card.parse("As")
12
+ king = Card.parse("Kh")
13
+
14
+ # Build a game and calculate outs
15
+ hc = HoleCards.parse("As Kh 8d Kc")
16
+ board = Board.parse("Ac 8h 7h 9s")
17
+ game = Game(hc, board)
18
+ outs = Outs.from_case_evals(game.turn_case_evals())
19
+ print(f"Player 1 outs: {outs.len_for_player(1)}")
20
+ print(f"Player 2 outs: {outs.len_for_player(2)}")
21
+ """
22
+
23
+ from pkpy._pkpy import (
24
+ KuhnCard,
25
+ KuhnAction,
26
+ KuhnHistory,
27
+ KuhnInfoSet,
28
+ KuhnState,
29
+ KuhnStrategy,
30
+ KuhnCfr,
31
+ Bard,
32
+ Board,
33
+ Card,
34
+ Cards,
35
+ CaseEvals,
36
+ Combo,
37
+ ComboPairs,
38
+ Combos,
39
+ Dealer,
40
+ Deck,
41
+ Eval,
42
+ FlopEval,
43
+ ForcedBets,
44
+ Game,
45
+ HandRank,
46
+ HandRankClass,
47
+ HoleCards,
48
+ HUPResult,
49
+ IndexCardMap,
50
+ Outs,
51
+ Player,
52
+ PlayerState,
53
+ Pluribus,
54
+ PluribusEvent,
55
+ Qualifier,
56
+ Rank,
57
+ SeatEquity,
58
+ Seatbit,
59
+ SevenFiveBCM,
60
+ Stack,
61
+ Suit,
62
+ TableAction,
63
+ TableLog,
64
+ TurnEval,
65
+ Two,
66
+ Twos,
67
+ Versus,
68
+ PotWin,
69
+ WinLoseDraw,
70
+ Winnings,
71
+ unique_2_card_hands,
72
+ unique_5_card_hands,
73
+ distinct_2_card_hands,
74
+ distinct_5_card_hands,
75
+ )
76
+
77
+ __all__ = [
78
+ "KuhnCard",
79
+ "KuhnAction",
80
+ "KuhnHistory",
81
+ "KuhnInfoSet",
82
+ "KuhnState",
83
+ "KuhnStrategy",
84
+ "KuhnCfr",
85
+ "Bard",
86
+ "Board",
87
+ "Card",
88
+ "Cards",
89
+ "CaseEvals",
90
+ "Combo",
91
+ "ComboPairs",
92
+ "Combos",
93
+ "Dealer",
94
+ "Deck",
95
+ "Eval",
96
+ "FlopEval",
97
+ "ForcedBets",
98
+ "Game",
99
+ "HandRank",
100
+ "HandRankClass",
101
+ "HoleCards",
102
+ "HUPResult",
103
+ "IndexCardMap",
104
+ "Outs",
105
+ "Player",
106
+ "PlayerState",
107
+ "Pluribus",
108
+ "PluribusEvent",
109
+ "Qualifier",
110
+ "Rank",
111
+ "SeatEquity",
112
+ "Seatbit",
113
+ "SevenFiveBCM",
114
+ "Stack",
115
+ "Suit",
116
+ "TableAction",
117
+ "TableLog",
118
+ "TurnEval",
119
+ "Two",
120
+ "Twos",
121
+ "Versus",
122
+ "PotWin",
123
+ "WinLoseDraw",
124
+ "Winnings",
125
+ "unique_2_card_hands",
126
+ "unique_5_card_hands",
127
+ "distinct_2_card_hands",
128
+ "distinct_5_card_hands",
129
+ ]
Binary file