Commit Graph

51 Commits

Author SHA1 Message Date
Tim Savannah
3dcf6f921e pydoc update 2017-05-20 21:43:07 -04:00
Tim Savannah
38ec3de098 Fix date 2017-05-20 21:40:54 -04:00
Tim Savannah
0c1f6a7de6 README list pydocs 2017-05-20 21:40:34 -04:00
Tim Savannah
b6c02653b8 4.0.0 2017-05-20 21:38:02 -04:00
Tim Savannah
cfa466a302 Changelog 2017-05-20 21:30:36 -04:00
Tim Savannah
ca8a3a3534 Short README update 2017-05-20 21:30:13 -04:00
Tim Savannah
8af967169d Make python2 work as well as python3 2017-05-20 21:23:37 -04:00
Tim Savannah
f20e8e727c Fix so instantiation works in async exception. Also, dont need to worry about the exception comment, as we use BaseException and have for a while to prevent such. 2017-05-20 21:14:58 -04:00
Tim Savannah
525c291aef Regen html 2017-05-20 17:20:47 -04:00
Tim Savannah
d6ff5e1932 Make StoppableThread.JoinThread have a configurable retry interval (still default 2 seconds). Will attempt to retry stopping thread every this-many seconds 2017-05-20 17:20:23 -04:00
Tim Savannah
e554cd0252 Update docstring text 2017-05-20 17:18:06 -04:00
Tim Savannah
d10476b734 Update pydoc 2017-05-20 17:11:59 -04:00
Tim Savannah
63454c7178 Add mkdoc.sh script 2017-05-20 17:11:54 -04:00
Tim Savannah
9d3eec0475 Add README for tests dir, and add tests to MANIFEST.in 2017-05-20 17:10:16 -04:00
Tim Savannah
e4cf7fa765 Add TODO 2017-05-20 17:07:26 -04:00
Tim Savannah
ad944d3c2c Add tests 2017-05-20 17:06:51 -04:00
Tim Savannah
b729265855 Add msg property to FunctionTimedOut exception (also can get by str( exception ) 2017-05-20 17:04:22 -04:00
Tim Savannah
75d90251f6 Add missing import 2017-05-20 16:51:07 -04:00
Tim Savannah
2079932b4e Changelog 2017-05-20 16:24:24 -04:00
Tim Savannah
0ccca87e2c Some tests 2017-05-20 16:22:14 -04:00
Tim Savannah
36b7d6f266 Decrease thread join time. Because it is a daemon thread it will get closed automatically on garbage collect, just need to initate a join at all. 2017-05-20 16:21:43 -04:00
Tim Savannah
5b93fe5d7c Expand FunctionTimedOut exception to have attributes of the timeout, function that failed, args and kwargs. Also add a standard getMsg function for generating consistant message, and add a retry function to retry the function again with either same timeout, different timeout, or no timeout. 2017-05-20 16:04:39 -04:00
Tim Savannah
c3a114e1df Sometimes depending on critical section during timeout, traceback could be printed to stderr. Stop that. 2017-05-20 15:49:17 -04:00
Tim Savannah
b1a05fe92f Add GoodTests.py suite, some utils which will be used, and a test for the test. How meta! 2017-05-20 02:22:24 -04:00
Tim Savannah
32078a8065 Changeup how the function decorator works.
Rename to "set_func_timeout" - Give it 2 possible arguments.

First is either a floating point timeout, or a function which will be
invoked each call of decorated function and passed same arguments, to
calculate the timeout that should be used.

Second is "allowOverride", default False. If True, adds a kwarg to the
function being decorated, "forceTimeout", which if provided will
override any default timeout and prevent a calculation attempt.
2017-05-20 01:52:01 -04:00
Tim Savannah
84a3abd11d Revert 906f2b9028 on testit.py accidental commit 2017-05-20 00:06:54 -04:00
Tim Savannah
036c1dfa6f Add docstrings and imports 2017-05-19 21:01:07 -04:00
Tim Savannah
b778c644c3 Changelog 2017-05-19 20:50:25 -04:00
Tim Savannah
1a22f0f55b Merge branch 'master' into 4.0branch 2017-05-19 20:50:03 -04:00
Tim Savannah
906f2b9028 Version 4.0.0 2017-05-19 20:49:45 -04:00
Tim Savannah
1f4e536784 Changelog 2017-05-19 20:49:43 -04:00
Tim Savannah
f7baa18e64 Note set_timeout decorator in README 2017-05-19 20:49:42 -04:00
Tim Savannah
f8ec7f492c Add 'set_timeout' decorator for functions 2017-05-19 20:49:41 -04:00
Tim Savannah
3f4bae15c1 Fix year in changelog 2017-05-19 20:49:40 -04:00
Tim Savannah
7d74e815cc Fix year in changelog 2017-01-04 17:09:23 -05:00
Tim Savannah
54af61b3a3 Add note about that it works on multiple oses to readmes 2017-01-04 17:08:07 -05:00
Tim Savannah
23e8e26b23 Bump version displayed in doc 2017-01-04 17:06:28 -05:00
Tim Savannah
b132fb8fb2 Update Changelog 2017-01-04 17:05:46 -05:00
Tim Savannah
b602c6e3a7 Bump version and add 2017 to copyrights on changed files 2017-01-04 17:05:09 -05:00
Tim Savannah
6f687fa071 Use os.devnull instead of hardcoding /dev/null which makes this windows compatible 2017-01-04 17:03:46 -05:00
Tim Savannah
9dbefe0ff1 Add simple test program, 'testit' 2017-01-04 17:03:09 -05:00
Tim Savannah
675d68254d Update documentation and fix version number specified in module 2016-03-21 11:24:17 -04:00
Tim Savannah
2bb4b52640 3.0.0 - Works on python3 without SystemError sideeffect 2016-03-18 14:29:04 -04:00
Tim Savannah
ecef734547 Add missing files 2016-03-18 14:03:48 -04:00
Tim Savannah
a8e096d528 Change implementation of timing out to not leave lingering threads 2016-03-18 13:59:20 -04:00
Tim Savannah
edfc9b8d4a Update ChangeLog link, and add link to pydoc. Regenerate pydoc for 1.0.1 2016-03-15 17:35:09 -04:00
Tim Savannah
08052219f1 1.0.1 - Remove debug print, add ChangeLog, update documentation a bit 2016-03-15 17:32:32 -04:00
Tim Savannah
f0e551c8af Fix 2016-03-14 22:40:14 -04:00
Tim Savannah
46cb352917 Fix setup.py 2016-03-14 22:38:03 -04:00
Tim Savannah
9104d8ca62 Initial Release 2016-03-14 22:37:03 -04:00