Metadata-Version: 2.1
Name: call-function-with-timeout
Version: 1.0.2
Summary: Python Call function with timeouts
Home-page: https://github.com/yang445786754/call_function_with_timeout
Author: Tony_9410
Author-email: tony_9410@foxmail.com
Project-URL: Homepage, https://github.com/yang445786754/call_function_with_timeout
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: thread-with-results

# call_function_with_timeout
A library to make your funtions support timeouts

Example

```python
import time
from call_function_with_timeout import SetTimeout

# make your function
def do_something(a=0, b=0):
    time.sleep(10)
    print(a + b)

# define function with timeout
func_with_timeout = SetTimeout(do_something, timeout=5)
# call the function
res = func_with_timeout(a=12, b=8)

print(res)

```
