def preprocess_batch(d): return list(iter_pipe(d, BATCH_PROCESSORS))[0]
def preprocess_psql(): # Do not import at load time, because we don't want to have a hard # dependency to psycopg2, which is imported on nominatim module. PSQL_PROCESSORS = [import_by_path(path) for path in config.PSQL_PROCESSORS] return iter_pipe(None, PSQL_PROCESSORS)