PyCardDeck
PyCardDeck is a python library for working with card decks, cards and hands in python.
Create Cards
from PyCardDeck import Card
ace_spades = Card(14, 'Ace', 'Spades')
print(ace_spades)
print(ace_spades.val)
print(ace_spades.name)
print(ace_spades.suit)
# Output: Ace of Spades
# 14
# Ace
# Spades
Create a Deck
from PyCardDeck import Deck
deck = Deck([]) # the deck is currently empty
print(deck) # output []
Create a Deck with Cards
from PyCardDeck import Deck, Card
ace_spades = Card(14, 'Ace', 'Spades')
king_spades = Card(13, 'King', 'Spades')
deck = Deck([ace_spades, king_spades])
# Output: [{'value': 13, 'name': 'King', 'suit': 'Spades'}, {'value': 14, 'name': 'Ace', 'suit': 'Spades'}]
Metadata
Release files for CardDeckPy 2.1.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 | Provenance | Actions |
|---|---|---|---|---|
| CardDeckPy-2.1.0.tar.gz | 3.5 kB | Without provenance | Details for CardDeckPy-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| CardDeckPy-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for CardDeckPy-2.1.0-py3-none-any.whl |
Total release size: 7.8 kB
Release files / CardDeckPy-2.1.0.tar.gz
| Download URL | CardDeckPy-2.1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0ea6ba2ecb7bcce09c476100406a59da3c1e1a77a2bda29eb530660dde14172
|
|
BLAKE2b-256 checksum How to use checksums |
1f668db22d4a13a4fd9a7445903057c000dbfc6dc51fae222e66e36359ce869c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.2 importlib-metadata/3.10.1 keyring/21.8.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
|
Release files / CardDeckPy-2.1.0-py3-none-any.whl
| Download URL | CardDeckPy-2.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31af939951c536466b1dbc9715fa2f22817825eeaff302ac2de974d84df32df6
|
|
BLAKE2b-256 checksum How to use checksums |
371efcb7309e885b4ed83e50a24e8ceab3961759da3d7e8fcae98e458220e6f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.2 importlib-metadata/3.10.1 keyring/21.8.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
|
Security for CardDeckPy 2.1.0
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.