File size: 268 Bytes
72ed7c3
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Utility helpers for IDs and lightweight text processing."""

from __future__ import annotations

import uuid


def new_episode_id() -> str:
    return f"dg-{uuid.uuid4().hex[:12]}"


def norm_text(value: str | None) -> str:
    return (value or "").strip().lower()