https://github.com/lmacken/unicards
♠ A Python module for converting strings into unicode playing cards ♣
https://github.com/lmacken/unicards
Last synced: 10 months ago
JSON representation
♠ A Python module for converting strings into unicode playing cards ♣
- Host: GitHub
- URL: https://github.com/lmacken/unicards
- Owner: lmacken
- License: apache-2.0
- Created: 2013-07-22T01:52:43.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T21:27:46.000Z (almost 3 years ago)
- Last Synced: 2024-10-14T00:57:46.123Z (about 1 year ago)
- Language: Python
- Homepage: https://pypi.python.org/pypi/unicards
- Size: 38.1 KB
- Stars: 47
- Watchers: 5
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
♣ 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://img.shields.io/pypi/v/unicards.svg
:target: https://crate.io/packages/unicards
.. image:: https://img.shields.io/pypi/dm/unicards.svg
:target: https://crate.io/packages/unicards
A Python module for converting strings into `unicode playing cards `_.
.. 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 `_