Skip to main content

A light-weight package that allows you to monitor function calls with ease.

Project description

callmonitor -- A Simple Tool to Monitor Function Calls

It's simple to use, just decorate any function with the @intercept decorator. This will save the input arguments to the call-monitor/<function_name>/<invocation count> folder.

The Loader class helps load the input arguments:

l = callmonitor.Loader("<function name>", invocation_count)
args, kwargs = l.load()

loads the invocation_count-th call to <function_name>.

If the call data has been saved using v0.2.0 or greater, then the inspect.FullArgSpec will also be saved. This can be accessed using l.argspec. Otherwise l.argspec will throw an ArgspecUnkown error.

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

callmonitor-0.2.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

callmonitor-0.2.1-py3-none-any.whl (5.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