Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Logic for decks with cards

Project Description

Status

License
Versioning
Documentation
Tests
Code Quality

Library aimed at anyone who wants to do any kind of deck manipulation in python. So probably game developers. The goal is to have the ultimate library for all of this, supporting all kinds of game types with clean and beautiful API - kind of like requests :)

How to use

First, install with pip:

pip install pyCardDeck

Then use in your code:

import pyCardDeck

my_deck = pyCardDeck.Deck(cards=[1, 2, 3], name='My Awesome Deck')

my_deck.shuffle()

card = my_deck.draw()

For more elaborate examples check out GitHub

For developers

The library will support Python 3.3+, for requirements look at requirements.txt in the repository.

This library should be very easy to contribute to for first timers. Nothing is sacred, File issues, contribute where you feel it’s useful and fun for you!

Always aim to write clean and readable code, make sure the tests are passing, document in docstrings (rst format) and when writing new modules, classes or functions, add them to docs (we are using Shpinx autodocs)

Running tests

To run tests enter the pyCardDeck directory and run:

py.test tests
Release History

Release History

This version
History Node

1.3.3

History Node

1.3.2

History Node

1.3.1

History Node

1.3.0

History Node

1.2.0

History Node

1.1.2

History Node

1.1.1.0

History Node

1.1.0.dev1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyCardDeck-1.3.3.linux-x86_64.tar.gz (14.0 kB) Copy SHA256 Checksum SHA256 any Dumb Binary Nov 18, 2016
pyCardDeck-1.3.3-py2.py3-none-any.whl (12.3 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Nov 18, 2016
pyCardDeck-1.3.3.tar.gz (12.0 kB) Copy SHA256 Checksum SHA256 Source Nov 17, 2016
pyCardDeck-1.3.3.win-amd64.zip (21.4 kB) Copy SHA256 Checksum SHA256 any Dumb Binary Nov 18, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting