A string case conversion package.
Low maintenance activity. Last release 21 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
Consider insteadcamel-converterPythie’s Index: 841.7M downloads/moCompare →
pip install case-converterCase Converter
A robust python package for transforming string cases such as Hello, world! into
helloWorld (camelcase).
General usage
from caseconverter import camelcase
camelcase("Hello, world!") # output: helloWorld
Available conversions
camelcase
from caseconverter import camelcase
camelcase("Hello, world!")
helloWorld
cobolcase
from caseconverter import cobolcase
cobolcase("Hello, world!")
HELLO-WORLD
flatcase
from caseconverter import flatcase
flatcase("Hello, world!")
helloworld
kebabcase
from caseconverter import kebabcase
kebabcase("Hello, world!")
hello-world
macrocase
from caseconverter import macrocase
macrocase("Hello, world!")
HELLO_WORLD
Additional options
delims_only : bool - Only consider delimiters as boundaries (default: False).
pascalcase
from caseconverter import pascalcase
pascalcase("Hello, world!")
HelloWorld
snakecase
from caseconverter import snakecase
snakecase("Hello, world!")