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
Release history Release notifications | RSS feed
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.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for callmonitor-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26193856d0108e649aedb0d12fd886b02b508adc2504810fc70891c1253b8ad3 |
|
MD5 | 08bed04718ef6917e5606f641b4c50fc |
|
BLAKE2b-256 | b9bd594f48482ead80fc2db4942472e80571024404b3c8051d90db731d7a9328 |