{ "info": { "author": "Alex Crawford", "author_email": "kebert406@yahoo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Games/Entertainment", "Topic :: Utilities" ], "description": "==============================\nPyDealer: Playing Card Package\n==============================\n\n|pd| is a simple to use Python package for \"simulating\" decks of standard playing cards (also known as a |fd|). PyDealer let's you easily create ``Deck`` instances, each containing a full 52 card deck of playing cards. Each card is a separate ``Card`` instance, with a name, value, suit, and abbreviation. There is also the ``Stack`` class, which is useful for creating hands, or discard piles, etc. It is the backbone of the PyDealer package, and actually the ``Deck`` class is just a subclass of the ``Stack`` class.\n\n|pd| could possibly be used as part of a CLI (command line interface) card-based game, or even a graphical game as well, I suppose. It may also be of interest to beginner Python programmers, since it's a relatively simple package, which I created as a way to learn Python, packaging, testing, documentation (Sphinx), etc. I even ended up learning how to use Git a bit, which I must say was slightly frustrating at first. This package has taught me a lot, and maybe someone else can benefit from it as well. Or maybe not. Either way, here it is.\n\nThe PyDealer package can be found at the `Python Package Index`_, and should be downloaded from there, and, ideally, installed with `pip`_.\n\n**Note to Developers**\n\nIf you want to work on this project, please make sure you are working on the latest version of the `dev branch `_, and make your pull requests to that branch. Thanks.\n\nDocumentation\n=============\n\nFull documentation for PyDealer can be found on readthedocs.org:\n\n`http://pydealer.readthedocs.org/en/latest/ `_\n\n\nQuick Usage Example\n===================\n\nHere is a quick example, using IDLE, demonstrating how to construct a new |deck| instance, representing a full |fd| of cards, as well as how to shuffle the deck, and deal some cards (7 of them) from it, to a hand. Then we'll print a listing of the contents of the hand, in a human readable way, with a simple print statement.\n\n.. code-block:: pycon\n\n >>> import pydealer\n >>> deck = pydealer.Deck()\n >>> deck.shuffle()\n >>> hand = deck.deal(7)\n >>> hand.sort()\n >>> print hand\n 2 of Diamonds\n 5 of Hearts\n 9 of Hearts\n 9 of Spades\n Jack of Spades\n King of Clubs\n Ace of Clubs\n\n\nInstall/Update/Uninstall with `pip`_\n====================================\n\nI recommend downloading and installing `pip`_, if you haven't already, and using that to install PyDealer, from the `Python Package Index`_.\n\nEnter one of the following commands into your \\*nix Bash or Windows Command Prompt (after installing `pip`_).\n\nInstall\n-------\n::\n\n $ pip install pydealer\n\nUpdate\n------\n::\n\n $ pip install pydealer -U\n\nUninstall\n---------\n::\n\n $ pip uninstall pydealer\n\n\nRelevant Links\n==============\n\n.. | `PyDealer Documentation `_\n\n| `Standard 52-card deck Wikipedia Article `_\n| `Playing card Wikipedia Article `_\n\n\n.. Replacement Text/Links\n.. ======================\n\n.. _pip: https://pypi.python.org/pypi/pip/\n.. _Python Package Index: https://pypi.python.org/pypi/pydealer/\n\n.. |pd| replace:: PyDealer\n.. |fd| replace:: French Deck\n\n.. |card| replace:: ``Card``\n.. |deck| replace:: ``Deck``\n.. |stack| replace:: ``Stack``", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/pydealer", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Trebek/pydealer", "keywords": "playing cards deck games french standard 52 poker blackjack", "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "pydealer", "package_url": "https://pypi.org/project/pydealer/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pydealer/", "project_urls": { "Download": "https://pypi.python.org/pypi/pydealer", "Homepage": "https://github.com/Trebek/pydealer" }, "release_url": "https://pypi.org/project/pydealer/1.4.0/", "requires_dist": null, "requires_python": null, "summary": "A package for constructing decks of playing cards, for games.", "version": "1.4.0" }, "last_serial": 1379051, "releases": { "1.2.2": [ { "comment_text": "", "digests": { "md5": "9aa6b0fb87de6e3eba1f6d54188fa2ea", "sha256": "16f796c623533426a674b3f28075ae6216a983d06b136062e3f2ee69ea1a34b5" }, "downloads": -1, "filename": "pydealer-1.2.2.zip", "has_sig": false, "md5_digest": "9aa6b0fb87de6e3eba1f6d54188fa2ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13076, "upload_time": "2014-07-03T22:41:23", "url": "https://files.pythonhosted.org/packages/4c/bd/a9afdb5fa19e96966fee03d6b9a6cef9c827a34a1a469384e7fdb0031f31/pydealer-1.2.2.zip" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "e125527681199fa45b3a4bb18340c512", "sha256": "74a0b4193ea6ecc5400b3a23910ab14ffe441582feb7818a6de77a2eac01273b" }, "downloads": -1, "filename": "pydealer-1.3.0.zip", "has_sig": false, "md5_digest": "e125527681199fa45b3a4bb18340c512", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14464, "upload_time": "2014-07-03T23:20:34", "url": "https://files.pythonhosted.org/packages/b3/2b/486ef3e71fad8d411b435e54a8925d39bff86d041fa03768a9c234a86cd4/pydealer-1.3.0.zip" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "18b9effdc8b30827b5bedc6d2ad41ba3", "sha256": "44bc46baef18bf33f884840eda2098c4741e662e9efe95449aed07c553d81dcf" }, "downloads": -1, "filename": "pydealer-1.4.0.zip", "has_sig": false, "md5_digest": "18b9effdc8b30827b5bedc6d2ad41ba3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38807, "upload_time": "2015-01-12T05:59:46", "url": "https://files.pythonhosted.org/packages/69/4c/308a3350dfbc509cfbf15e305b8cad63debf933e47c3e9f9ca5d497c651c/pydealer-1.4.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "18b9effdc8b30827b5bedc6d2ad41ba3", "sha256": "44bc46baef18bf33f884840eda2098c4741e662e9efe95449aed07c553d81dcf" }, "downloads": -1, "filename": "pydealer-1.4.0.zip", "has_sig": false, "md5_digest": "18b9effdc8b30827b5bedc6d2ad41ba3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38807, "upload_time": "2015-01-12T05:59:46", "url": "https://files.pythonhosted.org/packages/69/4c/308a3350dfbc509cfbf15e305b8cad63debf933e47c3e9f9ca5d497c651c/pydealer-1.4.0.zip" } ] }