Metadata-Version: 2.4
Name: pipeline-utils-timeout
Version: 0.1.1
Summary: A simple timeout mechanism for Python functions
Project-URL: Homepage, https://github.com/pipeline-utils/timeout
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# pipeline-utils-timeout

## install

```bash
pip install pipeline-utils-timeout
```

## usage

```python3
# case 1: should raise TimeoutException
@timeout_decorator(1)
def long_running_function():
    time.sleep(2)
```

```python3
# case 2: should raise TimeoutException
with timeout_manager(1):
    time.sleep(2)
```
