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

>>> emojis.db.get_categories()
['Activity', 'Flags', 'Foods', 'Nature', 'Objects', 'People', 'Places', 'Symbols']

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.3.1.tar.gz (20.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.3.1-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: emojis-0.3.1.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for emojis-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c68a564780fce73ab887c785fd0a04f977a8627532528a526407c43f3ee736fb
MD5 1a01789be8209f1bfd03ecbe39a433cf
BLAKE2b-256 e5c378eff63927d40f385d46de4ea2367906ff8141e172309089f251f210514f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: emojis-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for emojis-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 359c289741b665e1655e9f6545f00cdbe46920e422ccd9cb2690c57a469a4136
MD5 d6f69fcf0b1c2706dd8bee20676937e5
BLAKE2b-256 4643261e405c0d076296f584120fd0600e547787bb82350971682d735ee36c50

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