Skip to main content

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

This version

0.7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emoji-generator-0.7.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

emoji_generator-0.7-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file emoji-generator-0.7.tar.gz.

File metadata

  • Download URL: emoji-generator-0.7.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for emoji-generator-0.7.tar.gz
Algorithm Hash digest
SHA256 bf3326b1c040107f45d50ff7668930f5120550dc7babc72dfdd76c402781f84b
MD5 bc0800d871f7d9074c012876bca51955
BLAKE2b-256 4c50c3ab4b319a6852acfc34ce150bf339b4bb06c029c482e456fc7a56fc678e

See more details on using hashes here.

File details

Details for the file emoji_generator-0.7-py3-none-any.whl.

File metadata

  • Download URL: emoji_generator-0.7-py3-none-any.whl
  • Upload date:
  • Size: 33.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for emoji_generator-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ee0497c9214eace90977123e5598ebab6398686e3fa1d563a26904d6ac1b2f40
MD5 d1e5b53a2807ede94ce8e0bb83d055c1
BLAKE2b-256 b136ced7d5caf63e455eedd3749abffbd69be290727fc742eec66f6898a411b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page