Skip to main content

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, 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

lokesh_text_utils-0.4.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.

lokesh_text_utils-0.4.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for lokesh_text_utils-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4dec205806ed2151e07be8f3b82b7b8ff31c5a5dc76ab2247056e3fddb9fbba3
MD5 da522ac281b5c8ef47dbd37b3caaa0a5
BLAKE2b-256 5b93fbf06408480bf0e4c80aa3599800b15b3bc1400e94d92869062566808e56

See more details on using hashes here.

File details

Details for the file lokesh_text_utils-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lokesh_text_utils-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c16255e54e5b2eaa01f80a51c68ecf7481f772ad2da7c2f044fc4b9188afab5
MD5 6e3965e02dc2c80151a678cc0ffdd940
BLAKE2b-256 dcddc66e042d416b0acfd9ee3ca6234c1232bc74aa064ac4820eb366463be4fc

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