cards-deck-0.0.3


توضیحات

An example repository for nbdev
ویژگی مقدار
سیستم عامل -
نام فایل cards-deck-0.0.3
نام cards-deck
نسخه کتابخانه 0.0.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Isaac Flath and Jeremy Howard
ایمیل نویسنده info@fast.ai
آدرس صفحه اصلی https://github.com/fastai/cards_deck
آدرس اینترنتی https://pypi.org/project/cards-deck/
مجوز Apache Software License 2.0
Deck of Cards ================ <!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! --> This repo uses code based on [Allen Downey’s](http://allendowney.com/) [ThinkPython2](https://github.com/AllenDowney/ThinkPython2). ## Install After cloning this repository: `pip install -e .` <div> > **Caution** > > This project is an example of how to create python packages with > [nbdev](https://github.com/fastai/nbdev). It’s not a fully-fledged > card dealing library! </div> ## How to use Playing cards in python! ``` python from cards_deck.deck import Deck d = Deck() print(f'Number of playing cards in the deck: {len(d)}') ``` Number of playing cards in the deck: 52 ``` python card = d.pop() card, len(d) ``` (K♠️, 51) See [the docs](https://isaac-flath.github.io/deck_of_cards/) for more info. ### The `draw_cards` cli: We included a handy cli you can use to draw cards as well! ``` python !draw_cards -h ``` usage: draw_cards [-h] [--replace] [--outfile OUTFILE] n Draw `n` cards optionally with replacement positional arguments: n number of cards to draw optional arguments: -h, --help show this help message and exit --replace whether or not draw with replacement (default: False) --outfile OUTFILE output file, defaults to stdout ``` python !draw_cards 10 ``` 5❤️ 6❤️ 10♠️ 4♣️ A♣️ A❤️ 9❤️ 4❤️ K❤️ 3♣️


نیازمندی

مقدار نام
- fastcore
- plotly
- pandas
>=4.2.0 nbformat


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl cards-deck-0.0.3:

    pip install cards-deck-0.0.3.whl


نصب پکیج tar.gz cards-deck-0.0.3:

    pip install cards-deck-0.0.3.tar.gz