cold-jackal-89755
10/27/2023, 6:49 PMpython_awslambda
target) Is there a difference from importing from a modules init vs using a relative import? For example, lets say I have a utils module that I need a single function from. It's listed in utils __init__.py
so I can just import it like from utils import helper_function
. But my problem is that the __init__.py
also imports some other large helper functions with dependencies that I absolutely don't need. (maybe other_helper_function
requires pandas)
I tried to import helper_function
as a relative import from ..utils.helper_file import helper_function
but my python_awslambda
zip file will include other_helper_function
Is there any way to only import helper_function
into the zip? Or do I need to explicitly exclude other_helper_function
in my BUILD file?broad-processor-92400
10/27/2023, 8:03 PMcold-jackal-89755
10/27/2023, 8:06 PMbroad-processor-92400
10/27/2023, 8:13 PMcold-jackal-89755
10/27/2023, 8:14 PMcold-jackal-89755
10/27/2023, 8:15 PM