def pull_stream ( image ) : return ( json . loads ( s ) for s in _get_docker ( ) . pull ( image , stream = True ) )
python docker api build output stream
Return generator of pull status objects
def pull_stream(image):
    """
    Return generator of pull status objects
    """
    return (json.loads(s) for s in _get_docker().pull(image, stream=True))