larzstring
String helpers beyond the built-in methods.
center/reverse/repeat/is_digit/is_alpha/wrap/snake - the everyday string operations the built-in string methods don't cover directly. wrap() greedily fills lines up to a width; snake() converts CamelCase and spaced text to snake_case.
larzscript pkg install string
What you get
- center/reverse/repeat - the everyday extras
- is_digit()/is_alpha() - whole-string character checks
- wrap() - greedy line-fill to a width
- snake() - CamelCase and spaces to snake_case
Try it
import "string" as str2
print(str2.center("hi", 8, "-"))
print(str2.wrap("the quick brown fox jumps", 10))
print(str2.snake("HelloWorld Test"))Output
---hi--- [the quick, brown fox, jumps] hello_world__test
Why it's in the Larz Stack
larzstring is a real Larzscript package (larzscript pkg install string) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.