Example #1
0
def parameters_transformer(api_endpoint, parameters):
    join_params(parameters, ['idx'], '|')

    if 'file' in parameters and os.path.isfile(parameters.get('file')):
        api_endpoint.add_file(open(parameters.pop('file'), 'rb'))

    return parameters
Example #2
0
def parameters_transformer(api_endpoint, parameters):
    join_params(parameters, ['idx'], '|')

    if 'file' in parameters and os.path.isfile(parameters.get('file')):
        api_endpoint.add_file(open(parameters.pop('file'), 'rb'))

    return parameters
Example #3
0
def parameters_transformer(_, parameters):
    join_params(parameters, ['idx'], '|')

    if 'file' in parameters and os.path.isfile(parameters.get('file')):
        parameters['__files'] = {'file': open(parameters.pop('file'), 'rb')}

    return parameters
Example #4
0
def parameters_transformer(_, parameters):

    join_params(parameters, ['to', 'id'])
    join_params(parameters, ['param1', 'param2', 'param3', 'param4', 'idx'],
                '|')

    return parameters
def parameters_transformer(_, parameters):

    join_params(parameters, ['to', 'id'])
    join_params(parameters, ['param1', 'param2', 'param3', 'param4', 'idx'],
                '|')

    if 'from_' in parameters:
        parameters['from'] = parameters.pop('from_')

    return parameters
Example #6
0
def parameters_transformer(_, parameters):
    join_params(parameters, ['idx'], '|')
    return parameters