Skip to content

tsukachu/pytimeout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Minimal timeout handling for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages