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
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
moodemoji-0.1.0.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file moodemoji-0.1.0.tar.gz.
File metadata
- Download URL: moodemoji-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
353b50bf11f03fdc48dd8312c3d1dc80e6b6acf92d66c1d0cc98a61f09bb9bff
|
|
| MD5 |
902bc476d06e45e91090c7a213b7c259
|
|
| BLAKE2b-256 |
2b670c5ae0672568626368d05f00fba24129ace3a74937184e38de15ab045254
|
File details
Details for the file moodemoji-0.1.0-py3-none-any.whl.
File metadata
- Download URL: moodemoji-0.1.0-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.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2efcf64a708781c385aa56f3a94b83c19bea2f302917fc8192e2e163a148a89e
|
|
| MD5 |
283b8662dd2a49770014d473992e049c
|
|
| BLAKE2b-256 |
8954ee1e09caf7c34a74c04485cb126fbe9efd47c8b95fa36043a2613b2d6043
|