๐งต A lightweight Python module for text transformation, cleaning, and basic analysis โ
beginner-friendly and open source.
- ๐ก Convert text to lowercase and uppercase
- ๐ Transform text into
snake_case - ๐ซ Convert text into
camelCase - ๐ Convert text into
kebab-case
- ๐งฝ Remove punctuation from text
- ๐ Normalize multiple spaces into a single space
- ๐ Generate URL-friendly slugs using
slugify
- ๐งฎ Count number of words in text
- ๐ข Count characters (with or without spaces)
- ๐ Count number of sentences
Install Textcraft using pip:
pip install textcraft-pyor
clone the repository:
git clone https://github.com/O-sama12/textcraftthen import the module directly:
import textcraftBasic usage of the textcraft module:
import textcraft as txt
text = "This is a textcraft example"
print(txt.to_lowercase(text)) # this is a textcraft example
print(txt.to_uppercase(text)) # THIS IS A TEXTCRAFT EXAMPLE
print(txt.to_snake_case(text)) # this_is_a_textcraft_example
print(txt.to_kebab_case(text)) # this-is-a-textcraft-example
print(txt.to_camel_case(text)) # thisIsATextcraftExampleThis project is beginner-friendly and welcomes:
- ๐ Bug reports
- ๐ก Feature suggestions
- ๐ง Pull requests
Before contributing, please take a moment to read the CONTRIBUTING.md file.
This project is licensed under the
MIT License.