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
pip install vbot-utils
Quick start
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
git clone https://github.com/vexify-build/vbot-utils
cd vbot-utils
python -m build
python -m pytest
License
MIT © VBot
Metadata
Release files for vbot-utils 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vbot_utils-0.1.0.tar.gz | 6.6 kB | Without provenance | Details for vbot_utils-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vbot_utils-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for vbot_utils-0.1.0-py3-none-any.whl |
Total release size: 13.1 kB
Release files / vbot_utils-0.1.0.tar.gz
| Download URL | vbot_utils-0.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
885477262fd32f2630fe5bb42803dca7e37018ddd1e021ca0fd220862076540c
|
|
BLAKE2b-256 checksum How to use checksums |
992a09d1d33e8af79b613b2cd0ddb15df3220bbd45a44d0a92c9ac87e5a10d41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / vbot_utils-0.1.0-py3-none-any.whl
| Download URL | vbot_utils-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77837384b0c45b9e72e3461eeb3a7f6197d626c5877d14db0ff18da9516bf9fe
|
|
BLAKE2b-256 checksum How to use checksums |
b52a8867470c84aeb561db7c2abac35667471130a6b21d9fd54eb6ddf955d233
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for vbot-utils 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.