Skip to main content

A playing cards package

Project description

cardnacki

Package for working w playing cards

0.1.0 (2024-12-28):

  • introduced breaking changes to Pile
    • initializer no longer requires a type_ attribute
    • all attributes besides 'cards' must now be a kwarg
    • getter now correctly needs to get one of its own cards, instead of constructing new cards from a random deck
    • alternate constructor must now be given a deck, so it doesn't override any props specific to that deck (for example, a SetbackDeck receiving a game_point attribute)
  • potential breaking change to Card
    • removed attribute "game_points"
    • added attribute dict "attributes", which a caller can added as needed

0.0.14 (2024-12-25):

  • added getter for pile to access by rank_suit

0.0.13 (2024-12-25):

  • added pile.PileStats.suit_has_any_ranks

0.0.12 (2024-12-25):

  • added pile.PileStats

0.0.11 (2024-03-13):

  • added back in a hard-coded id attribute

0.0.9 (2024-02-29):

  • added equality method to Card

0.0.6 (2024-01-11):

  • added an attribute for 'rank_full_name' e.g. "King"
  • added an attribute for 'card_full_name' e.g. "Ace of Spades"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cardnacki-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cardnacki-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file cardnacki-0.1.0.tar.gz.

File metadata

  • Download URL: cardnacki-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for cardnacki-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e7adbda7b95a494850bc6f71aa0c78d14894d2c4e38f60f8ca31ca3c69b6d409
MD5 c772c489929f6cd54f1a7bbf05e1846b
BLAKE2b-256 e2676c06498eeda66ae0412723859c61e13e5e6f754ffdda6167ae79712953e1

See more details on using hashes here.

File details

Details for the file cardnacki-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cardnacki-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for cardnacki-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74bb620919dc4349d7faee1141aea81e8495db2057764ff250d428819336e176
MD5 3371536c572cc78af496c6db892a79c5
BLAKE2b-256 d147c464d2b04af2ca593723eb2a29dbf120b76e184ba494a4e2a6be3a48ff85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page