Simple text processing utilities
Project description
lokesh-text-utils
Simple text processing utilities for Python.
Installation
pip install lokesh-text-utils
Usage
from lokesh_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
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 lokesh_text_utils-0.4.0.tar.gz.
File metadata
- Download URL: lokesh_text_utils-0.4.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 |
4dec205806ed2151e07be8f3b82b7b8ff31c5a5dc76ab2247056e3fddb9fbba3
|
|
| MD5 |
da522ac281b5c8ef47dbd37b3caaa0a5
|
|
| BLAKE2b-256 |
5b93fbf06408480bf0e4c80aa3599800b15b3bc1400e94d92869062566808e56
|
File details
Details for the file lokesh_text_utils-0.4.0-py3-none-any.whl.
File metadata
- Download URL: lokesh_text_utils-0.4.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c16255e54e5b2eaa01f80a51c68ecf7481f772ad2da7c2f044fc4b9188afab5
|
|
| MD5 |
6e3965e02dc2c80151a678cc0ffdd940
|
|
| BLAKE2b-256 |
dcddc66e042d416b0acfd9ee3ca6234c1232bc74aa064ac4820eb366463be4fc
|