INNER CODE UNIT · Python

resource_available

vchinnipilli/kubestriker · kubestriker/bars.py:53

def resource_available(item,file_obj=None):
    '''
    This function decorates the available resources with bars
    '''  
    print (fore.ORANGE_1 + '            [+] ' + f' {item}' + ' Identified in the cluster' + style.RESET)
    if file_obj:
        print('            [+] '+item + ' Identified in the cluster',file=file_obj)

def scan_status(item):
    '''
    This function decorates items being scanned with bars
    '''  
    d = (stylize(item, fg("dodger_blue_1")))
    with FillingSquaresBar(d) as bar:
        for _ in range(100):
            sleep(0.005)
            bar.next()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…