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.2.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for callmonitor-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8b4b7e92b6cd8d72db23c8a8a37d5c464048fb2d6676ce44e4b351a116bc44d |
|
MD5 | 4823e82091a5b801085d050c7cc10906 |
|
BLAKE2b-256 | 21c5870b67dbc87850a1f1ab2dbe1fec69a1d7a17269fdb4b185f843c5952b2d |