https://github.com/alessandrobessi/umarell
Lightweight decorator that can be seamlessly integrated in all your Python projects to log the performance of your functions
https://github.com/alessandrobessi/umarell
hacktoberfest hacktoberfest2018 logger logging performance performance-metrics performance-testing
Last synced: 6 months ago
JSON representation
Lightweight decorator that can be seamlessly integrated in all your Python projects to log the performance of your functions
- Host: GitHub
- URL: https://github.com/alessandrobessi/umarell
- Owner: alessandrobessi
- License: mit
- Created: 2018-10-03T18:36:42.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-24T10:21:17.000Z (almost 7 years ago)
- Last Synced: 2025-04-15T19:17:18.580Z (6 months ago)
- Topics: hacktoberfest, hacktoberfest2018, logger, logging, performance, performance-metrics, performance-testing
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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```python
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](https://en.wikipedia.org/wiki/Umarell)
_A wild umarell in Bologna, Italy_