This package provides developers with a minimal timeout handling.
If time is exceeded, raise TimeoutError.
pytimeout contains two functions.
timeout() is a decorator. Add timeout when defining function.
with_run() add a timeout when calling an already defined function.
pytimeout.timeout(sec)
pytimeout.with_run(sec, func, *args, **kwargs)
$ pip install git+https://github.com/tsukachu/pytimeout
This is under the MIT license.
See LICENSE.