covid19-etl/utils/format_helper.py
def format_submitter_id(node, args):
    """
    Generates "submitter_id" for node with additional identificator values.
    Resulting "submitter_id" only contains lowercase letters, digits, underscore and dash.

    Args:
        node (str): node name for "submitter_id"
        args (dict): additional arguments to add to "submitter_id"

    Returns:
        str: generated "submitter_id"
    """
    submitter_id = node
    for v in args.values():
        if v:
            submitter_id += "_{}".format(v)

    submitter_id = submitter_id.lower()
    submitter_id = re.sub("[^a-z0-9-_]+", "-", submitter_id)

    return submitter_id.strip("-")

    Generates "submitter_id" for node with additional identificator values.
    Resulting "submitter_id" only contains lowercase letters, digits, underscore and dash.

    Args:
        node (str): node name for "submitter_id"
        args (dict): additional arguments to add to "submitter_id"

    Returns:
        str: generated "submitter_id"
    
Generates "submitter_id" for node with additional identificator values.
Resulting "submitter_id" only contains lowercase letters, digits, underscore and dash.
Generates " submitter_id " for node with additional identificator values . Resulting " submitter_id " only contains lowercase letters digits underscore and dash .
def format_submitter_id(node, args):
    submitter_id = node
    for v in args.values():
        if v:
            submitter_id += "_{}".format(v)
    submitter_id = submitter_id.lower()
    submitter_id = re.sub("[^a-z0-9-_]+", "-", submitter_id)
    return submitter_id.strip("-")
def format_submitter_id ( node , args ) : submitter_id = node for v in args . values ( ) : if v : submitter_id += "_{}" . format ( v ) submitter_id = submitter_id . lower ( ) submitter_id = re . sub ( "[^a-z0-9-_]+" , "-" , submitter_id ) return submitter_id . strip ( "-" )
Generates "submitter_id" for node with additional identificator values.
Generates " submitter_id " for node with additional identificator values .
"""
    Generates "submitter_id" for node with additional identificator values.
    Resulting "submitter_id" only contains lowercase letters, digits, underscore and dash.

    Args:
        node (str): node name for "submitter_id"
        args (dict): additional arguments to add to "submitter_id"

    Returns:
        str: generated "submitter_id"
    """
None
str
node
node name for "submitter_id"
node name for " submitter_id "
args
additional arguments to add to "submitter_id"
additional arguments to add to " submitter_id "