Emojis for Python 😄 🐍 😋
Project description
emojislib
Emojis for Python 😄 🐍 😋
Installation
To install the emojislib run:
pip install emojislib
Usage
emojis.Emojis
is a dict which contains all emojis available in emojislib.There are two main types of methods in emojislib ,by_
and search_by_
.
by_
...
by_name
get one emoji by name
import emojislib as emojis
emoji = emojis.by_name('eyes')
print("name:",emoji.name)
print("char:",emoji.char)
print("category:",emoji.category)
print("keywords:",emoji.keywords)
output:
name: eyes
char: 👀
category: people
keywords: ('look', 'watch', 'stalk', 'peek', 'see')
by_cate
get a list of emoji(s) by category.
emoji = emojis.by_cate('animals_and_nature')
print(emoji)
output:
animals_and_nature [ 🐒, 🐵, 🐭, 🐁, 🍄, 🌑, ⚡]
by_key
get a list of emoji(s) by keywords.
emoji = emojis.by_key('winter')
print("winter:",emoji)
winter: [❄️, ⛄, ☃, 🎿, ⛷, 🏂, 🏔]
search_by_
...
Thers are 3 search_by_...
methods:
search_by_name
search_by_key
search_by_cate
Just replace get emoji(s) by a exact str with get emoji(s) by a part of a exact str compared with by_...
.
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
emojislib-0.0.1.dev.tar.gz
(33.5 kB
view hashes)
Built Distribution
Close
Hashes for emojislib-0.0.1.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7d5d950bab62e1f6bfb4b412eb590b150eacc2eec37ee6bc423824a951ac704 |
|
MD5 | 36264d0f6590ced0c53c4748d9825682 |
|
BLAKE2b-256 | e060eaf3d93a7e7e7c5d0898a508b3b1b67d0d1b4c7bb3ba6258f2b4c9a6df61 |