Skip to content

A lightweight python module for text transformation, cleaning and analysis โ€” beginner friendly and open source.

License

Notifications You must be signed in to change notification settings

O-sama12/textcraft

โœจ 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

Before contributing, please take a moment to read the CONTRIBUTING.md file.


๐Ÿ“„ License

This project is licensed under the
MIT License.

About

A lightweight python module for text transformation, cleaning and analysis โ€” beginner friendly and open source.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages