Skip to main content

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:

https://github.com/DaJodhi/pyplayingcards

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

pyplayingcards-1.2.4.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

pyplayingcards-1.2.4-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

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