snipy/progress.py
def progress(iter, **kwargs):
    """
    프로그래스 bar
    for i in progress(10):
        print i

    for i in progress(iter):
        print i
    """
    if isinstance(iter, int):
        iter = xrange(iter)
    if hasattr(iter, '__len__') or 'target' in kwargs:
        cls = Progress
    else:
        cls = ProgressBase

    return cls(iter, **kwargs)
def progress(iter, **kwargs):
    """
    프로그래스 bar
    for i in progress(10):
        print i

    for i in progress(iter):
        print i
    """
    if isinstance(iter, int):
        iter = xrange(iter)
    if hasattr(iter, '__len__') or 'target' in kwargs:
        cls = Progress
    else:
        cls = ProgressBase

    return cls(iter, **kwargs)
프로그래스 bar
    for i in progress(10):
        print i

    for i in progress(iter):
        print i