Skip to main content

Emojis for Python

Project description

Documentation Status Build Status PyPI PyPI - Python Version

Emojis for Python

About

This library allows you to emojify content such as: This is a message with emojis :smile: :snake:

Emoji database is based on gemoji library.

See the Emoji cheat sheet for more examples.

Example

>>> import emojis

>>> emojis.encode('This is a message with emojis :smile: :snake:')
'This is a message with emojis 😄 🐍'

>>> emojis.decode('This is a message with emojis 😄 🐍')
'This is a message with emojis :smile: :snake:'

>>> emojis.get('Prefix 😄 🐍 😄 🐍 Sufix')
{'😄', '🐍'}

>>> emojis.count('😄 🐍 😄 🐍')
4

>>> emojis.count('😄 🐍 😄 🐍', unique=True)
2

>>> emojis.db.get_emoji_by_alias('snake')
Emoji(aliases=['snake'], emoji='🐍', tags=[], category='Animals & Nature', unicode_version='6.0')

>>> emojis.db.get_categories()
{'Activities', 'Travel & Places', 'Smileys & Emotion', 'Symbols', 'Food & Drink', 'Animals & Nature', 'People & Body', 'Objects', 'Flags'}

Installation

Install emojis with pip.

pip3 install -U emojis

Documentation

https://emojis.readthedocs.io/

Missing or wrong emoji?

This library is based on gemoji database, the official GitHub emoji library for Ruby.

If an emoji is missing or labeled wrongly, report to gemoji project. If gemoji fix it, this library will be updated as soon as there’s a new gemoji release.

All issues complaining about missing emojis will be closed.

All PRs to include custom emojis will be closed.

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

emojis-0.6.0.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

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

emojis-0.6.0-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file emojis-0.6.0.tar.gz.

File metadata

  • Download URL: emojis-0.6.0.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.4.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for emojis-0.6.0.tar.gz
Algorithm Hash digest
SHA256 bf605d1f1a27a81cd37fe82eb65781c904467f569295a541c33710b97e4225ec
MD5 f5dc6c7174fee189e558eb9a71cf1b46
BLAKE2b-256 276387db5712e9c030e48d99a55f06623d48feb38a1adfacc027b0d4ce928a2d

See more details on using hashes here.

File details

Details for the file emojis-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: emojis-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.4.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for emojis-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7da34c8a78ae262fd68cef9e2c78a3c1feb59784489eeea0f54ba1d4b7111c7c
MD5 ba1c4b0d433cc5173a0ee50d1940f3c3
BLAKE2b-256 2e9461025e53488acd95b49862ec854e05b036f92fe9d0e512ca551a5a8b03d6

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