Skip to main content

pyplayingcards

Repository for the pyplayingcards module on PyPi.

This module allows you to create and modify playing card objects in Python. With only the standard library modules random and functools as dependencies, the pyplayingcards module is an easy-to-use, well documented way of adding playing cards to your code.

As this is a simple project, the documentation is within the code itself. Feel free to fork, clone, copy and use any of the code in the module. For more information, see the LICENSE file on the GitHub page.

I learnt a lot of good coding practices from this project, and I hope it will help you have an easier time doing whatever card thing you're doing. Enjoy!

Installation:

pip install pyplayingcards

How to use, basics:

There are three classes in the pyplayingcards module:

PlayingCard

PlayingCards

Deck

All three of these classes are relatively simple to use. The PlayingCard class defines a simple class for normal playing cards.

The PlayingCards class defines either a randomly generated list of PlayingCard objects or a user-defined list of PlayingCard objects, with various other features.

A Deck is inherits from the PlayingCards class, but with the default values of a normal deck of cards and other methods.

For an actual understanding of the inner-workings of the pyplayingcards module, it is recommended that you look at the source code on the GitHub page, as it has more documentation than actual code.

Happy coding!

The GitHub page I keep talking about:

https://github.com/DaJodhi/pyplayingcards

Release files for pyplayingcards 1.2.4

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

Source distribution (sdist)

Source distribution for pyplayingcards 1.2.4
File Size Uploaded
pyplayingcards-1.2.4.tar.gz 4.7 kB Details

Built distribution (wheel)

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

Total release size: 10.0 kB

Release files / pyplayingcards-1.2.4.tar.gz

Download URL pyplayingcards-1.2.4.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9ce0e9d1237d8476ee9b614a71d329134e496f9111679cae6724127465e5d589
BLAKE2b-256 checksum
How to use checksums
21a1964d8cb16e7b1ff6d4940ebd4922c45f05b11d431b24e524c6c45603d04d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

Release files / pyplayingcards-1.2.4-py3-none-any.whl

Download URL pyplayingcards-1.2.4-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c44647cbb9162779b547730a9fa8571d5ff4b47e33aab540daaf3c1c49d298d1
BLAKE2b-256 checksum
How to use checksums
d727f36809072681efe5b2ddde3b322c5ad7091f6ab061afe7d7966020d99b5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

1.2.4 This release

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.0.3

2 release files

1.0.2

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