No project description provided
Project description
Emojit
This package aims to address a long-standing Python issue:
int("1️⃣") != 1
Usage
from emojit import emj
emoji_str = emj("4️⃣0️⃣2️⃣")
assert isinstance(emoji_str, str) is True
assert int(emoji_str) == 402
Please, don't actually use it.
Advanced usage
Underscores as visual separators
from emojit import emj
assert int(emj("4️⃣0️⃣2️⃣_0️⃣0️⃣0️⃣")) == 402_000
Shorthand emojis
from emojit import emj
assert int(emj("🔟")) == int(emj("1️⃣0️⃣"))
assert int(emj("💯")) == int(emj("1️⃣0️⃣0️⃣"))
Support
This package is considered feature complete. It will be archived once the functionality is upstreamed into Python standard library.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
emojit-0.1.0.tar.gz
(2.0 kB
view details)
Built Distribution
File details
Details for the file emojit-0.1.0.tar.gz
.
File metadata
- Download URL: emojit-0.1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f40e7ca16f74d87a7a57a168c97da49ecb36a87f53d0e4a9594e28e3fe1ffa9 |
|
MD5 | d4fd81888d42830097e211a39feb6a80 |
|
BLAKE2b-256 | 216ddf5785c240fa6c78a98d8ca700c9a54e7ea68a28d4098a2d92ca092f23e2 |
File details
Details for the file emojit-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: emojit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac06548e86d8c9e04e11d73ab5664da36f76ea263cd0018d21ad6a07bc5b33f |
|
MD5 | 1d6d935b7635716abb8db27cd17d8186 |
|
BLAKE2b-256 | 568a4f37661f77716e39911358a65f2cace68a0a1189a0653a309fd19291ab8d |