INNER CODE UNIT · Python

sub_prefix

vchinnipilli/kubestriker · kubestriker/bars.py:27

def sub_prefix(item):   
    '''
    This function decorates the other functions with bars
    '''   
    def decorator(fun):
        @wraps(fun)
        def wrapper(*args):
            d = (stylize(item, fg("dodger_blue_1")))
            with FillingSquaresBar(d) as bar:
                for _ in range(100):
                    sleep(0.005)
                    bar.next()
            return fun(*args)
        return wrapper
    return decorator


def service_open(item,file_obj=None):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…