New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

localstack-client

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localstack-client - pypi Package Compare versions

Comparing version
2.0
to
2.1
+1
-1
localstack_client.egg-info/PKG-INFO
Metadata-Version: 2.1
Name: localstack-client
Version: 2.0
Version: 2.1
Summary: A lightweight Python client for LocalStack.

@@ -5,0 +5,0 @@ Home-page: https://github.com/localstack/localstack-python-client

@@ -11,2 +11,3 @@ import os

# TODO: deprecated, remove!
# NOTE: The ports listed below will soon become deprecated/removed, as the default in the

@@ -127,17 +128,2 @@ # latest version is to access all services via a single "edge service" (port 4566 by default)

def get_service_endpoint(
service: str, localstack_host: Optional[str] = None
) -> Optional[str]:
"""
Return the local endpoint URL for the given boto3 service (e.g., "s3").
If $AWS_ENDPOINT_URL is configured in the environment, it is returned directly.
Otherwise, the service endpoint is constructed from the dict of service ports (usually http://localhost:4566).
"""
env_endpoint_url = os.environ.get("AWS_ENDPOINT_URL", "").strip()
if env_endpoint_url:
return env_endpoint_url
endpoints = get_service_endpoints(localstack_host=localstack_host)
return endpoints.get(service)
def parse_localstack_host(given: str) -> Tuple[str, int]:

@@ -161,2 +147,11 @@ parts = given.split(":", 1)

def get_service_endpoints(localstack_host: Optional[str] = None) -> Dict[str, str]:
"""
Return the local endpoint URLs for the list of supported boto3 services (e.g., "s3", "lambda", etc).
If $AWS_ENDPOINT_URL is configured in the environment, it is returned directly. Otherwise,
the service endpoint is constructed from the dict of service ports (usually http://localhost:4566).
"""
env_endpoint_url = os.environ.get("AWS_ENDPOINT_URL", "").strip()
if env_endpoint_url:
return {key: env_endpoint_url for key in _service_ports.keys()}
if localstack_host is None:

@@ -174,2 +169,9 @@ localstack_host = os.environ.get(

def get_service_endpoint(
service: str, localstack_host: Optional[str] = None
) -> Optional[str]:
endpoints = get_service_endpoints(localstack_host=localstack_host)
return endpoints.get(service)
def get_service_port(service: str) -> Optional[int]:

@@ -176,0 +178,0 @@ ports = get_service_ports()

Metadata-Version: 2.1
Name: localstack-client
Version: 2.0
Version: 2.1
Summary: A lightweight Python client for LocalStack.

@@ -5,0 +5,0 @@ Home-page: https://github.com/localstack/localstack-python-client

@@ -73,4 +73,5 @@ # LocalStack Python Client

* `LOCALSTACK_HOST`: A `<hostname>:<port>` variable defining where to find LocalStack (default: `localhost:4566`).
* `USE_SSL`: Whether to use SSL when connecting to LocalStack (default: `False`).
* `AWS_ENDPOINT_URL`: The endpoint URL to connect to (takes precedence over `USE_SSL`/`LOCALSTACK_HOST` below)
* `LOCALSTACK_HOST` (deprecated): A `<hostname>:<port>` variable defining where to find LocalStack (default: `localhost:4566`).
* `USE_SSL` (deprecated): Whether to use SSL when connecting to LocalStack (default: `False`).

@@ -77,0 +78,0 @@ ### Enabling Transparent Local Endpoints

[metadata]
name = localstack-client
version = 2.0
version = 2.1
url = https://github.com/localstack/localstack-python-client

@@ -5,0 +5,0 @@ author = LocalStack Team