How to use the awswrangler.__init__.DynamicInstantiate function in awswrangler

To help you get started, we’ve selected a few awswrangler examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github awslabs / aws-data-wrangler / awswrangler / __init__.py View on Github external
__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())
github awslabs / aws-data-wrangler / awswrangler / __init__.py View on Github external
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())
github awslabs / aws-data-wrangler / awswrangler / __init__.py View on Github external
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())
github awslabs / aws-data-wrangler / awswrangler / __init__.py View on Github external
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())
github awslabs / aws-data-wrangler / awswrangler / __init__.py View on Github external
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())
github awslabs / aws-data-wrangler / awswrangler / __init__.py View on Github external
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())
github awslabs / aws-data-wrangler / awswrangler / __init__.py View on Github external
def __getattr__(self, name):
        if DynamicInstantiate.__default_session is None:
            DynamicInstantiate.__default_session = Session()
        return getattr(getattr(DynamicInstantiate.__default_session, self._service), name)
github awslabs / aws-data-wrangler / awswrangler / __init__.py View on Github external
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())
github awslabs / aws-data-wrangler / awswrangler / __init__.py View on Github external
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())