lh-text-utils


Namelh-text-utils JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummarySimple text processing utilities
upload_time2025-10-08 09:54:12
maintainerNone
docs_urlNone
authorLokesh Soni
requires_python>=3.11
licenseMIT
keywords text utils processing learning_hour lokeshsoni
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # lh-text-utils

Simple text processing utilities for Python.

## Installation

```bash
pip install lh-text-utils
```

## Usage

```python
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
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "lh-text-utils",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "text, utils, processing, learning_hour, lokeshsoni",
    "author": "Lokesh Soni",
    "author_email": "Lokesh Soni <lokesh.soni@cbre.com>",
    "download_url": "https://files.pythonhosted.org/packages/63/04/5c24f64f0752aade7c511b0166961f7658576a2439fb0169b57e9572aad3/lh_text_utils-0.2.0.tar.gz",
    "platform": null,
    "description": "# lh-text-utils\n\nSimple text processing utilities for Python.\n\n## Installation\n\n```bash\npip install lh-text-utils\n```\n\n## Usage\n\n```python\nfrom lh_text_utils import clean_text, word_count, slugify\n\n# Clean and normalize text\nclean_text(\"  Hello World!  \")  # \"hello world!\"\n\n# Count words\nword_count(\"Hello World!\")  # 2\n\n# Create URL slug\nslugify(\"Hello World!\")  # \"hello-world\"\n```\n\n## Functions\n\n- `clean_text(text)` - Strip whitespace, normalize spaces, lowercase\n- `word_count(text)` - Count words in text\n- `slugify(text)` - Convert text to URL-friendly slug\n\n**Requirements:** Python 3.11+  \n**License:** MIT  \n**Author:** Lokesh Soni",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Simple text processing utilities",
    "version": "0.2.0",
    "project_urls": null,
    "split_keywords": [
        "text",
        " utils",
        " processing",
        " learning_hour",
        " lokeshsoni"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "902ea4f342b8a5e69af2f5052ee9d3f20233e097f801ebd1a8bc2e37bcc78e40",
                "md5": "624d3bc33a30abeb6dfe8fff27b833c2",
                "sha256": "06ddc269f8c332ce527d8d7ae740435b44a9168ae8b38f6f17c9f6b4dd691050"
            },
            "downloads": -1,
            "filename": "lh_text_utils-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "624d3bc33a30abeb6dfe8fff27b833c2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 2706,
            "upload_time": "2025-10-08T09:54:10",
            "upload_time_iso_8601": "2025-10-08T09:54:10.517914Z",
            "url": "https://files.pythonhosted.org/packages/90/2e/a4f342b8a5e69af2f5052ee9d3f20233e097f801ebd1a8bc2e37bcc78e40/lh_text_utils-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "63045c24f64f0752aade7c511b0166961f7658576a2439fb0169b57e9572aad3",
                "md5": "9fdc0b8f88804813936fad88f4a525ad",
                "sha256": "67f899c5a5fa8cc8b5a3eedf824c4ceda59231f63eb623cf5b669fe7241e8de6"
            },
            "downloads": -1,
            "filename": "lh_text_utils-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9fdc0b8f88804813936fad88f4a525ad",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 1515,
            "upload_time": "2025-10-08T09:54:12",
            "upload_time_iso_8601": "2025-10-08T09:54:12.872096Z",
            "url": "https://files.pythonhosted.org/packages/63/04/5c24f64f0752aade7c511b0166961f7658576a2439fb0169b57e9572aad3/lh_text_utils-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-08 09:54:12",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "lh-text-utils"
}
        
Elapsed time: 2.50963s