Skip to main content

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.

Metadata

Release files for hamel-deck-of-cards 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hamel-deck-of-cards 0.0.1
File Size Uploaded Provenance
hamel_deck_of_cards-0.0.1.tar.gz 8.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hamel-deck-of-cards 0.0.1
File Interpreter ABI Platform
hamel_deck_of_cards-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.0 kB

Release files / hamel_deck_of_cards-0.0.1.tar.gz

Download URL hamel_deck_of_cards-0.0.1.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
027c55a09c5444d6bf1eba1bd605522c052b4bf9f39104347a435439d2e649a3
BLAKE2b-256 checksum
How to use checksums
43202ba95c4c58d9e133208160093b4756f522a0c84952cf900f37bd20c5f4b3
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / hamel_deck_of_cards-0.0.1-py3-none-any.whl

Download URL hamel_deck_of_cards-0.0.1-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
439e30ba298df36cd6251abd6a6f828201a652cc8529f0021b258710d19b83d7
BLAKE2b-256 checksum
How to use checksums
f4c6b0bbc23782e2a562ddb617e34f2b45ea9ffe59f3222cc04bb453214ffc2e
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for hamel-deck-of-cards 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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