Mappers

DemographicInfoMapper

class q2_cores.UltraData.mappers.demographic_info.DemographicInfoMapper(list_of_queries, cache_key, hq_credentials=None, zone_context=None)[source]

Bases: BaseDemographicInfoMapper

async execute()[source]
Return type:

DemographicInfo

  • Calls .execute on all queries in self.list_of_queries

  • Calls .parse_returned_queries on the results

static parse_returned_queries(list_of_queries)[source]

After all queries in list_of_queries have been run, this parses the results into a standardized response type.

Return type:

DemographicInfo

UpdateDemographicInfoMapper

class q2_cores.UltraData.mappers.update_demographic_info.UpdateDemographicInfoMapper(list_of_queries, hq_credentials=None, zone_context=None)[source]

Bases: BaseUpdateDemographicInfoMapper

static parse_returned_queries(list_of_queries)[source]

Returns True if all queries were successful, False if there was an error

Return type:

bool