Emoji Sentiment
A Python package for looking up sentiment scores from the Emoji Sentiment Ranking 1.0 dataset.
The package provides a score from -1 (negative) to 1 (positive), together
with the emoji name, character, short names, and sample count. Scores come from
the bundled research dataset; the package does not run a predictive model.
Installation
Requires Python 3.14 or newer.
pip install emoji-sentiment
Usage
from emoji_sentiment import EmojiSentiment
emoji_sentiment = EmojiSentiment()
smile_emoji = emoji_sentiment.get("smile")
print(smile_emoji)
get() is case-insensitive and returns None when the short name is unknown or
not present in the dataset. Use emoji_sentiment.all to retrieve all 969
entries.
Demo
uv run --extra demo streamlit run examples/streamlit_demo.py
Development
Install the locked development environment:
uv sync --locked --dev
Run tests and lint checks:
uv run pytest --cov=emoji_sentiment --cov-report=term-missing -v tests
uv run pylint src/emoji_sentiment tests/test_emoji_sentiment.py tests/smoke_test.py
Build and validate the distribution archives:
uv build
uv run twine check --strict dist/*
Data source and license
The bundled Emoji_Sentiment_Data_v1.0.csv is from:
Kralj Novak, Petra; Smailović, Jasmina; Sluban, Borut; and Mozetič, Igor (2015), Emoji Sentiment Ranking 1.0, Slovenian language resource repository CLARIN.SI, ISSN 2820-4042.
- Resource: http://hdl.handle.net/11356/1048
- Paper: https://doi.org/10.1371/journal.pone.0144296
- Dataset license: Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
The package source code is licensed under the MIT License in LICENSE. The
bundled dataset remains under CC BY-SA 4.0. See
https://github.com/wei840222/emoji-sentiment/blob/main/NOTICE.md for full
attribution and third-party licensing details.
Metadata
Release files for emoji-sentiment 0.0.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 |
|---|---|---|---|---|
| emoji_sentiment-0.0.6.tar.gz | 38.9 kB | With provenance | Details for emoji_sentiment-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| emoji_sentiment-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for emoji_sentiment-0.0.6-py3-none-any.whl |
Total release size: 75.9 kB
Release files / emoji_sentiment-0.0.6.tar.gz
| Download URL | emoji_sentiment-0.0.6.tar.gz |
|---|---|
| Size | 38.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb62962ceb12c41fab69775192ebb5144249cbfb1a30c4edb011e3b735c0ba85
|
|
BLAKE2b-256 checksum How to use checksums |
357cf066ee672cef88bc21e4a520a6a7c11be09f82bdd6ad54ad67eb19557aa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.
Transparency logRelease files / emoji_sentiment-0.0.6-py3-none-any.whl
| Download URL | emoji_sentiment-0.0.6-py3-none-any.whl |
|---|---|
| Size | 37.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab79c724ede770c34c40aae886cb92c5e72210a530f8e91b3f3806d67aecfb0d
|
|
BLAKE2b-256 checksum How to use checksums |
67decde8c15a181e5987327f6f3e46352ef77fb144515d3d327a6f28e0907a7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.
Transparency logSecurity for emoji-sentiment 0.0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for emoji_sentiment-0.0.6.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.
Transparency logA 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.