This repo hosts 3 useful decorators that might come handy while prototyping namely -
timer are taken from https://realpython.com/primer-on-python-decorators/.
@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.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size decos-0.0.12.post10-py3-none-any.whl (4.1 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size decos-0.0.12.post10.tar.gz (2.8 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for decos-0.0.12.post10-py3-none-any.whl