🔎 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')])]
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| TopEmoji-0.1.2.tar.gz | 24.3 kB | Without provenance | Details for TopEmoji-0.1.2.tar.gz |
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 |
Security for TopEmoji 0.1.2
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.