Skip to main content

provides `string.emojis` (all emoji chars from

Project description

emoji entities

This module downloads the latest list of emoji characters from and adds string.emojis, a concatenated str containing all characters, to be used just as the other string entities (e.g. string.letters).




  • using pip or similar:
pip install emojientities
  • manually:

    • Clone this repository
    git clone
    • Change to the cloned directory
    • Use the Python setuptools to install the package:
    python ./ install


This module extends the character classes provided by the string standard library to include an emoji range. To use it, import emojientities and string and use string.emojis to, for instance, filter emojis in a text:

import emojientities
import string

# example string from: Hiippala et al. (2018) Exploring the linguistic landscape of 
# geotagged social media content in urban environments. Digital Scholarship in the Humanities.
photoCaption = "Great weather in Helsinki!!! On holiday with @username.:-) #helsinki #visitfinland 🤓☀️🛳️"

emojisOnly = "".join(
    [c for c in photoCaption if c in string.emojis]
# '🤓☀️🛳️'

photoCaptionWithoutEmojis = "".join(
    [c for c in photoCaption if c not in string.emojis]
# 'Great weather in Helsinki!!! On holiday with @username.:-) #helsinki #visitfinland '

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

emojientities-0.1.6.tar.gz (32.1 kB view hashes)

Uploaded Source

Built Distribution

emojientities-0.1.6-py3-none-any.whl (22.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page