taukit/utils.py
def is_file(path):
    """Tell if a path is a file path.

    In case of non-existent file paths the file extenstions
    serves as a file signature.

    Parameters
    ----------
    path : str
        Some path.
    """
    if os.path.exists(path):
        return os.path.isfile(path)
    return bool(_rx_file.search(path))
Tell if a path is a file path.

    In case of non-existent file paths the file extenstions
    serves as a file signature.

    Parameters
    ----------
    path : str
        Some path.
    
Tell if a path is a file path.
In case of non-existent file paths the file extenstions
serves as a file signature.

Parameters

path : str
Some path.
Tell if a path is a file path . In case of non - existent file paths the file extenstions serves as a file signature . Parameters path : str Some path .
def is_file(path):
    if os.path.exists(path):
        return os.path.isfile(path)
    return bool(_rx_file.search(path))
def is_file ( path ) : if os . path . exists ( path ) : return os . path . isfile ( path ) return bool ( _rx_file . search ( path ) )
Tell if a path is a file path.
Tell if a path is a file path .
"""Tell if a path is a file path.

    In case of non-existent file paths the file extenstions
    serves as a file signature.

    Parameters
    ----------
    path : str
        Some path.
    """
path