some decorators
Project description
This repo hosts 3 useful decorators that might come handy while prototyping namely -
@debug @timer @safe_run
@debug prints the function name with the arguments passed and the return value at the end each time a function is called.
@timer as the name suggests times the function to be executed and in the end prints the total time taken by that function.
@safe_run is in brief tries to run the function and prints the error in case the function throws some error. @safe_run takes dictionary of parameters also to let the user customize the behavior of it.
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
decos-0.0.12.post2.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for decos-0.0.12.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8480ed035f3caa6127f4d473e455575859323948d794df06c3a4eabd0c1c3dbb |
|
MD5 | e5ef716ab8d0f4465cc056b6e5c27a26 |
|
BLAKE2b-256 | e7a8bb81354f41c40977922d21b2868bbc1b1441a0898163a093d587199cab72 |