All Projects → lmacken → Unicards

lmacken / Unicards

Licence: apache-2.0
♠ A Python module for converting strings into unicode playing cards ♣

Programming Languages

python
139335 projects - #7 most used programming language

♣ unicards

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

A Python module for converting strings into unicode playing cards <https://en.wikipedia.org/wiki/Unicode_Playing_Card_Block>_.

.. image:: 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 <http://www.apache.org/licenses/LICENSE-2.0>_

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].