Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
__default_session = None
def __init__(self, service):
self._service = service
def __getattr__(self, name):
if DynamicInstantiate.__default_session is None:
DynamicInstantiate.__default_session = Session()
return getattr(getattr(DynamicInstantiate.__default_session, self._service), name)
if importlib.util.find_spec("pyspark"): # type: ignore
from awswrangler.spark import Spark # noqa
s3 = DynamicInstantiate("s3")
emr = DynamicInstantiate("emr")
glue = DynamicInstantiate("glue")
spark = DynamicInstantiate("spark")
pandas = DynamicInstantiate("pandas")
athena = DynamicInstantiate("athena")
redshift = DynamicInstantiate("redshift")
sagemaker = DynamicInstantiate("sagemaker")
cloudwatchlogs = DynamicInstantiate("cloudwatchlogs")
logging.getLogger("awswrangler").addHandler(logging.NullHandler())
if DynamicInstantiate.__default_session is None:
DynamicInstantiate.__default_session = Session()
return getattr(getattr(DynamicInstantiate.__default_session, self._service), name)
if importlib.util.find_spec("pyspark"): # type: ignore
from awswrangler.spark import Spark # noqa
s3 = DynamicInstantiate("s3")
emr = DynamicInstantiate("emr")
glue = DynamicInstantiate("glue")
spark = DynamicInstantiate("spark")
pandas = DynamicInstantiate("pandas")
athena = DynamicInstantiate("athena")
redshift = DynamicInstantiate("redshift")
sagemaker = DynamicInstantiate("sagemaker")
cloudwatchlogs = DynamicInstantiate("cloudwatchlogs")
logging.getLogger("awswrangler").addHandler(logging.NullHandler())
def __init__(self, service):
self._service = service
def __getattr__(self, name):
if DynamicInstantiate.__default_session is None:
DynamicInstantiate.__default_session = Session()
return getattr(getattr(DynamicInstantiate.__default_session, self._service), name)
if importlib.util.find_spec("pyspark"): # type: ignore
from awswrangler.spark import Spark # noqa
s3 = DynamicInstantiate("s3")
emr = DynamicInstantiate("emr")
glue = DynamicInstantiate("glue")
spark = DynamicInstantiate("spark")
pandas = DynamicInstantiate("pandas")
athena = DynamicInstantiate("athena")
redshift = DynamicInstantiate("redshift")
sagemaker = DynamicInstantiate("sagemaker")
cloudwatchlogs = DynamicInstantiate("cloudwatchlogs")
logging.getLogger("awswrangler").addHandler(logging.NullHandler())
DynamicInstantiate.__default_session = Session()
return getattr(getattr(DynamicInstantiate.__default_session, self._service), name)
if importlib.util.find_spec("pyspark"): # type: ignore
from awswrangler.spark import Spark # noqa
s3 = DynamicInstantiate("s3")
emr = DynamicInstantiate("emr")
glue = DynamicInstantiate("glue")
spark = DynamicInstantiate("spark")
pandas = DynamicInstantiate("pandas")
athena = DynamicInstantiate("athena")
redshift = DynamicInstantiate("redshift")
sagemaker = DynamicInstantiate("sagemaker")
cloudwatchlogs = DynamicInstantiate("cloudwatchlogs")
logging.getLogger("awswrangler").addHandler(logging.NullHandler())
def __getattr__(self, name):
if DynamicInstantiate.__default_session is None:
DynamicInstantiate.__default_session = Session()
return getattr(getattr(DynamicInstantiate.__default_session, self._service), name)
if importlib.util.find_spec("pyspark"): # type: ignore
from awswrangler.spark import Spark # noqa
s3 = DynamicInstantiate("s3")
emr = DynamicInstantiate("emr")
glue = DynamicInstantiate("glue")
spark = DynamicInstantiate("spark")
pandas = DynamicInstantiate("pandas")
athena = DynamicInstantiate("athena")
redshift = DynamicInstantiate("redshift")
sagemaker = DynamicInstantiate("sagemaker")
cloudwatchlogs = DynamicInstantiate("cloudwatchlogs")
logging.getLogger("awswrangler").addHandler(logging.NullHandler())
def __getattr__(self, name):
if DynamicInstantiate.__default_session is None:
DynamicInstantiate.__default_session = Session()
return getattr(getattr(DynamicInstantiate.__default_session, self._service), name)
if importlib.util.find_spec("pyspark"): # type: ignore
from awswrangler.spark import Spark # noqa
s3 = DynamicInstantiate("s3")
emr = DynamicInstantiate("emr")
glue = DynamicInstantiate("glue")
spark = DynamicInstantiate("spark")
pandas = DynamicInstantiate("pandas")
athena = DynamicInstantiate("athena")
redshift = DynamicInstantiate("redshift")
sagemaker = DynamicInstantiate("sagemaker")
cloudwatchlogs = DynamicInstantiate("cloudwatchlogs")
logging.getLogger("awswrangler").addHandler(logging.NullHandler())
def __getattr__(self, name):
if DynamicInstantiate.__default_session is None:
DynamicInstantiate.__default_session = Session()
return getattr(getattr(DynamicInstantiate.__default_session, self._service), name)
def __init__(self, service):
self._service = service
def __getattr__(self, name):
if DynamicInstantiate.__default_session is None:
DynamicInstantiate.__default_session = Session()
return getattr(getattr(DynamicInstantiate.__default_session, self._service), name)
if importlib.util.find_spec("pyspark"): # type: ignore
from awswrangler.spark import Spark # noqa
s3 = DynamicInstantiate("s3")
emr = DynamicInstantiate("emr")
glue = DynamicInstantiate("glue")
spark = DynamicInstantiate("spark")
pandas = DynamicInstantiate("pandas")
athena = DynamicInstantiate("athena")
redshift = DynamicInstantiate("redshift")
sagemaker = DynamicInstantiate("sagemaker")
cloudwatchlogs = DynamicInstantiate("cloudwatchlogs")
logging.getLogger("awswrangler").addHandler(logging.NullHandler())
self._service = service
def __getattr__(self, name):
if DynamicInstantiate.__default_session is None:
DynamicInstantiate.__default_session = Session()
return getattr(getattr(DynamicInstantiate.__default_session, self._service), name)
if importlib.util.find_spec("pyspark"): # type: ignore
from awswrangler.spark import Spark # noqa
s3 = DynamicInstantiate("s3")
emr = DynamicInstantiate("emr")
glue = DynamicInstantiate("glue")
spark = DynamicInstantiate("spark")
pandas = DynamicInstantiate("pandas")
athena = DynamicInstantiate("athena")
redshift = DynamicInstantiate("redshift")
sagemaker = DynamicInstantiate("sagemaker")
cloudwatchlogs = DynamicInstantiate("cloudwatchlogs")
logging.getLogger("awswrangler").addHandler(logging.NullHandler())