Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

textcraft_py-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textcraft_py-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file textcraft_py-0.1.1.tar.gz.

File metadata

  • Download URL: textcraft_py-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for textcraft_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4cfd51009b335159d86c585ea4d7054f5ebacd163b55720e3aff62d28ad0a108
MD5 77d54b45aa4ae3cb3a528069d1a99455
BLAKE2b-256 818c68c2b9386063065b6ae4cb25d1ce960dfd817a8f06fc2a8108f17e4c388a

See more details on using hashes here.

File details

Details for the file textcraft_py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: textcraft_py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for textcraft_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c693ffaa6caf7939ab38df951ae2acb7f0e43c278e7abe1f9fabb58f7d00260f
MD5 f7f4bf020cf4a007a0e80ec55900bbd1
BLAKE2b-256 882f4b2c03ad4fa0d72e8ade9786564e3e6adc7059286bdeaa6ad8c4ee726f4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page