Specify a timeout with any given function
Project description
bombfuse
Python module for specifying timeouts when executing functions
Installation
To install this package, run the following command:
$ pip install bombfuse
Usage
>>> import time
>>> from bombfuse import timeout
>>> def func(msg):
>>> while True:
>>> time.sleep(1)
>>> print msg
>>>
>>> timeout(5, func, "Hello world!")
Hello world!
Hello world!
Hello world!
Hello world!
>>>
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bombfuse-0.1.tar.gz
(1.7 kB
view hashes)
Built Distribution
bombfuse-0.1-py2-none-any.whl
(2.8 kB
view hashes)