♠ A Python module for converting strings into unicode playing cards ♣
Python
Switch branches/tags
Nothing to show
Latest commit 20f11d0 Dec 31, 2014 @lmacken Merge pull request #5 from rshipp/master
Implement a couple feature requests

README.rst

♣ unicards

https://api.travis-ci.org/lmacken/unicards.png?branch=master https://coveralls.io/repos/lmacken/unicards/badge.png?branch=master https://pypip.in/v/unicards/badge.png https://pypip.in/d/unicards/badge.png

A Python module for converting strings into unicode playing cards.

http://lewk.org/img/unicards-4color.png

♠ Installation

pip install unicards

♦ API

>>> from unicards import unicard
>>> print(unicard('As'))
🂡
>>> print(unicard('Jd'))
🃋
>>> print(unicard('Tc'))
🃚
>>> print(unicard('2h'))
🂲
>>> unicard('8d', color=True)
u'\x1b[31m\U0001f0c8\x1b[39m'
>>> unicard('b')
🂠

♥ License

Apache License, Version 2.0