A small wrapper for different types of calls, it can be used to spawn and track a process or to just run python code from string onto a new thread with timeout support
A small wrapper for different types of calls, it can be used to spawn and track a process or to just run python code from string onto a new thread with timeout support. This small lib adds logging and error handling in a way that can be useful for running in agents within a distributed system where you need a uniform yet flexible way to invoke different types of calls and possibly with timeouts. You will get a handle that you can use to retrieve the status of the running call or to order it to stop at any point in time always using the same API regardless of the call type.
Keep in mind this offers no Security, untrusted data should never reach any of these calls
Written for Python 2 but can easily be converted to 3
Status: highly experimental
Please check the examples in the source code repository at here for more.
Check out the source code at github page:
git clone https://github.com/blackthorne/Libcall.git
Please check the github page here for more information and updates.