Skip to main content

Oligo-emojis — a mini, dependency-free emoji helper library (author: OligoTech)

Project description

OLIGO-EMOJIS

Oligo-emojis is a lightweight, fun Python emoji utility library.

Author: OligoTech

This package provides categorized emoji lists and convenient helpers to retrieve and sample emojis for use in demos, tests, command-line fun, or UI placeholders.

Quick demo

from oligoemojis import Emojis

e = Emojis()
print(e.list_categories())
print(e.get('Smileys', 3))
print(e.random())
print(e.random('Animals', 4))

API reference

Class: Emojis(default_count: int = 1)

  • list_categories() -> List[str]

    • Returns a sorted list of available categories.
  • get(category: str, q: Union[int, str] = None) -> List[str] | str

    • Returns emojis from the named category. q can be an int (number of items), 'all' to get the whole list, or omitted to use the instance default.
    • Category matching is case-insensitive.
  • random(category: Optional[str] = None, q: int = 1) -> str | List[str]

    • Returns a random emoji (when q==1) or a list of q random emojis. If category is None, a random category is selected.
    • If q > size_of_category, sampling is done with replacement to satisfy the count.

Compatibility helpers (keeps older API names):

  • smileys(q=None) — returns first q smileys or 'all' for all smileys.
  • smileys_random() — returns a single random smiley.

Categories included

Smileys, People, Animals, Foods, Drinks, Activities, Travel, Places, Objects, Symbols, Flags

Notes

  • The library is intentionally simple and dependency-free.
  • It is safe to call random or get with small counts; invalid categories return a helpful message.

If you want additional emoji sets or suggestions, open an issue or submit a PR.

Project details


Download files

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

Source Distribution

oligo_emojis-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

oligo_emojis-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file oligo_emojis-0.1.0.tar.gz.

File metadata

  • Download URL: oligo_emojis-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for oligo_emojis-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cbc6ee77987f72a7dfe141c3a5f140a36ff3fe8e40dd7ad0a13c805954cd575f
MD5 564f12027a5b70783b6b8af0e481eebb
BLAKE2b-256 0986b1b15450a933458d7cc6ee6ea5714cfe00f7e2428bd4e261662e2e908b71

See more details on using hashes here.

File details

Details for the file oligo_emojis-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: oligo_emojis-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for oligo_emojis-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3651c35abfc3e14b434bcce9cda688aba040cde361122be7779c1df2d2d6498
MD5 2fe3c2cad3c9ab233434db747318ff5f
BLAKE2b-256 e439e25186aae9c40478d9533787c5620a1c3300d54e6453b0543c86fef1f290

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