Python Powerful Timeout Decorator that can be used safely on classes, methods, class methods
MIT License
v1.5.1
2024-02-28:
overhaul documentation
github actions/checkout@v4
github actions/setup-python@v5
Published by bitranox 8 months ago
2024-02-27:
- thanks to Alberto Ornaghi: <https://github.com/alor>
_
- introduced parameter dec_mp_reset_signals
- restores the default behavior of signal handlers on multiprocessing fork
- suitible especially for FastAPI
and Uvicorn
Published by bitranox 10 months ago
2024-01-10:
- thanks to fayak: <https://github.com/fayak>
_
- omit mypy option --no-implicit-reexport
- explicitly export methods in __init__.py
Published by bitranox over 1 year ago
2023-07-13:
- check for killed child processes (for instance by OOMKiller)
- change dill requirements for windows
- require minimum python 3.8
- remove python 3.7 tests
- introduce PEP517 packaging standard
- introduce pyproject.toml build-system
- remove mypy.ini
- remove pytest.ini
- remove setup.cfg
- remove setup.py
- remove .bettercodehub.yml
- remove .travis.yml
- update black config
- clean ./tests/test_cli.py
- add codeql badge
- move 3rd_party_stubs outside the src directory to ./.3rd_party_stubs
- add pypy 3.10 tests
- add python 3.12-dev tests
Published by bitranox over 2 years ago
2022-06-01: update to github actions checkout@v3 and setup-python@v3
Published by bitranox over 2 years ago
2022-05-23: update requirements.txt
Published by bitranox over 2 years ago
2022-05-23:
- set dill version < 0.3.5 on windows, because decorating class methods fails with dill 0.3.5 upwards
- update tests to the latest python versions
Published by bitranox over 2 years ago
2022-04-26: add tests for thread lock
Published by bitranox over 2 years ago
v1.3.9
2022-04-26: preserve the signature of the decorator. make sure You use the stub file "wrapt.pyi" for local mypy testing
Published by bitranox over 2 years ago
2022-03-29: remedy mypy Untyped decorator makes function "cli_info" untyped
Published by bitranox over 2 years ago
2022-03-28: extend time on test_timeout_decorator_arg - github macos seems to be slow, so sometimes that test fails
Published by bitranox over 2 years ago
2022-03-25: fix github actions windows test
Published by bitranox over 2 years ago
v1.3.4
2022-03-23: extend time on test_timeout_ok_timeout_as_kwarg - github macos seems to be slow, so sometimes that test fails
Published by bitranox over 2 years ago
2022-03-10: extend time on test_timeout_alternate_exception - github macos seems to be slow, so sometimes that test fails
Published by bitranox over 2 years ago
2022-03-01: github actions pipeline, codestyle black, fix requirements
Published by bitranox about 5 years ago
Published by bitranox over 5 years ago
pointing out caveats when using signals, the decorator defaults now to NOT using Signals !
Published by bitranox over 5 years ago
enable nested decorators
update documentation for nested decorators
integrate mypy static type checking
Published by bitranox over 5 years ago
import multiprocess as multiprocessing might break packages - so import as multiprocess
Published by bitranox over 5 years ago
Version 1.2.7 - "import multiprocess as multiprocessing" might break packages - so import as multiprocess