Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.04 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.04 KB

pytimeout

Build Status Code Climate Test Coverage

Description

This package provides developers with a minimal timeout handling.
If time is exceeded, raise TimeoutError.

Usage

pytimeout contains two functions.
timeout() is a decorator. Add timeout when defining function.
with_run() add a timeout when calling an already defined function.

argument

pytimeout.timeout(sec)
pytimeout.with_run(sec, func, *args, **kwargs)

Installation

$ pip install git+https://github.com/tsukachu/pytimeout

Author

tsukachu

License

This is under the MIT license.

See LICENSE.