Metadata-Version: 2.4
Name: ingabotool
Version: 0.1.0
Summary: A small, professional Python package for developer utilities.
Author: Developer
License: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# ingabotool

A small, professional Python package that provides a set of reusable developer utilities for common text manipulation and validation tasks.

## Features

- **`slugify`**: Convert text into URL-friendly strings.
- **`truncate`**: Safely truncate strings and append a suffix if they exceed a maximum length.
- **`is_valid_email`**: Perform practical validation of email formats.
- **`mask_email`**: Obfuscate email usernames while preserving the domain for privacy.
- **`generate_id`**: Generate short, unique alphanumeric identifiers with an optional prefix.

## Installation for Local Development

You can install this package locally in editable mode. Navigate to the root directory of the package (where `pyproject.toml` is located) and run:

```bash
pip install -e .
```

To build the package distribution files:

```bash
python -m build
```
*(If `build` is not installed, install it via: `pip install build`)*

To run the test suite:

```bash
python -m unittest discover -s tests
```
*Note: Make sure your `PYTHONPATH` includes the `src` directory if not installing first, or run from the root directory.*


## Usage Examples

```python
from ingabotool import slugify, truncate, is_valid_email, mask_email, generate_id

# 1. slugify
print(slugify("Hello, World!"))
# Output: "hello-world"

# 2. truncate
print(truncate("This is a long sentence", 10))
# Output: "This is..."

# 3. is_valid_email
print(is_valid_email("user@example.com"))
# Output: True

# 4. mask_email
print(mask_email("john.doe@gmail.com"))
# Output: "j*******@gmail.com"

# 5. generate_id
print(generate_id("user"))
# Output: "user_a8f31c4b" (random)
```

## Available Functions

- `slugify(text: str) -> str`
- `truncate(text: str, max_length: int, suffix: str = "...") -> str`
- `is_valid_email(email: str) -> bool`
- `mask_email(email: str) -> str`
- `generate_id(prefix: str = "id") -> str`
