Create and manipulate playing cards in Python!
Project description
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:
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
Built Distribution
File details
Details for the file pyplayingcards-1.2.4.tar.gz
.
File metadata
- Download URL: pyplayingcards-1.2.4.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ce0e9d1237d8476ee9b614a71d329134e496f9111679cae6724127465e5d589 |
|
MD5 | 3205eb7277217697ffa3a7f1396d907b |
|
BLAKE2b-256 | 21a1964d8cb16e7b1ff6d4940ebd4922c45f05b11d431b24e524c6c45603d04d |
File details
Details for the file pyplayingcards-1.2.4-py3-none-any.whl
.
File metadata
- Download URL: pyplayingcards-1.2.4-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c44647cbb9162779b547730a9fa8571d5ff4b47e33aab540daaf3c1c49d298d1 |
|
MD5 | c11c64d89dda82dc0f968c83a4425b75 |
|
BLAKE2b-256 | d727f36809072681efe5b2ddde3b322c5ad7091f6ab061afe7d7966020d99b5a |