stopit icon indicating copy to clipboard operation
stopit copied to clipboard

Raise asynchronous exceptions in other thread, control the timeout of blocks or callables with a context manager or a decorator

Results 17 stopit issues
Sort by recently updated
recently updated
newest added

It seems to me that `stopit` makes use of `pkg_resources`, that comes with python module `setuptools`. In pypi, this dependency on `setuptools` [is not declared](https://pypi.org/pypi/stopit/1.1.2/json) meaning that `stopit` can be...

Prefer [`importlib.metadata`](https://docs.python.org/3/library/importlib.metadata.html) core library which is available on Python >= 3.8 This gets rid of `setuptools` dependency for `stopit` users. Recent `setuptools` versions output a massive deprecation warning about [`pkg_resources`](https://setuptools.pypa.io/en/latest/pkg_resources.html)...

Hi, thanks for the great library! Currently, swallow_exc here is hardcoded to True, which means that using the decorator @stopit.threading_timeoutable() will never raise a stopit.utils.TimeoutException This change allows the user...

Hi, I want to use this on an offline computer. I am struggling to install it as I cannot find a wheel file for it, and pip keeps failing to...

This should give the correct license on pypi.

I have a tool for which it makes sense to allow a timeout to be specified on the command line. It also makes sense for a user to try a...

Hi, I'm having a bit of trouble nesting timeouts. Platforms tested: * Windows 10 Pro * Mac OSX My shortest reproducible solution is here: ```py from stopit import ThreadingTimeout as...

Running the following simple code with python 2.7.15: ```python from stopit import ThreadingTimeout def func(): with ThreadingTimeout(1, swallow_exc=True): import time; time.sleep(2) if __name__ == '__main__': func() ``` I get the...

Hello! Thanks for the work! Background: I'm working on packaging `stopit` for `conda` over on `conda-forge`: https://github.com/conda-forge/staged-recipes/pull/4708 If you'd like, I can add you as a maintainer there as well!...

`pkg_resources` is deprecated and no longer available for import by default as of Python 3.12.