Metadata-Version: 2.4
Name: status-update
Version: 1.0.1
Summary: A lightweight decorator for logging function start, completion, and elapsed time.
Author-email: Alexandru-Gabriel Michiduță <michidutaalexandru1995@yahoo.ro>
License: Attribution-Required Free License
Keywords: logging,decorator,utilities,monitoring
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Dynamic: license-file

# status_update

> A minimal Python decorator for logging what your functions are doing and how long they take.

---

## Installation

```bash
pip install status-update
```

## Usage

Works out of the box with no configuration:

```python
from status_update import status_update

@status_update
def load_data():
    ...
```

Or pass in your own logger:

```python
import logging
from status_update import status_update

logger = logging.getLogger("myapp")

@status_update(logger=logger)
def process_data():
    ...
```

Every call will log three things automatically:
INFO  Started   [load_data].
INFO  Completed [load_data] in 2 minutes, 14 seconds.

If the function raises, you get this instead:
INFO  Started   [load_data].
ERROR Failed    [load_data] after 1 minute, 3 seconds. Error: ...

---

## License

Free to use and modify for any purpose.  
Professional or organisational use requires crediting the author.

© 2025 Alexandru-Gabriel Michiduță — michidutaalexandru1995@yahoo.ro  
Improvements and suggestions are always welcome.
