Skip to main content

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


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)

Uploaded Source

Built Distribution

strcase-1.0.0-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page