A Python library for managing and accessing cute emoji symbols ๐ฅ
Project description
CuteSymbols ๐ฅ
A Python library for managing and accessing cute emoji symbols in your applications. Perfect for adding visual flair to your console output, logging, or user interfaces!
โจ Features
- ๐ Easy Access: Direct access to symbols using simple attribute syntax
- ๐ Smart Search: Powerful regex-based search with case-insensitive matching
- ๐ Organized Categories: Symbols grouped by purpose (State, Activity, Emotion, Objects)
- ๐ Reverse Lookup: Find symbol names and groups from emoji values
- ๐ Complete Listing: List all available symbols with their metadata
- ๐ ๏ธ Developer Friendly: Full type hints and comprehensive documentation
๐ฏ Available Symbol Categories
State โ
CHECKโ - Success indicatorCROSSโ - Error indicatorWARNINGโ ๏ธ - Warning indicatorINFOโน๏ธ - Information indicatorSUCCESSโ๏ธ - Success markerFAILUREโ๏ธ - Failure markerQUESTIONโ - Question marker
Activity ๐
ROCKET๐ - Launch/start indicatorLOOP๐ - Process/refresh indicatorCLOCKโฑ๏ธ - Timing indicatorHOURGLASSโณ - Loading indicatorFLASHโก - Speed/power indicator
Emotion ๐ก
THINK๐ค - Thinking indicatorBRAIN๐ง - Intelligence indicatorLIGHT๐ก - Idea indicatorFIRE๐ฅ - Hot/trending indicatorMAGICโจ - Special indicatorSTARโญ - Favorite indicatorEYES๐ - Attention indicator
Objects ๐ ๏ธ
FOLDER๐ - Directory indicatorGEARโ๏ธ - Settings indicatorTOOL๐ ๏ธ - Tool/utility indicatorBUG๐ - Bug/issue indicator
๐ Quick Start
from cuteSymbols import CuteSymbols
# Create an instance
symbols = CuteSymbols()
# Access symbols directly
print(f"Task completed {symbols.CHECK}") # Task completed โ
print(f"Loading {symbols.HOURGLASS}") # Loading โณ print(f"Great idea {symbols.LIGHT}") # Great idea ๐ก
๐ง Core Methods
Direct Symbol Access
# Access any symbol directly
fire_emoji = symbols.FIRE # ๐ฅ check_emoji = symbols.CHECK # โ
rocket_emoji = symbols.ROCKET # ๐
# Use in your applications
print(f"Deployment started {symbols.ROCKET}") print(f"Tests passed {symbols.SUCCESS}") print(f"Found issue {symbols.BUG}")
Search Functionality ๐
The search() method provides powerful pattern matching:
# Simple text search (case-insensitive by default)
results = CuteSymbols.search("fire")
# Returns: [('Emotion', 'FIRE', '๐ฅ')]
# Search by emoji
results = CuteSymbols.search("๐ฅ")
# Returns: [('Emotion', 'FIRE', '๐ฅ')]
# Regex patterns
results = CuteSymbols.search(r"^F") # Symbols starting with 'F'
# Returns: [('Emotion', 'FIRE', '๐ฅ'), ('State', 'FAILURE', 'โ๏ธ'), ('Objects', 'FOLDER', '๐')]
# Advanced regex with custom flags
import re results = CuteSymbols.search(r"fire", flags=0) # Case-sensitive results = CuteSymbols.search(r"f.*e$", flags=re.MULTILINE) # Multi-line pattern
Reverse Lookup ๐
Find information about emojis:
# Get complete info (name and group)
info = CuteSymbols.info_from_emoji("๐ฅ")
# Returns: ('FIRE', 'Emotion')
# Get just the name
name = CuteSymbols.name_from_emoji("โ
")
# Returns: 'CHECK'
# Handle unknown emojis
info = CuteSymbols.info_from_emoji("๐")
# Returns: None
List All Symbols ๐
# Get all symbols as tuples (group, name, value)
all_symbols = CuteSymbols.list_all()
# Returns: [('State', 'CHECK', 'โ
'), ('State', 'CROSS', 'โ'), ...]
# Print a formatted table
CuteSymbols.print_table()
๐จ Usage Examples
Console Logging
from cuteSymbols import CuteSymbols
symbols = CuteSymbols()
def log_status(message, status): if status == "success": print(f"{symbols.CHECK} {message}") elif status == "error": print(f"{symbols.CROSS} {message}") elif status == "warning": print(f"{symbols.WARNING} {message}") else: print(f"{symbols.INFO} {message}")
# Usage
log_status("Database connected", "success") # โ
Database connected log_status("Connection timeout", "error") # โ Connection timeout log_status("Memory usage high", "warning") # โ ๏ธ Memory usage high
Progress Indicators
import time from cuteSymbols import CuteSymbols
symbols = CuteSymbols()
def show_progress(task_name): print(f"{symbols.HOURGLASS} Starting {task_name}...") time.sleep(1) print(f"{symbols.LOOP} Processing {task_name}...") time.sleep(1) print(f"{symbols.FLASH} Finalizing {task_name}...") time.sleep(1) print(f"{symbols.CHECK} {task_name} completed!")
show_progress("Data Analysis")
Dynamic Symbol Discovery
# Find all symbols containing "tool"
tools = CuteSymbols.search("tool") for group, name, emoji in tools: print(f"{emoji} {name} (from {group})")
# Find all fire-related symbols
fire_symbols = CuteSymbols.search("fire") print(f"Fire symbols: {[emoji for _, _, emoji in fire_symbols]}")
# Search by pattern
question_symbols = CuteSymbols.search(r".*TION") # Ends with "TION"
๐ง Advanced Features
Custom Search Flags
import re
# Case-sensitive search
results = CuteSymbols.search("Fire", flags=0) # Won't find "FIRE"
# Multi-line patterns
results = CuteSymbols.search(r"^FIRE$", flags=re.MULTILINE)
# Combine multiple flags
results = CuteSymbols.search(r"pattern", flags=re.MULTILINE | re.DOTALL)
Integration with Other Libraries
# With logging
import logging from cuteSymbols import CuteSymbols
symbols = CuteSymbols()
# Custom formatter
class EmojiFormatter(logging.Formatter): def format(self, record): if record.levelno == logging.ERROR: record.msg = f"{symbols.CROSS} {record.msg}" elif record.levelno == logging.WARNING: record.msg = f"{symbols.WARNING} {record.msg}" elif record.levelno == logging.INFO: record.msg = f"{symbols.INFO} {record.msg}" return super().format(record)
๐ Error Handling
# Handle search errors
try: results = CuteSymbols.search("[invalid regex") except ValueError as e: print(f"{symbols.CROSS} Search error: {e}")
# Handle missing symbols
try: info = CuteSymbols.info_from_emoji(None) except AttributeError as e: print(f"{symbols.WARNING} {e}")
๐ Installation
# Clone the repository
git clone [https://github.com/yourusername/cutesymbols.git](https://github.com/yourusername/cutesymbols.git) cd cutesymbols
# Run tests
python -m unittest tests/tests.py -v
๐ API Reference
Methods
search(pattern, flags=re.IGNORECASE)- Search symbols by patterninfo_from_emoji(emoji)- Get name and group from emojiname_from_emoji(emoji)- Get symbol name from emojilist_all()- Get all symbols as tuplesprint_table()- Print formatted symbol table
Properties
Access any symbol directly: symbols.FIRE, symbols.CHECK, etc.
๐ค Contributing
Contributions are welcome! Please feel free to submit issues and pull requests.
๐ License
This project is licensed under the MIT License.
Made with ๐ก and ๐ฅ by the CuteSymbols team!
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
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 cute_symbols-1.0.0.tar.gz.
File metadata
- Download URL: cute_symbols-1.0.0.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e03ac8b31550d945b55600c18651c43bfccb2b077f8507123c190eb18bcc480
|
|
| MD5 |
ecba16970044894c7278bc9d00e1b871
|
|
| BLAKE2b-256 |
0b00afdf7353863c78067d1488caf4382adc83408ec428e68225c33d4ff76f59
|
File details
Details for the file cute_symbols-1.0.0-py3-none-any.whl.
File metadata
- Download URL: cute_symbols-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92d0a454b7966503fb8942798be6084c737231cf44b484ad48b83db70c0c573f
|
|
| MD5 |
320a508e92f46cf4b4387bfa92fe89dc
|
|
| BLAKE2b-256 |
aa9e55561dc272d487c1a75775e09feb2ae91088001de1794a4b4c05d1db94e3
|