dockers/API/restV1.py
def commands_parser(raw_url):
    '''
    Universal, but unique command parser :D
    returns list of calls - no string
    '''
    commands = raw_url.split("&")
    calls = []
    for com in commands:
        if 'from' in com and 'till' in com:
            period = com.split("+")
            period0 = period[0].split('=')
            period1 = period[1].split('=')

            t0 = period0[1][4:].split("$")
            t1 = period1[1][4:].split("$")
            call = periods(period0[0], t0[0], t0[1], t0[2],
                                       t1[0], t1[1], t1[2])

        elif 'from' in com:
            print(1, com)
            period0 = com.split('=')
            t0 = period0[1][4:].split("$")
            call = from_date(period0[0], t0[0], t0[1], t0[2])

        elif 'till' in com:
            period0 = com.split('=')
            t0 = period0[1][4:].split("$")
            call = till_date(period0[0], t0[0], t0[1], t0[2])
        else:
            arg = [i for i in com if not i.isdigit()]
            value = [i for i in com if i.isdigit()]
            operator = arg[-1].replace('+','>').replace('-','<')
            arg = ''.join(arg[:-1])
            value = ''.join(value)
            call = " {} {} {} ".format(arg, operator, value)

        calls.append(call)
    return calls

    Universal, but unique command parser :D
    returns list of calls - no string
    
Universal, but unique command parser :D
returns list of calls - no string
Universal but unique command parser : D returns list of calls - no string
def commands_parser(raw_url):
    commands = raw_url.split("&")
    calls = []
    for com in commands:
        if 'from' in com and 'till' in com:
            period = com.split("+")
            period0 = period[0].split('=')
            period1 = period[1].split('=')
            t0 = period0[1][4:].split("$")
            t1 = period1[1][4:].split("$")
            call = periods(period0[0], t0[0], t0[1], t0[2],
                                       t1[0], t1[1], t1[2])
        elif 'from' in com:
            print(1, com)
            period0 = com.split('=')
            t0 = period0[1][4:].split("$")
            call = from_date(period0[0], t0[0], t0[1], t0[2])
        elif 'till' in com:
            period0 = com.split('=')
            t0 = period0[1][4:].split("$")
            call = till_date(period0[0], t0[0], t0[1], t0[2])
        else:
            arg = [i for i in com if not i.isdigit()]
            value = [i for i in com if i.isdigit()]
            operator = arg[-1].replace('+','>').replace('-','<')
            arg = ''.join(arg[:-1])
            value = ''.join(value)
            call = " {} {} {} ".format(arg, operator, value)
        calls.append(call)
    return calls
def commands_parser ( raw_url ) : commands = raw_url . split ( "&" ) calls = [ ] for com in commands : if 'from' in com and 'till' in com : period = com . split ( "+" ) period0 = period [ 0 ] . split ( '=' ) period1 = period [ 1 ] . split ( '=' ) t0 = period0 [ 1 ] [ 4 : ] . split ( "$" ) t1 = period1 [ 1 ] [ 4 : ] . split ( "$" ) call = periods ( period0 [ 0 ] , t0 [ 0 ] , t0 [ 1 ] , t0 [ 2 ] , t1 [ 0 ] , t1 [ 1 ] , t1 [ 2 ] ) elif 'from' in com : print ( 1 , com ) period0 = com . split ( '=' ) t0 = period0 [ 1 ] [ 4 : ] . split ( "$" ) call = from_date ( period0 [ 0 ] , t0 [ 0 ] , t0 [ 1 ] , t0 [ 2 ] ) elif 'till' in com : period0 = com . split ( '=' ) t0 = period0 [ 1 ] [ 4 : ] . split ( "$" ) call = till_date ( period0 [ 0 ] , t0 [ 0 ] , t0 [ 1 ] , t0 [ 2 ] ) else : arg = [ i for i in com if not i . isdigit ( ) ] value = [ i for i in com if i . isdigit ( ) ] operator = arg [ - 1 ] . replace ( '+' , '>' ) . replace ( '-' , '<' ) arg = '' . join ( arg [ : - 1 ] ) value = '' . join ( value ) call = " {} {} {} " . format ( arg , operator , value ) calls . append ( call ) return calls
Universal, but unique command parser :D
returns list of calls - no string
Universal but unique command parser : D returns list of calls - no string
'''
    Universal, but unique command parser :D
    returns list of calls - no string
    '''
raw_url