umarell is a lightweight decorator that can be seamlessly integrated in all your Python projects to log the performance of your functions.
Its usage is straightforward. You just need to:
- include the umarell module in your project folder
- import the module
- apply the decorator on top of functions' definition
from umarell import umarell
@umarell
def my_function():
...
Each time a function gets called, umarell logs its execution time leveraging the built-in logging
module. Try to run example.py
to get a gist of it.
Umarell (Italian pronunciation: [umaˈrɛlː]; modern rivisitation of the Bolognese dialect word umarèl [umaˈrɛːl]) is a term popular in Bologna referring specifically to men of retirement age who pass the time watching construction sites, especially roadworks – stereotypically with hands clasped behind their back and offering unwanted advice.
Source: Wikipedia
A wild umarell in Bologna, Italy