For producing a pseudo-randomized list of playing cards (♠️♦️♣️♥️).
Install
$ python -m pip install pcs
$ pipx install pcs
Usage
Outputs the list of cards to the console and optionally to a file.
Package
from pcs import CardShuffle, card_shuffle
import pcs
dealer = CardShuffle() # OR pcs.CardShuffle
dealer.shuffle_cards()
print(dealer.cards_text())
print(card_shuffle())
print(pcs.card_shuffle())
CLI
$ pcs -h
usage: card_shuffle.py [-h] [-w] [-g] [-n] [-c] [-a]
Producing a pseudo-randomized list of playing cards.
options:
-h, --help show this help message and exit
-w, --write Flag to set for writing output to a text file
-g, --gui Flag to set for displaying output using tkinter
-n, --ndo Flag to set for displaying demo using tkinter. Other options are ignored when set.
-c, --cut Flag to set for cutting the deck after the shuffle at a consecutive pair if found.
-a, --arbitrary Flag to set for cutting the deck after the shuffle at a random spot.
Metadata
Release files for pseudo-card-shuffle 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pseudo_card_shuffle-0.0.2.tar.gz | 22.9 kB | Without provenance | Details for pseudo_card_shuffle-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pseudo_card_shuffle-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for pseudo_card_shuffle-0.0.2-py3-none-any.whl |
Total release size: 46.9 kB
Release files / pseudo_card_shuffle-0.0.2.tar.gz
| Download URL | pseudo_card_shuffle-0.0.2.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3520616d4dd01f669e197fd7bc7804255aae6e1d20aa8434837d0743bd7476cb
|
|
BLAKE2b-256 checksum How to use checksums |
bcadd079eddcfec5eda2da149c502db7dd4cd18043e2bce90980c7a11d6300ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / pseudo_card_shuffle-0.0.2-py3-none-any.whl
| Download URL | pseudo_card_shuffle-0.0.2-py3-none-any.whl |
|---|---|
| Size | 24.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b76606cd1dc0dbbc84d3fe6e34a961be448d3b11017c0f711b5e52d5a2e8404c
|
|
BLAKE2b-256 checksum How to use checksums |
d04359292220bac71630340c154369dffec797df5a0031926651f16bb05a81e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for pseudo-card-shuffle 0.0.2
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.