Skip to main content

Simple text processing utilities

Project description

lh-text-utils

Simple text processing utilities for Python.

Installation

pip install lh-text-utils

Usage

from lh_text_utils import clean_text, word_count, slugify

# Clean and normalize text
clean_text("  Hello World!  ")  # "hello world!"

# Count words
word_count("Hello World!")  # 2

# Create URL slug
slugify("Hello World!")  # "hello-world"

Functions

  • clean_text(text) - Strip whitespace, normalize spaces, lowercase
  • word_count(text) - Count words in text
  • slugify(text) - Convert text to URL-friendly slug

Requirements: Python 3.11+
License: MIT
Author: Lokesh Soni

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

lh_text_utils-0.2.0.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

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

lh_text_utils-0.2.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file lh_text_utils-0.2.0.tar.gz.

File metadata

  • Download URL: lh_text_utils-0.2.0.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.2

File hashes

Hashes for lh_text_utils-0.2.0.tar.gz
Algorithm Hash digest
SHA256 67f899c5a5fa8cc8b5a3eedf824c4ceda59231f63eb623cf5b669fe7241e8de6
MD5 9fdc0b8f88804813936fad88f4a525ad
BLAKE2b-256 63045c24f64f0752aade7c511b0166961f7658576a2439fb0169b57e9572aad3

See more details on using hashes here.

File details

Details for the file lh_text_utils-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lh_text_utils-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06ddc269f8c332ce527d8d7ae740435b44a9168ae8b38f6f17c9f6b4dd691050
MD5 624d3bc33a30abeb6dfe8fff27b833c2
BLAKE2b-256 902ea4f342b8a5e69af2f5052ee9d3f20233e097f801ebd1a8bc2e37bcc78e40

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