Skip to main content

Various tools to execute functions in python

Project description

exectools_vrb

Various tools to execute functions in python.

This module defines:

function try_run()

Exception proof function call. If the call succeeds, return the result of func. If not, repeat the call under certain circumstances instead of raising an exception immediately. Can be used if exceptions are expected, e.g. TimeoutErrors.

type TryRunLogFunc

Function type for logging exceptions to be used with in try_run().

class TaskOnRequestThread

Thread class which carries out a task (spefified by a callback function) whenever it is requested to do so (by setting a flag). There's also a method which will run this task periodically.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exectools_vrb-0.0.2.tar.gz (17.3 kB view hashes)

Uploaded Source

Built Distribution

exectools_vrb-0.0.2-py3-none-any.whl (18.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page