i_vis/core/db_utils.py
def fname2tname(fname: str) -> str:
    """Transform fname to tname.

    Create a database friendly table name for a given filename.

    Args:
        fname: Filename to transform.

    Returns:
        Transformed table name.

    """
    # remove path
    fname = basename(fname)
    # remove suffix
    pos = fname.find(".")
    if pos >= 0:
        fname = fname[0:pos]
    tname = underscore(fname)
    return tname
Transform fname to tname.

    Create a database friendly table name for a given filename.

    Args:
        fname: Filename to transform.

    Returns:
        Transformed table name.

    
Transform fname to tname.
Create a database friendly table name for a given filename.
Transform fname to tname . Create a database friendly table name for a given filename .
def fname2tname(fname: str) -> str:
    fname = basename(fname)
    pos = fname.find(".")
    if pos >= 0:
        fname = fname[0:pos]
    tname = underscore(fname)
    return tname
def fname2tname ( fname : str ) -> str : fname = basename ( fname ) pos = fname . find ( "." ) if pos >= 0 : fname = fname [ 0 : pos ] tname = underscore ( fname ) return tname
Transform fname to tname.
Transform fname to tname .
"""Transform fname to tname.

    Create a database friendly table name for a given filename.

    Args:
        fname: Filename to transform.

    Returns:
        Transformed table name.

    """ # remove path # remove suffix
Transformed table name.
Transformed table name .
fname
str
Filename to transform.
Filename to transform .