A lightweight, beginner-friendly Python module for text transformation and analysis
Project description
✨ Textcraft
🧵 A lightweight Python module for text transformation, cleaning, and basic analysis —
beginner-friendly and open source.
🚀 Features
🔤 Text Case & Format Conversion
- 🔡 Convert text to lowercase and uppercase
- 🐍 Transform text into
snake_case - 🐫 Convert text into
camelCase - 🔗 Convert text into
kebab-case
🧹 Text Cleaning Utilities
- 🧽 Remove punctuation from text
- 📐 Normalize multiple spaces into a single space
- 🌐 Generate URL-friendly slugs using
slugify
📊 Basic Text Statistics
- 🧮 Count number of words in text
- 🔢 Count characters (with or without spaces)
- 📑 Count number of sentences
📦 Installation
Install Textcraft using pip:
clone the repository:
git clone https://github.com/O-sama12/textcraft
then import the module directly:
import textcraft
Note:
textcraft is currently not published on PyPI, pip install support will be added in future release.
🧪 Usage / Examples
Basic 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)) # thisIsATextcraftExample
🤝 Contributing
This project is beginner-friendly and welcomes:
- 🐞 Bug reports
- 💡 Feature suggestions
- 🔧 Pull requests
📄 License
This project is licensed under the
MIT License.
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
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 textcraft_py-0.1.2.tar.gz.
File metadata
- Download URL: textcraft_py-0.1.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c2f9d6a77113350eab3e4459c9b1ce8afc6aa5e08836f0f8724178507a0a909
|
|
| MD5 |
3bd8c55fa0f97ea47ce5b53c136c45a7
|
|
| BLAKE2b-256 |
06b80ed4e20bd0213d2bc31a3bc3d412bedda63e31236eca05fade0e8d6051a1
|
File details
Details for the file textcraft_py-0.1.2-py3-none-any.whl.
File metadata
- Download URL: textcraft_py-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
997d3609f47b0af7eb2c85050394c50f16ebf6db541e338763b32fa6d8387ca6
|
|
| MD5 |
088a640a6a1b470faedf41e92e666196
|
|
| BLAKE2b-256 |
6b0c3776e15539056b61a375b1a44a18d4564bd0a9cf53b8d5e6c653a50d504d
|