Skip to main content

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.

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

Metadata

Release files for emojis 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for emojis 0.7.0
File Size Uploaded
emojis-0.7.0.tar.gz 28.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for emojis 0.7.0
File Interpreter ABI Platform
emojis-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 56.7 kB

Release files / emojis-0.7.0.tar.gz

Download URL emojis-0.7.0.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5f437674da878170239af9a8196e50240b5922d6797124928574008442196b52
BLAKE2b-256 checksum
How to use checksums
39f09ad8cd2d3c0e89dc60f7d6b61f15ff1445935b58ddf6771bcc421b41a174
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / emojis-0.7.0-py3-none-any.whl

Download URL emojis-0.7.0-py3-none-any.whl
Size 28.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a777926d8ab0bfdd51250e899a3b3524a1e969275ac8e747b4a05578fa597367
BLAKE2b-256 checksum
How to use checksums
92fc25e5793c0f6f09626b94444a3b9faf386c587873fa8f696ad20d37e47387
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page