lord63 / pyemojify

Substitutes emoji aliases to emoji raw characters. Simple but sweet :smile:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pyemojify

Latest Version Build Status Python Versions

Substitutes emoji aliases to emoji raw characters. Simple but sweet πŸ˜„

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

About

Substitutes emoji aliases to emoji raw characters. Simple but sweet :smile:

License:MIT License


Languages

Language:Python 99.7%Language:Makefile 0.3%