Monitor your Python scripts with one decorator — retries, timing, and smart error explanations.
Project description
py-eeive
Monitor your Python scripts with one decorator — automatic retries, timing, and smart error explanations.
Install
pip install py-eeive
Usage
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_eeive-0.1.0.tar.gz
(8.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
py_eeive-0.1.0-py3-none-any.whl
(12.8 kB
view details)
File details
Details for the file py_eeive-0.1.0.tar.gz.
File metadata
- Download URL: py_eeive-0.1.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ca5be574c1c55051f216a52e1fd89efe5df2c6871e53cecf0dcdb6834c189df
|
|
| MD5 |
0901ae5ed560f1613bd219795fa882dc
|
|
| BLAKE2b-256 |
8bc271b96dc1657731e0ddd2ea72c7dee57e2692e93ec721d86d3097fd826c30
|
File details
Details for the file py_eeive-0.1.0-py3-none-any.whl.
File metadata
- Download URL: py_eeive-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f71cbe886719f76a059ea05d10e56ba202276b09e564f8c5528c9b9997a533fd
|
|
| MD5 |
f298e0be1cfda20a7f5dd446b1309da1
|
|
| BLAKE2b-256 |
20bed6f78cfb3a7b878dd329b252fac04d1e44855417f37c8476daa8968022f2
|