Skip to main content

An example repository for nbdev

Project description

Deck of Cards

This repo uses code from Allen Downey’s ThinkPython2.

Install

After cloning this repository:

pip install -e .

There is already a project called deck_of_cards on pypi. This project has no relation to that. This project is an example of how to create python packages with nbdev.

How to use

Playing cards in python!

from deck_of_cards.deck import Deck
d = Deck()
print(f'Number of playing cards in the deck: {len(d.cards)}')
Number of playing cards in the deck: 52
card = d.pop_card()
print(card)
King of Spades

See the docs for more info.

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

hamel_deck_of_cards-0.0.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

hamel_deck_of_cards-0.0.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file hamel_deck_of_cards-0.0.1.tar.gz.

File metadata

  • Download URL: hamel_deck_of_cards-0.0.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for hamel_deck_of_cards-0.0.1.tar.gz
Algorithm Hash digest
SHA256 027c55a09c5444d6bf1eba1bd605522c052b4bf9f39104347a435439d2e649a3
MD5 856810a0a3c7fb59d61fb30928d69087
BLAKE2b-256 43202ba95c4c58d9e133208160093b4756f522a0c84952cf900f37bd20c5f4b3

See more details on using hashes here.

File details

Details for the file hamel_deck_of_cards-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: hamel_deck_of_cards-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for hamel_deck_of_cards-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 439e30ba298df36cd6251abd6a6f828201a652cc8529f0021b258710d19b83d7
MD5 e57acc20a7d60c75efb17f6ced825347
BLAKE2b-256 f4c6b0bbc23782e2a562ddb617e34f2b45ea9ffe59f3222cc04bb453214ffc2e

See more details on using hashes here.

Supported by

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