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.

Files for strcase, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size strcase-1.0.0-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size strcase-1.0.0.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page