gerd.lldap: added initial bootstrap

This commit is contained in:
eyjhb 2024-12-22 21:57:54 +01:00
parent 5749b1cf66
commit 06f5d3a5fb
Signed by: eyjhb
GPG key ID: 609F508E3239F920
5 changed files with 758 additions and 0 deletions

View file

@ -0,0 +1,10 @@
import re
def to_camelcase(s):
s = re.sub(r"(_|-)+", " ", s).title().replace(" ", "").replace("*", "")
return "".join([s[0].lower(), s[1:]])
def to_snakecase(s):
return re.sub(r"(?<!^)(?=[A-Z])", "_", s).lower()