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, lowercaseword_count(text)- Count words in textslugify(text)- Convert text to URL-friendly slug
Requirements: Python 3.11+
License: MIT
Author: Lokesh Soni
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
lh_text_utils-0.2.0.tar.gz
(1.5 kB
view details)
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67f899c5a5fa8cc8b5a3eedf824c4ceda59231f63eb623cf5b669fe7241e8de6
|
|
| MD5 |
9fdc0b8f88804813936fad88f4a525ad
|
|
| BLAKE2b-256 |
63045c24f64f0752aade7c511b0166961f7658576a2439fb0169b57e9572aad3
|
File details
Details for the file lh_text_utils-0.2.0-py3-none-any.whl.
File metadata
- Download URL: lh_text_utils-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06ddc269f8c332ce527d8d7ae740435b44a9168ae8b38f6f17c9f6b4dd691050
|
|
| MD5 |
624d3bc33a30abeb6dfe8fff27b833c2
|
|
| BLAKE2b-256 |
902ea4f342b8a5e69af2f5052ee9d3f20233e097f801ebd1a8bc2e37bcc78e40
|