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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 027c55a09c5444d6bf1eba1bd605522c052b4bf9f39104347a435439d2e649a3 |
|
MD5 | 856810a0a3c7fb59d61fb30928d69087 |
|
BLAKE2b-256 | 43202ba95c4c58d9e133208160093b4756f522a0c84952cf900f37bd20c5f4b3 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 439e30ba298df36cd6251abd6a6f828201a652cc8529f0021b258710d19b83d7 |
|
MD5 | e57acc20a7d60c75efb17f6ced825347 |
|
BLAKE2b-256 | f4c6b0bbc23782e2a562ddb617e34f2b45ea9ffe59f3222cc04bb453214ffc2e |