Example #1
0
def driver_handler(event, context):
    # TODO: better error handling
    assert ('request_id' in event and 'feature' in event and 'fields' in event
            and 'filter' in event)
    driver = Driver(event['request_id'])
    driver.run(event["filter"], event["fields"], event["feature"])
 def setUp(self):
     self.request_id = str(uuid.uuid4())
     self._driver = Driver(self.request_id)
Example #3
0
def driver_handler(event, context):
    assert ('request_id' in event and 'feature' in event and 'fields' in event
            and 'filter' in event)
    driver = Driver(event['request_id'])
    driver.run(event["filter"], event["fields"], event["feature"],
               event["genus_species"])