A package for working with smiley emojis
Project description
Emoji Generator
🎉 Welcome to Emoji Generator - your go-to package for generating random emojis! 🎉
With this package, you can easily generate random emojis or choose from specific categories to get emojis that fit your needs.
Installation
You can install Random Emoji Generator using pip:
pip install emoji-generator
Usage
Generating Random Emojis by Passing Count
To generate a random emoji, use the get_random_emoji(count)
function:
import emoji_generator.random_emoji as emojigen
# Generate 5 random emojis
random_smileys = emojigen.get_random_emojis(5)
# Print the list of smileys
for smiley in random_smileys:
print(smiley["name"], smiley["image"])
# Output
# [{'code': 'U+1F1ED U+1F1F0', 'name': 'flag: Hong Kong SAR China', 'image': '🇭🇰', 'category': 'Flags'}]
Generating Emojis by Category
You can generate emojis from specific categories using the get_random_emojis_by_category()
function. The supported categories are:
- People & Body
- Activities
- Travel & Places
- Objects
- Animals & Nature
- Flags
- Food & Drink
- Smileys & Emotion
- Symbols
import emoji_generator.random_emoji as emojigen
# Generate 5 random emojis from given category
random_smileys_by_category = emojigen.get_random_emojis_by_category("Flags", 5)
# Print the list of emojis
for smiley in random_smileys_by_category:
print(smiley["name"], smiley["image"])
# Output
# [{'code': 'U+2764', 'name': 'red heart', 'image': '❤', 'category': 'Smileys & Emotion'}]
Links
If you want to generate random emojis without writing any code, check out our website randomgenerate.io. You can also use our Random Emoji Generator tool to generate emojis with specific categories.
Contributing
If you have any ideas or suggestions for improving this package, feel free to open an issue or submit a pull request on GitHub.
We appreciate your contributions! 😊
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
Built Distribution
Hashes for emoji_generator-0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee0497c9214eace90977123e5598ebab6398686e3fa1d563a26904d6ac1b2f40 |
|
MD5 | d1e5b53a2807ede94ce8e0bb83d055c1 |
|
BLAKE2b-256 | b136ced7d5caf63e455eedd3749abffbd69be290727fc742eec66f6898a411b1 |