Skip to main content

Substitutes emoji aliases (like :sparkling_heart:) to emoji raw characters.

Project description

Latest Version Build Status Python Versions

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


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.2.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyemojify-0.2.0-py2.py3-none-any.whl (12.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyemojify-0.2.0.tar.gz.

File metadata

  • Download URL: pyemojify-0.2.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyemojify-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6bbc3c8d52e3df3e4039bc0cad3616d3eb579b4c6e15a11bd5e0ef0d579596a9
MD5 5df175192fe507e6f8e13f12cf6dea3b
BLAKE2b-256 1122716933732dca1a6aa0e76775b989bfee8852efe98d047c77879b3ee96386

See more details on using hashes here.

File details

Details for the file pyemojify-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyemojify-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e70e4cfcfe0aed7b5bc64f39b023d5d62a5f5c0c31c1b7114cd43a059fb14a72
MD5 57a1b5f3de051e05faa6214e37d61843
BLAKE2b-256 59f1c7efdd1d7dcf296796d9e68071d5ec8e5b89cad73c2fbd4a6894284c4955

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page