Metadata-Version: 2.1
Name: py_tata
Version: 0.1.4
Summary: 
Author: Sviatoslav Bobryshev
Author-email: wstswsb@gmail.com
Requires-Python: >=3.10.11,<4.0.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: icmplib (>=3.0.4,<4.0.0)
Requires-Dist: pydantic (>=2.4.2,<3.0.0)
Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
Requires-Dist: rich (>=13.6.0,<14.0.0)
Requires-Dist: typer (>=0.9.0,<0.10.0)
Description-Content-Type: text/markdown

# Tata - Test Automation and Troubleshooting Assistant

Tata is a command-line utility designed for checking the configuration of host machines within specified tasks. It provides a simple and efficient way to automate tests related to host settings.

## Supported Tasks

Tata supports the following tasks:

1. **check_hostname:**
   - Verifies that the hostname of the machine matches the specified value.
    ```yaml
    tasks:
      - task: check_hostname
        target_hostname: "test"
    ```

2. **check_ping:**
   - Checks if the specified IP address or domain is reachable via ping.
   ```yaml
    tasks:
      - task: check_ping
        target_ip: "127.0.0.1"
   ```

## Task Configuration

Tasks are defined in a YAML file with the following format:

```yaml
tasks:
  - task: check_hostname
    target_hostname: "test"

  - task: check_ping
    target_ip: "127.0.0.1"

  - task: check_ping
    target_ip: "ya.ru"
```

## Installation

### Preferred method: pipx

```bash
pipx install py_tata
py_tata ./tasks.yaml
```

### Alternative method: pip

```bash
pip install py_tata
python -m py_tata.cli.app ./tasks.yaml
```

## Supported Python Versions

Tata is compatible with Python versions 3.10 and above.

---

Thank you for using Tata! If you have any questions or encounter any problems, please don't hesitate to reach out.

