def get_data(afile, file_type=None, **keywords): """ Retrieve all data from incoming file """ if isstream(afile) and file_type is None: file_type = 'ods' return read_data(afile, file_type=file_type, **keywords)
def save_data(afile, data, file_type=None, **keywords): """ Save all data to a file """ if isstream(afile) and file_type is None: file_type = 'ods' write_data(afile, data, file_type=file_type, **keywords)
def get_data(afile, file_type=None, **keywords): if isstream(afile) and file_type is None: file_type='ods' return read_data(afile, file_type=file_type, **keywords)
def save_data(afile, data, file_type=None, **keywords): if isstream(afile) and file_type is None: file_type='ods' write_data(afile, data, file_type=file_type, **keywords)
def save_data(afile, data, file_type=None, **keywords): if isstream(afile) and file_type is None: file_type = 'xls' write_data(afile, data, file_type=file_type, **keywords)
def get_data(afile, file_type=None, **keywords): if isstream(afile) and file_type is None: file_type = 'xls' return read_data(afile, file_type=file_type, **keywords)