{"id":45799,"library":"pokerkit","title":"PokerKit","description":"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.","status":"active","version":"0.7.4","language":"python","source_language":"en","source_url":"https://github.com/uoftcprg/pokerkit","tags":["poker","game-simulation","hand-evaluation","statistics"],"install":[{"cmd":"pip install pokerkit","lang":"bash","label":"pip install"}],"dependencies":[],"imports":[{"wrong":"from pokerkit import Game","symbol":"ACPCProtocolParser","correct":"from pokerkit import ACPCProtocolParser"},{"symbol":"Automation","correct":"from pokerkit import Automation"},{"symbol":"Card","correct":"from pokerkit import Card"}],"quickstart":{"code":"from pokerkit import Game, Hand, Deck\n\n# Create a game (Texas Hold'em, 6 players, fixed limit)\ngame = Game('holdem', 6)\n\n# Simulate a round\ndeck = Deck()\ndeck.shuffle()\nboard = deck.draw(5)\nhands = [deck.draw(2) for _ in range(6)]\n\n# Evaluate hands\nresults = [Hand.evaluate(board, hand) for hand in hands]\nprint(results)\n","lang":"python","description":"Create a Texas Hold'em game, simulate a round with a board and player hands, then evaluate hand strengths."},"warnings":[{"fix":"Create separate Game instances per thread or use threading locks.","message":"The `Game` object is not thread-safe; do not share between threads without external locks.","severity":"gotcha","affected_versions":"all"},{"fix":"Update code to unpack the tuple: `rank, _ = Hand.evaluate(board, hand)`","message":"In 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.","severity":"breaking","affected_versions":">=0.7.0"},{"fix":"Always call `deck.shuffle()` before drawing cards.","message":"The `Deck` class now requires explicit shuffling; `Deck.shuffle()` must be called before drawing. In earlier versions, drawing after creation automatically shuffled.","severity":"deprecated","affected_versions":">=0.6.0"}],"env_vars":null,"search_vec":"'0.7.4':19 '3.11':22 'activ':23 'analysi':16 'current':17 'develop':24 'evalu':13,34 'game':10,30 'game-simul':29 'hand':12,33 'hand-evalu':32 'librari':7 'open':4 'open-sourc':3 'poker':9,28 'pokerkit':1 'python':6,21 'regular':26 'releas':27 'requir':20 'simul':11,31 'sourc':5 'statist':15,35 'version':18","created_at":"2026-06-07T12:56:47.244436+00:00","updated_at":"2026-06-07T12:56:47.244436+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/uoftcprg/pokerkit","github":"https://github.com/uoftcprg/pokerkit","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["analytics","ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}