Skip to content

alessandrobessi/umarell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: [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

A wild umarell in Bologna, Italy

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages