Metadata-Version: 2.4
Name: cs_library
Version: 0.2.1
Summary: Small utility helpers for working with text and tokens.
Author: 0x1F40E
License: MIT
Project-URL: Homepage, https://pypi.org/project/cs-library/
Keywords: utilities,text,helpers
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# cs_library

`cs_library` is a compact Python package with dependency-free helpers for normalizing text, creating slugs, and splitting sequences into chunks.

## Installation

```bash
pip install cs_library
```

## Usage

```python
from cs_library import chunked, normalize_whitespace, slugify

text = "  Fast   and\nclean   utilities  "
print(normalize_whitespace(text))
print(slugify("CS Lib: Ready to Ship"))
print(chunked([1, 2, 3, 4, 5], 2))
```

## API

- `normalize_whitespace(value: str) -> str`
- `slugify(value: str, separator: str = "-") -> str`
- `chunked(values: Sequence[T], size: int) -> list[list[T]]`
