hack-house/.venv/lib/python3.12/site-packages/sanic_ext/utils/string.py
leetcrypt bb1d662ee1 chore: rename project coven → hack-house ⛧
Rebrand the Rust client crate (coven/ → hh/, package+binary "hack-house"),
README, CLI strings, and branch (coven → hack-house). Gitea repo renamed
cmd-chat → hack-house to match. Crypto/server logic unchanged; selftest +
golden-vector test still green, binary is now `hack-house`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-30 13:29:14 -07:00

14 lines
268 B
Python

import re
CAMEL_TO_SNAKE_PATTERNS = (
re.compile(r"(.)([A-Z][a-z]+)"),
re.compile(r"([a-z0-9])([A-Z])"),
)
def camel_to_snake(name: str) -> str:
for pattern in CAMEL_TO_SNAKE_PATTERNS:
name = pattern.sub(r"\1_\2", name)
return name.lower()