Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lord63/pyemojify
Substitutes emoji aliases to emoji raw characters. Simple but sweet :smile:
https://github.com/lord63/pyemojify
Last synced: 24 days ago
JSON representation
Substitutes emoji aliases to emoji raw characters. Simple but sweet :smile:
- Host: GitHub
- URL: https://github.com/lord63/pyemojify
- Owner: lord63
- License: mit
- Created: 2015-08-10T11:18:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-21T14:57:26.000Z (almost 9 years ago)
- Last Synced: 2024-11-10T02:28:47.062Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 35
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - pyemojify - Substitutes emoji aliases to emoji raw characters. Simple but sweet :smile: (Python)
README
# Pyemojify
[![Latest Version][1]][2]
[![Build Status][3]][4]
[![Python Versions][5]][2]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
[emojify]: https://github.com/mrowa44/emojify
[mrowa44]: https://github.com/mrowa44
[1]: http://img.shields.io/pypi/v/pyemojify.svg
[2]: https://pypi.python.org/pypi/pyemojify
[3]: https://travis-ci.org/lord63/pyemojify.svg
[4]: https://travis-ci.org/lord63/pyemojify
[5]: https://img.shields.io/pypi/pyversions/pyemojify.svg