# nbdev_cards
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
A deck of cards demo of [nbdev](https://nbdev.fast.ai) based on ideas
from Think Python 2e
## Install
Install with pip:
``` sh
pip install nbdev-cards
```
or:
``` sh
conda install -c fastai nbdev-cards
```
## How to use
This lib provides a
[`Card`](https://gkteco.github.io/nbdev_cards/card.html#card) class you
can use to create, display, and compare playing cards:
``` python
c = Card(suit=1, rank=1)
```
``` python
c
```
Card(rank=A, suit=dimonds)
Suits are numbered according to this list:
``` python
suits
```
['spades', 'dimonds', 'hearts', 'clovers']
and these ranks:
``` python
ranks
```
[None, 'A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K']
Raw data
{
"_id": null,
"home_page": "https://github.com/__token__/nbdev_cards",
"name": "nbdev-playground-test",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "nbdev jupyter notebook python",
"author": "gianni crivello",
"author_email": "gianni.crivello96@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/df/18/77056f121d76a8bf6953f02755be8d2126d4b7c6afb2bf3f224ea5cb5942/nbdev_playground_test-0.0.1.tar.gz",
"platform": null,
"description": "# nbdev_cards\n\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\nA deck of cards demo of [nbdev](https://nbdev.fast.ai) based on ideas\nfrom Think Python 2e\n\n## Install\n\nInstall with pip:\n\n``` sh\npip install nbdev-cards\n```\n\nor:\n\n``` sh\nconda install -c fastai nbdev-cards\n```\n\n## How to use\n\nThis lib provides a\n[`Card`](https://gkteco.github.io/nbdev_cards/card.html#card) class you\ncan use to create, display, and compare playing cards:\n\n``` python\nc = Card(suit=1, rank=1)\n```\n\n``` python\nc\n```\n\n Card(rank=A, suit=dimonds)\n\nSuits are numbered according to this list:\n\n``` python\nsuits\n```\n\n ['spades', 'dimonds', 'hearts', 'clovers']\n\nand these ranks:\n\n``` python\nranks\n```\n\n [None, 'A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K']\n",
"bugtrack_url": null,
"license": "Apache Software License 2.0",
"summary": "This is a test project",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/__token__/nbdev_cards"
},
"split_keywords": [
"nbdev",
"jupyter",
"notebook",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f36905609b8e696a139b056d90f02b96d58e4c357e3299a28c0e7fc1187b0a25",
"md5": "68d9e09f610897334db78baa0937264d",
"sha256": "3473b96240edca60ed387a8c46ef9748ea00bf75d5c7064031d66de7f1ba451d"
},
"downloads": -1,
"filename": "nbdev_playground_test-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "68d9e09f610897334db78baa0937264d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 7955,
"upload_time": "2024-08-04T00:14:20",
"upload_time_iso_8601": "2024-08-04T00:14:20.000534Z",
"url": "https://files.pythonhosted.org/packages/f3/69/05609b8e696a139b056d90f02b96d58e4c357e3299a28c0e7fc1187b0a25/nbdev_playground_test-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "df1877056f121d76a8bf6953f02755be8d2126d4b7c6afb2bf3f224ea5cb5942",
"md5": "5368eee46103bd7551172faa7c06b854",
"sha256": "af07a8ebe92b0193b3819208eff21aaa34607c7eb2aac71a44137b14ef8e8046"
},
"downloads": -1,
"filename": "nbdev_playground_test-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "5368eee46103bd7551172faa7c06b854",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 8270,
"upload_time": "2024-08-04T00:14:21",
"upload_time_iso_8601": "2024-08-04T00:14:21.557890Z",
"url": "https://files.pythonhosted.org/packages/df/18/77056f121d76a8bf6953f02755be8d2126d4b7c6afb2bf3f224ea5cb5942/nbdev_playground_test-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-04 00:14:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "__token__",
"github_project": "nbdev_cards",
"github_not_found": true,
"lcname": "nbdev-playground-test"
}