Skip to main content

Emojis for Python

Project description

Emojis for Python

About

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

Emoji database 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/

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.5.1.tar.gz (25.1 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.5.1-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: emojis-0.5.1.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for emojis-0.5.1.tar.gz
Algorithm Hash digest
SHA256 30d0b317fc9ab70b6acdc752a1ed481b2d278f7ca7c68aef222e4cd833e5de7f
MD5 4b98760fc00e6a21261f163132e06d92
BLAKE2b-256 da56cac3edefdf2ccd9204117996de6e561c5bfcaa6cb4d593cea4d25ee98e76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: emojis-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for emojis-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a719391df2de34689ce47d78bb302b0f0dc24656b4f83f501725de7b0ee621ee
MD5 80fd04ebfeb3f82a0f0fb717500c54f4
BLAKE2b-256 a5baf2b469dd55e5acdd25167cb23b5270a8d8b9ceed038b033af37de1266afb

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