Skip to main content

Emoji Sentiment

A Python package for looking up sentiment scores from the Emoji Sentiment Ranking 1.0 dataset.

image

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.

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)

Source distribution for emoji-sentiment 0.0.6
File Size Uploaded
emoji_sentiment-0.0.6.tar.gz 38.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for emoji-sentiment 0.0.6
File Interpreter ABI Platform
emoji_sentiment-0.0.6-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.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