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:

See the Emoji cheat sheet for more aliases.

Emoji database based on gemoji.

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')

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: emojis-0.4.0.tar.gz
  • Upload date:
  • Size: 23.9 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.4.0.tar.gz
Algorithm Hash digest
SHA256 da0098fdaf0ef6a7ce796bfe373e39e96bf4f60affd4169cf6e49a6ed386ca3d
MD5 f2c0fda34feccf24948b0e8c3a2b7be6
BLAKE2b-256 ee0649eaa674ab0823147d4e357f2dd6d53a7e3144cd64fbe6c7931f00040144

See more details on using hashes here.

File details

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

File metadata

  • Download URL: emojis-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 25.1 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f212a6a8ee604b9a1bd3aec8e14dc078ac89d966110a1568bf1da23f99508b7
MD5 9a075be02d4d384f3f27d2dbaac9b48b
BLAKE2b-256 682870413aca23b584088b69109cde1bf35add8cf1479ba12e6316ee44b365c8

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