Skip to main content

Map moods to emojis 😎

Project description

🎭 moodemoji

moodemoji is a playful Python library that maps your mood to the perfect emoji.
Built as a way to learn Python packaging, it's simple, testable, and fun.


🚀 Features

  • mood_to_emoji("happy") → 😊
  • Class-based API with MoodInterpreter
  • Built-in fallback for unknown moods
  • Easily extendable

📦 Installation

Install locally (for development):

pip install -e .

🧑‍💻 Usage

Functional API

from moodemoji import mood_to_emoji

print(mood_to_emoji("tired"))   # 😴
print(mood_to_emoji("curious")) # 🤔

Object-Oriented API

from moodemoji import MoodInterpreter

mi = MoodInterpreter("excited")
print(mi.get_emoji())        # 🤩
mi.set_mood("sad")
print(mi.get_emoji())        # 😢

✅ Supported Moods

  • happy
  • sad
  • angry
  • excited
  • tired
  • love
  • confused

📁 Project Structure

moodemoji/
├── moodemoji/         # Library code
│   ├── __init__.py
│   └── core.py
├── tests/             # Unit tests
├── pyproject.toml     # Packaging config
└── README.md

🧪 Run Tests

pytest

📜 License

MIT © Vedanta Barooah

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

moodemoji-0.1.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

moodemoji-0.1.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file moodemoji-0.1.1.tar.gz.

File metadata

  • Download URL: moodemoji-0.1.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for moodemoji-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a4168dfd3fe6dd2bb2de71b8938824c53dd32618e1fd92e1b208d3050f19b5e8
MD5 b91e1268a57a0b2c7488d4d8385ca243
BLAKE2b-256 db0448bf96ed416246d34cf0176e0b85c8fcbb28f3f16570e4ed94e3e272e63c

See more details on using hashes here.

File details

Details for the file moodemoji-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: moodemoji-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for moodemoji-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9e4f7b915a9c9e45b5b44b97cc17e085d4b5243c6e960eed577013de998d853
MD5 19635f8d4e51876af653b94727e13a23
BLAKE2b-256 4e1cc11dcac000cc517cd1d6c64b6efd07b16d5519e855c1de1ff024fbb41c69

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