Various utilities that you might enjoy while using libmunin.
File Iterator that yields all files with a specific ending.
There ist a list of default extensions in munin.helpers.ALLOWED_FORMATS with the most common formats.
This class implements __iter__, so you just can start using it.
Parameters: |
|
---|
Convienience function for easy mask building.
Every distance function needs to know the provider that processed the value. This is needed to implement the compress functionality. In order to stop you from writing code like this:
>>> prov = Provider()
>>> dfunc = DistanceFunction(prov)
>>> # Somehwere down:
>>> {'artist': (prov, dfunc, 0.5)}
You can just write:
>>> {'artist': pairup(Provider(), DistanceFunction(), 0.5)}
This function will set the provider in the DistanceFunction for you.
Itertools recipes:
Copied from the standard documentation: http://docs.python.org/3/library/itertools.html#itertools-recipes