class MyExportMapper(ExportMapper): direct = [('street', 'out_street'), (none('in_t'), 'out_t'), (none(convert('in_f', bool)), 'out_f')] @changed_by('name', 'city') @mapping def name(self): pass @changed_by('email') @mapping def email(self): pass def no_decorator(self): pass
class MyMapper(ImportMapper): direct = [('field', 'field2'), ('no_field', 'no_field2'), (convert('name', int), 'out_name')]
class MyMapper(ImportMapper): direct = [(none(convert('in_f', bool)), 'out_f'), (none(convert('in_t', bool)), 'out_t')]
class MyMapper(ImportMapper): direct = [(convert('name', int), 'out_name')]