Metadata-Version: 2.4
Name: vbot-utils
Version: 0.1.0
Summary: VBot utility library: string, date and validation helpers.
Author-email: VBot <vexify@yeah.net>
License: MIT
Project-URL: Homepage, https://github.com/vexify-build/vbot-utils
Project-URL: Repository, https://github.com/vexify-build/vbot-utils
Keywords: vbot,utils,helpers,strings,dates,validation
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# vbot-utils

> A small, dependency-free utility library for **VBot** 🐍

`vbot-utils` provides practical, well-tested helpers for **strings**, **dates** and **validation** — the everyday building blocks used across VBot's Python tooling. Zero runtime dependencies, Python 3.8+.

## Install

```bash
pip install vbot-utils
```

## Quick start

```python
from vbot_utils import slugify, truncate, is_email, relative_time

slugify("Hello, World!")            # 'hello-world'
truncate("a very long sentence", 10)  # 'a very ...'
is_email("me@example.com")          # True
relative_time("2026-11-25")         # '3 hours ago' (example)
```

## Features

- **Strings** — `slugify`, `truncate`, `is_blank`, `to_kebab`, `to_snake`
- **Dates** — `parse_date`, `format_date`, `relative_time`
- **Validation** — `is_email`, `is_url`, `is_ip`, `is_uuid`

## API

### Strings
| Function | Description |
|---|---|
| `slugify(text, separator="-")` | Convert text to a URL-friendly slug |
| `truncate(text, length=80, suffix="...")` | Truncate text with a suffix |
| `is_blank(text)` | `True` if `None` or whitespace |
| `to_kebab(text)` | CamelCase → kebab-case |
| `to_snake(text)` | CamelCase → snake_case |

### Dates
| Function | Description |
|---|---|
| `parse_date(value)` | Parse ISO string / `date` / timestamp → `datetime` |
| `format_date(value, fmt="%Y-%m-%d")` | Format a date-like value |
| `relative_time(value, now=None)` | Human-friendly relative time |

### Validation
| Function | Description |
|---|---|
| `is_email(value)` | Email format check |
| `is_url(value)` | http(s) URL check |
| `is_ip(value)` | IPv4 check |
| `is_uuid(value)` | UUID check |

## Development

```bash
git clone https://github.com/vexify-build/vbot-utils
cd vbot-utils
python -m build
python -m pytest
```

## License

[MIT](LICENSE) © VBot
