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>
14 lines
268 B
Python
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()
|