Emoji hash functions
Project description
Emoji-hash 😄
Library with hashing tools where hash is emoji(s). Zero dependencies.
Installation
pip install emojihash
Simple example
from emojihash import eh1
my_string = "Hello world!"
emoji_hash = eh1(my_string) # eh == Emoji Hash
print(emoji_hash) # 🥳
More examples
from emojihash import eh1
print(
eh1("Hello world!") # "🥳"
)
print(
eh1(42) # "🚳"
)
print(
eh1("I need more emojis!!!", length=12) # "🍤🍧🚮🛄👑🛹⛩💙🙇🎊🍍👚"
)
print(
eh1("I need more emojis!!!", length=2) # "🦈🏼"
)
print(
eh1(b'000', length=2) # "🩹🟠"
)
print(
eh1(u'5p34k 1337', length=4, encode='ascii') # "🍓👣🔩💯"
)
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
emojihash-0.1.1.tar.gz
(20.4 kB
view details)
Built Distribution
emojihash-0.1.1-py3-none-any.whl
(20.2 kB
view details)
File details
Details for the file emojihash-0.1.1.tar.gz
.
File metadata
- Download URL: emojihash-0.1.1.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb7da511446a79c465a7dd639edbc4436ee83719c21dc7206df96fe25047bbc8 |
|
MD5 | c06b1431aaf57443ee2ebc1c8b1ada9d |
|
BLAKE2b-256 | cdeb7d7be6ef2e906e9fcdebfec217caac897a70a626ffdedfc28ca551cd4d83 |
File details
Details for the file emojihash-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: emojihash-0.1.1-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a664058de052ea7c57336b17b4aedb1f6761d5e76f756b6cc0cce0d45db55387 |
|
MD5 | e70322eb305546664c2b466750fb41c5 |
|
BLAKE2b-256 | 7eeb8050a17b30f4d1e68a876cb401cffedc67c62c151445b48f99fd896ccd2f |