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.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for callmonitor-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06a69c0ec081cfa878e49c731966766ff544084f0f2222f71c11bee05d15e1a2 |
|
MD5 | e7a103378e6118d54bc708751fbc73ab |
|
BLAKE2b-256 | f2cb6c0fa416f3f2b887c5b09acf0133f9206b9eff1f78cad5d289f785c98732 |