emoji entities
This module downloads the latest list of emoji characters from unicode.org and adds string.emojis, a concatenated str containing all characters, to be used just as the other string entities (e.g. string.letters).
Dependencies
requests
Installation
- using
pipor similar:
pip install emojientities
-
manually:
- Clone this repository
git clone https://gitlab.com/christoph.fink/python-emojientities.git
- Change to the cloned directory
- Use the Python
setuptoolsto install the package:
python ./setup.py install
Usage
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 '
Metadata
Release files for emojientities 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| emojientities-0.1.6.tar.gz | 32.1 kB | Without provenance | Details for emojientities-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| emojientities-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for emojientities-0.1.6-py3-none-any.whl |
Total release size: 54.4 kB
Release files / emojientities-0.1.6.tar.gz
| Download URL | emojientities-0.1.6.tar.gz |
|---|---|
| Size | 32.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd0d130c5597a157dc652f9202ee0bfcf4a1053dda92a9400e4ceee34ec5967d
|
|
BLAKE2b-256 checksum How to use checksums |
ea807fce59d0378cbc997caca3e6d1f340db1d465f092671e243167b0bd1d002
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
|
Release files / emojientities-0.1.6-py3-none-any.whl
| Download URL | emojientities-0.1.6-py3-none-any.whl |
|---|---|
| Size | 22.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64c1780b0885aa20a2be3528baab71fa02dcf1996dc1a920c422f438564f6580
|
|
BLAKE2b-256 checksum How to use checksums |
ea8b2756363b73d6679f29cf2e9ca648776108d3a928545d0280d77ea36eed6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
|
Security for emojientities 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.