Automatic AI based (optional) Camel / Snake / Pascal / Kebab / Train(Title) / Upper / Lower Case Conversion
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
autocase-0.0.4.tar.gz
(7.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autocase-0.0.4.tar.gz.
File metadata
- Download URL: autocase-0.0.4.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc4c012d00b12ee15d995774e38ce80eed952227c95e099bcd70c33c9dcd3f30
|
|
| MD5 |
7fd7ba05c219fefc1a8f9c6a7ff0d3d2
|
|
| BLAKE2b-256 |
df5482dc5c81251546225605e08be6c864b756896839798b6de441007fc5d9ed
|
File details
Details for the file autocase-0.0.4-py3-none-any.whl.
File metadata
- Download URL: autocase-0.0.4-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa074fbceffd6edb433ebdf510f662825336c5e1fc60b2f99adc9850fdeef5e3
|
|
| MD5 |
9dd082cdb9898a600e262e8771c2f607
|
|
| BLAKE2b-256 |
5feb7c0bef93763da814032780df84ef3291e33505f93373b139de6abf8b9e5f
|