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.post1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for decos-0.0.12.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d45045200b65ec4e90479c0576ce3fe5d6f0e00a98a409eee40348750348a89 |
|
MD5 | 653514154f3c1e1ce58a0bddb21db388 |
|
BLAKE2b-256 | 4afadde4e239e241278877dcb9d8f21a77fb7b7d2d191b32119385cfceb95efc |