brocksam / pyproprop

Write classes with lots of similar simple defensive properties without the boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support additional string formatting methods

brocksam opened this issue · comments

Support formatting of strings to other cases such as camel and snake as well as upper, lower and title. This will mainly involve handling replacement of spaces and dealing with invalid characters. Upper cases used in abbreviations/acronyms will also need to be handled intelligently.

Examples:

some_string = "Some String with ABRV."
format_snake(some_string)
> "some_string_with_abrv"
format_camel(some_string)
> "SomeStringWithABRV"

Resulting bugs fixed in 6bc0dcf, fe90699, 160f36d, a053dff, cfdbdad, 5599cde and 2b62bd5.