Skip to main content

A lightweight, beginner-friendly Python module for text transformation and analysis

Project description

✨ Textcraft

PyPI PyPI - Python Version CI License Build

🧵 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:

pip install textcraft-py

or

clone the repository:

git clone https://github.com/O-sama12/textcraft

then import the module directly:

import textcraft

🧪 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.3.tar.gz (3.9 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.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: textcraft_py-0.1.3.tar.gz
  • Upload date:
  • Size: 3.9 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.3.tar.gz
Algorithm Hash digest
SHA256 3248edfb5e716e224603200dfa538ba5b3cd3152afbd727ec25ae26aaa5e8a8e
MD5 973311505674706869622ae0a386f775
BLAKE2b-256 676f532f3f285b96d87b1516a2e00c72884f34046a609154e401b0c92bf4e9c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: textcraft_py-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 da45c5c9cc74e2568bd7e793d9aff6a4cca6e8b444aa56a723c2e4d299494537
MD5 eb18781346523e99293c47ddb5721945
BLAKE2b-256 c8fca06e0653aa476673fa1229288229f4c6d331c55625096e449f3d9e245afb

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