Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

545 B
Raw Blame
"""
ⒸAngelaMos | 2025
Application enums for type safety
"""

from enum import StrEnum


class MessageStatus(StrEnum):
    """
    Message delivery status
    """
    SENDING = "sending"
    SENT = "sent"
    DELIVERED = "delivered"
    READ = "read"
    FAILED = "failed"


class PresenceStatus(StrEnum):
    """
    User presence status
    """
    ONLINE = "online"
    AWAY = "away"
    OFFLINE = "offline"


class RoomType(StrEnum):
    """
    Chat room types
    """
    DIRECT = "direct"
    GROUP = "group"
    EPHEMERAL = "ephemeral"