Skip to main content

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'}]

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)

Source distribution for CardDeckPy 2.1.0
File Size Uploaded
CardDeckPy-2.1.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for CardDeckPy 2.1.0
File Interpreter ABI Platform
CardDeckPy-2.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

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