4.7. sciexp2.exprun.util

Source: sciexp2/exprun/util.py

Functions

step Show simple progress messages around a piece of code.

Classes

threaded Context manager to run functions in parallel using threads.

4.7.2. step

step(message, logger=<built-in function print>)

Show simple progress messages around a piece of code.

Parameters:
message : str

Message to print.

logger : function, optinal

Logging function. Defaults to print.

Examples

>>> with step("Doing something")
        print("some text")
Doing something...
some text
Doing something... done