Metadata-Version: 2.4
Name: py-eeive
Version: 0.1.0
Summary: Monitor your Python scripts with one decorator — retries, timing, and smart error explanations.
Home-page: https://github.com/poghdev/py-eeive
Author: Poghoosyann
Author-email: poghoosyann@gmail.com
License: MIT
Project-URL: Bug Tracker, https://github.com/poghdev/py-eeive/issues
Keywords: monitor,retry,decorator,logging,error-handling
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: project-url
Dynamic: requires-python
Dynamic: summary

# py-eeive

Monitor your Python scripts with **one decorator** — automatic retries, timing, and smart error explanations.

## Install

```bash
pip install py-eeive
```

## Usage

```python
from py_eeive import monitor

@monitor(retries=3, retry_delay=5, log=True, language="english")
def main():
    # your script here
    ...

main()
```

## Parameters

| Parameter | Default | Description |
|-----------|---------|-------------|
| `retries` | `1` | How many times to retry on failure |
| `retry_delay` | `5` | Seconds to wait between retries |
| `log` | `True` | Save error log to `logs/` folder |
| `language` | `"english"` | Language for messages: `"english"` or `"russian"` |
| `custom_errors` | `None` | Dictionary with custom error explanations |

## Example output (success)

```
[py-eeive] Starting: main
──────────────────────────────────────────────────
[py-eeive] ✅ Finished in 2.4 sec
```

## Example output (failure)

```
[py-eeive] Starting: main
──────────────────────────────────────────────────
[py-eeive] ❌ Attempt 1/3 — ZeroDivisionError: division by zero
[py-eeive] 🔄 Retrying in 5 seconds...
[py-eeive] ❌ Attempt 2/3 — ZeroDivisionError: division by zero
[py-eeive] 🔄 Retrying in 5 seconds...
[py-eeive] ❌ Attempt 3/3 — ZeroDivisionError: division by zero

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💥 Script failed permanently
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  Error:    ZeroDivisionError: division by zero
  Line:     12 in file main.py
  Cause:    You are dividing a number by zero.
  Fix:      Check that the denominator is not 0 before dividing.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  ⏱  15.3 sec
  📄 Log saved: logs/main_2026-04-24_12-00-00.txt
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
```

## License

MIT
