labpack/mapping/data.py
def segment_path(dot_path):

    '''  a function to separate the path segments in a dot_path key

    :param dot_path: string with dot path syntax
    :return: list of string segments of path
    '''

    import re
    digit_pat = re.compile('\[(\d+)\]')
    key_list = dot_path.split('.')
    segment_list = []
    for key in key_list:
        if key:
            item_list = digit_pat.split(key)
            for item in item_list:
                if item:
                    segment_list.append(item)

    return segment_list
  a function to separate the path segments in a dot_path key

    :param dot_path: string with dot path syntax
    :return: list of string segments of path
    
a function to separate the path segments in a dot_path key
a function to separate the path segments in a dot_path key
def segment_path(dot_path):
    import re
    digit_pat = re.compile('\[(\d+)\]')
    key_list = dot_path.split('.')
    segment_list = []
    for key in key_list:
        if key:
            item_list = digit_pat.split(key)
            for item in item_list:
                if item:
                    segment_list.append(item)
    return segment_list
def segment_path ( dot_path ) : import re digit_pat = re . compile ( '\[(\d+)\]' ) key_list = dot_path . split ( '.' ) segment_list = [ ] for key in key_list : if key : item_list = digit_pat . split ( key ) for item in item_list : if item : segment_list . append ( item ) return segment_list
a function to separate the path segments in a dot_path key
a function to separate the path segments in a dot_path key
'''  a function to separate the path segments in a dot_path key

    :param dot_path: string with dot path syntax
    :return: list of string segments of path
    '''
list of string segments of path
list of string segments of path
dot_path
string with dot path syntax
string with dot path syntax