Skip to main content

PyPI version PyPI pyversions PyPI license

🔎 the most similar 😀s in 🐍3️⃣.

  • This is an application of TopSim, which searches the most similar strings against the query in Python 3.

Installation

This package is available on PyPI. Just use pip3 install -U TopEmoji to install it.

CLI Usage

You can simply use the algorithm on terminal.

Usage:
    topemoji-cli <query> [-k <k>]
  • Each emoji and its description and similarity, are printed to terminal and separated by tab character \t.
topemoji-cli "baby" -k 5
👶	baby	1.0
👼	baby angel	0.666
🐤	baby chick	0.666
🍼	baby bottle	0.6659
🚼	baby symbol	0.6659
  • You can also use emoji as query.
topemoji-cli "😀" -k 5
😀	grinning face	1.0
😆	grinning squinting face	0.9993
😺	grinning cat face	0.9331
😅	grinning face with sweat	0.866
😃	grinning face with big eyes	0.8659

API Usage

Alternatively, you can use the algorithm via API.

from topemoji import search

print(search("baby", k=5)) # Return each similarity and the respective emojis.
# [(1.0, [('👶', 'baby')]),
#  (0.6660006660006661, [('👼', 'baby angel'), ('🐤', 'baby chick')]),
#  (0.665889795238888, [('🍼', 'baby bottle'), ('🚼', 'baby symbol')])]

Release files for TopEmoji 0.1.2

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

Source distribution (sdist)

Source distribution for TopEmoji 0.1.2
File Size Uploaded
TopEmoji-0.1.2.tar.gz 24.3 kB Details

Release files / TopEmoji-0.1.2.tar.gz

Download URL TopEmoji-0.1.2.tar.gz
Size 24.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ec56692bae36e0b04c362004eba0733ff89702d6d72acc186fff5e79fc33009b
BLAKE2b-256 checksum
How to use checksums
8177374122a08930901d1c37cc75cf676ceda50400100a71b8f84b57b2894653
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

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