Substitutes emoji aliases (like :sparkling_heart:) to emoji raw characters.
Project description
Substitutes emoji aliases to emoji raw characters. Simple but sweet :smile:
Installation
$ pip install pyemojify
Usage
CLI
Use pyemojify -t text, for example:
$ pyemojify -t "Life is short :smile: , use :sparkles: Python :sparkles:" Life is short 😄 , use ✨ Python ✨.
Pyemojify also support pipeline, for example:
$ echo "Life is short :smile: , use :sparkles: Python :sparkles:" | pyemojify Life is short 😄 , use ✨ Python ✨.
This one is very useful for git commit messages, use the following one and you’ll see you emoji friends again!
$ git log --oneline --color | pyemojify | less
API
>>> from pyemojify import emojify >>> text = emojify("Life is short :smile: , use :sparkles: Python :sparkles:") >>> print text Life is short 😄 , use ✨ Python ✨.
Credits
It’s a python port of the original emojify, all the glories should belong to mrowa44.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyemojify-0.1.0.tar.gz
(11.4 kB
view hashes)