MCPcopy Index your code
hub / github.com/zappa/Zappa / import_module_and_get_function

Method import_module_and_get_function

zappa/handler.py:281–286  ·  view source on GitHub ↗

Given a modular path to a function, import that module and return the function.

(whole_function)

Source from the content-addressed store, hash-verified

279
280 @staticmethod
281 def import_module_and_get_function(whole_function):
282 """
283 Given a modular path to a function, import that module
284 and return the function.
285 """
286 return import_and_get_function(whole_function)
287
288 @classmethod
289 def lambda_handler(cls, event, context): # pragma: no cover

Callers 2

handlerMethod · 0.95
_process_exceptionMethod · 0.80

Calls 1

import_and_get_functionFunction · 0.85

Tested by

no test coverage detected