A small Python library to limit the resources used by a function by executing it inside a subprocess.
copied from cf-staging / pynisherThe pynisher is a little module intended to limit a functions resources. It starts a new process, sets the desired limits, and executes the function inside it. In the end, it returns the function return value. If, for any reason, the function call is not successful, None is returned.