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


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
strcase-1.0.0-py3-none-any.whl (3.2 kB) Copy SHA256 hash SHA256 Wheel py3
strcase-1.0.0.tar.gz (2.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page