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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file strcase-1.0.0.tar.gz.

File metadata

  • Download URL: strcase-1.0.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.6.6

File hashes

Hashes for strcase-1.0.0.tar.gz
Algorithm Hash digest
SHA256 458cab2002abf3ec8dbb5377537d73368120346ee04dde197ac9d7829f57fab5
MD5 1c685536dbd699d07fab6d978b68a602
BLAKE2b-256 3e553050c84aeceb953ce30856e94cbb93f038927e5ed333c61b763d4fb356f2

See more details on using hashes here.

File details

Details for the file strcase-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: strcase-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.6.6

File hashes

Hashes for strcase-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70acee835cbaebf72265fd4aa3404dda0d6a71591506ba26d408c1464941393e
MD5 4dae6e696706ff096f988020719fd7c9
BLAKE2b-256 0c0a325029aa6bc843b7786785b9fc29087d9d9b8c81b8ee062e8406ad68ff20

See more details on using hashes here.

Supported by

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