umarell

Lightweight decorator that can be seamlessly integrated in all your Python projects to log the performance of your functions

MIT License

Stars
10
Committers
2

umarell

umarell is a lightweight decorator that can be seamlessly integrated in all your Python projects to log the performance of your functions.

Usage

Its usage is straightforward. You just need to:

  1. include the umarell module in your project folder
  2. import the module
  3. 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.

What the heck umarell means?

Umarell (Italian pronunciation: [umarl]; modern rivisitation of the Bolognese dialect word umarl [umarl]) 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