pyCardDeck
Library aimed at anyone who wants to do any kind of deck manipulation in python. So probably game developers. The goal is to have the ultimate library for all of this, supporting all kinds of game types with clean and beautiful API - kind of like requests :)
How to use
First, install with pip:
pip install pyCardDeck
Then use in your code:
import pyCardDeck
my_deck = pyCardDeck.Deck(cards=[1, 2, 3], name='My Awesome Deck')
my_deck.shuffle()
card = my_deck.draw()
For more elaborate examples check out GitHub
Full documentation is available on ReadTheDocs.
For developers
The library supports Python 3.10+.
This library should be very easy to contribute to for first timers. Nothing is sacred, file issues, contribute where you feel it's useful and fun for you! If you need help, just ask.
Always aim to write clean and readable code, make sure the tests are passing, document in docstrings (rst format) and when writing new modules, classes or functions, add them to docs (we are using Sphinx autodocs)
Running tests
To run tests enter the pyCardDeck directory and run:
uv run pytest
Metadata
Release files for pyCardDeck 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycarddeck-1.5.0.tar.gz | 59.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycarddeck-1.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.5 kB
Release files / pycarddeck-1.5.0.tar.gz
| Download URL | pycarddeck-1.5.0.tar.gz |
|---|---|
| Size | 59.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
efda5e43abe3e4bd697cfe5fa03cab165450d314db28759f26e3028948367a43
|
|
BLAKE2b-256 checksum How to use checksums |
25be237bc1b037f87d07bc4b510b518c8e76485538f054e50dcb0ed8182c01f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 13, 2026.
Transparency logRelease files / pycarddeck-1.5.0-py3-none-any.whl
| Download URL | pycarddeck-1.5.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b99764c28bf1df9d4450b369e8aff9aa68399e8f6195865ffb28189a187bcb98
|
|
BLAKE2b-256 checksum How to use checksums |
32acca77c7ec9161099b3b634e38733d80c85410fdc19f2f0b8e25847a111726
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 13, 2026.
Transparency log