taukit/cli/utils.py
def to_console(obj, unique=False, processor=None, **kwds):
    """Print object to the console.

    Parameters
    ----------
    obj : any
        String and non-terables are printed as is.
        Other iterables are iterated and printed.
        Iterables within iterables are printed as is.
    unique : bool
        Should duplicated objects be shown only once.
    processor : func or None
        Optional processing function to call on each object.
    **kwds :
        Keyword arguments passed to the processor function.
    """
    if isinstance(obj, str) or not isinstance(obj, (Sequence, GeneratorType)):
        obj = [obj]
    if unique:
        show_unique(obj)
    for o in obj:
        if processor:
            o = processor(o, **kwds)
        pprint(o)
Print object to the console.

    Parameters
    ----------
    obj : any
        String and non-terables are printed as is.
        Other iterables are iterated and printed.
        Iterables within iterables are printed as is.
    unique : bool
        Should duplicated objects be shown only once.
    processor : func or None
        Optional processing function to call on each object.
    **kwds :
        Keyword arguments passed to the processor function.
    
Print object to the console.
Parameters

obj : any
String and non-terables are printed as is.
Other iterables are iterated and printed.
Iterables within iterables are printed as is.
unique : bool
Should duplicated objects be shown only once.
processor : func or None
Optional processing function to call on each object.
kwds :
Keyword arguments passed to the processor function.
Print object to the console . Parameters obj : any String and non - terables are printed as is . Other iterables are iterated and printed . Iterables within iterables are printed as is . unique : bool Should duplicated objects be shown only once . processor : func or None Optional processing function to call on each object . kwds : Keyword arguments passed to the processor function .
def to_console(obj, unique=False, processor=None, **kwds):
    if isinstance(obj, str) or not isinstance(obj, (Sequence, GeneratorType)):
        obj = [obj]
    if unique:
        show_unique(obj)
    for o in obj:
        if processor:
            o = processor(o, **kwds)
        pprint(o)
def to_console ( obj , unique = False , processor = None , ** kwds ) : if isinstance ( obj , str ) or not isinstance ( obj , ( Sequence , GeneratorType ) ) : obj = [ obj ] if unique : show_unique ( obj ) for o in obj : if processor : o = processor ( o , ** kwds ) pprint ( o )
Print object to the console.
Print object to the console .
"""Print object to the console.

    Parameters
    ----------
    obj : any
        String and non-terables are printed as is.
        Other iterables are iterated and printed.
        Iterables within iterables are printed as is.
    unique : bool
        Should duplicated objects be shown only once.
    processor : func or None
        Optional processing function to call on each object.
    **kwds :
        Keyword arguments passed to the processor function.
    """
obj
unique
processor