Skip to main content

pokercore

A poker engine core, in Python

pokercore provides 3 classes to be used in a poker engine. Card (a playing card), Hand (a poker hand consisting of Cards, with evaluation capabilities) and Deck (a deck of Cards).

It is a simple starter, mainly written for exploring purposes, but can be extended and/or used to build something bigger. It is released under the MIT license.

Example

>>> from pokercore import Deck, Hand
>>> deck = Deck()
>>> first = Hand(deck.draw(5))
>>> first
Hand(one pair: Card(9c), Card(9h), Card(Ac), Card(Jh), Card(2h))
>>> second = Hand(deck.draw(5))
>>> second
Hand(high card: Card(As), Card(Kc), Card(9s), Card(7h), Card(4h))
>>> first > second
True

Metadata

Release files for pokercore 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for pokercore 0.1.4
File Size Uploaded Provenance Actions
pokercore-0.1.4.zip 12.2 kB Without provenance Details for pokercore-0.1.4.zip
pokercore-0.1.4.tar.gz 7.2 kB Without provenance Details for pokercore-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pokercore 0.1.4
File Interpreter ABI Platform Actions
pokercore-0.1.4.win32.exe Details for pokercore-0.1.4.win32.exe

Total release size: 226.0 kB

Release files / pokercore-0.1.4.zip

Download URL pokercore-0.1.4.zip
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4a8626969115db46d40369ae2d2b9c058ef58f628469df659e2220fc59620d91
BLAKE2b-256 checksum
How to use checksums
b259e9dbdf8dd3ee77eb87f05580c06731c1e17b8787b36e11e5802a94d3debf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pokercore-0.1.4.tar.gz

Download URL pokercore-0.1.4.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fd28cec8adce8b5268e7b7171856017c528e35635708c35d3340301663599e39
BLAKE2b-256 checksum
How to use checksums
4b73cce64ca45e9969e74236bd63e69941b26aa43c1dcb0123d4016f1e87f296
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pokercore-0.1.4.win32.exe

Download URL pokercore-0.1.4.win32.exe
Size 206.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a55d3feb50de35d6f34f64c06411dcd68fe5421fcf9a700c578c10e4add413dd
BLAKE2b-256 checksum
How to use checksums
b39a4e707540536ba1eb119943b68ecb35f8ad7a14fca0478ed57d05576ccecd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pokercore 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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