def str_spec(name):
    """ Split into a tuple of name and specifier, delimited by ``{...}``.

    Parameters
    ----------
    name : str
       string to split

    Returns
    -------
    tuple of str
       returns the name and the specifier (without delimiter) in a tuple

    Examples
    --------
    >>> str_spec('hello')
    ('hello', None)
    >>> str_spec('hello{TEST}')
    ('hello', 'TEST')
    """
    if not name.endswith('}'):
        return name, None
    lname = name[:-1].split('{')
    return '{'.join(lname[:-1]), lname[-1]
