Skip to main content

autoCase (WIP:Expect Major Changes)

Automatic AI based (optional) Camel / Snake / Pascal / Kebab / Train(Title) / Upper / Lower Case Conversion

Latest Python Installation

git clone https://github.com/MohitBurkule/autoCase.git
cd autoCase
pip install -e .

Pypi ( slightly older version)

pip install autoCase

Usage

Basic Usage

from autoCase import camel, snake, kebab, title

camel = camel("hello-world") # helloWorld
snake = snake("helloWorld") # hello_world
kebab = kebab("helloWorld") # hello-world
##title = title("helloWorld") # Hello World

AI Based Conversion (Coming Soon)

from autoCase import camel, snake, kebab, title

string = "helloworld"
camel = camel(string,ai=True,outputs=3) # [helloWorld, hellOworld, hellOWorld]
snake = snake(string,ai=True,outputs=3) # [hello_world, hell_oworld, hell_o_world]
pascal = pascal(string,ai=True,outputs=3) # [HelloWorld, HellOworld, HellOWorld]
kebab = kebab(string,ai=True,outputs=3) # [hello-world, hell-oworld, hell-o-world]
train = train(string,ai=True,outputs=3) # [Hello-World, Hell-Oworld, Hell-O-World]
upper = upper(string,ai=True,outputs=3) # [HELLO WORLD, HELL OWORLD, HELL O WORLD]
lower = lower(string,ai=True,outputs=3) # [hello world, hell oworld, hell o world]

Dictionary Based Conversion (Coming Soon)

from autoCase import camel, snake, kebab, title

word_list = ["hello","world","hell"]

string = "helloworld"
camel = camel(outputs=3) # [helloWorld, hellWorld, hellWorld]
snake = snake(outputs=3) # [hello_world, hell_world, hell_world]
pascal = pascal(outputs=3) # [HelloWorld, HellWorld, HellWorld]
kebab = kebab(outputs=3) # [hello-world, hell-world, hell-world]
train = train(outputs=3) # [Hello-World, Hell-World, Hell-World]
upper = upper(outputs=3) # [HELLO WORLD, HELL WORLD, HELL WORLD]
lower = lower(outputs=3) # [hello world, hell world, hell world]

Development and Pypi

pip install -e .[build,test] 
pytest
pip-compile pyproject.toml
python -m build 
twine check dist/*
twine upload -r pypi dist/* --verbose

Metadata

Release files for autoCase 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autoCase 0.0.4
File Size Uploaded
autocase-0.0.4.tar.gz 7.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autoCase 0.0.4
File Interpreter ABI Platform
autocase-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 14.0 kB

Release files / autocase-0.0.4.tar.gz

Download URL autocase-0.0.4.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dc4c012d00b12ee15d995774e38ce80eed952227c95e099bcd70c33c9dcd3f30
BLAKE2b-256 checksum
How to use checksums
df5482dc5c81251546225605e08be6c864b756896839798b6de441007fc5d9ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.3

Release files / autocase-0.0.4-py3-none-any.whl

Download URL autocase-0.0.4-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa074fbceffd6edb433ebdf510f662825336c5e1fc60b2f99adc9850fdeef5e3
BLAKE2b-256 checksum
How to use checksums
5feb7c0bef93763da814032780df84ef3291e33505f93373b139de6abf8b9e5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page