Convert string to specific case
Project description
strcase
strcase is a python package for converting string case.
It is a port of the go package strcase
Example
s = "AnyKind of_string"
Function | Result |
---|---|
to_snake(s) |
any_kind_of_string |
to_screaming_snake(s) |
ANY_KIND_OF_STRING |
to_kebab(s) |
any-kind-of-string |
to_screaming_kebab(s) |
ANY-KIND-OF-STRING |
to_delimited(s, '.') |
any.kind.of.string |
to_screaming_delimited(s, '.') |
ANY.KIND.OF.STRING |
to_camel(s) |
AnyKindOfString |
to_lower_camel(s) |
anyKindOfString |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
strcase-1.0.0.tar.gz
(2.0 kB
view hashes)