MCPcopy Create free account
hub / github.com/ExtendDB/extenddb / make_client

Function make_client

samples/stream_consumer.py:33–38  ·  view source on GitHub ↗
(service: str = "dynamodb")

Source from the content-addressed store, hash-verified

31 ts = time.strftime("%H:%M:%S")
32 print(f"[{ts}] [{thread:6s}] {msg}", flush=True)
33def make_client(service: str = "dynamodb"):
34 return boto3.client(
35 service,
36 region_name=os.environ.get("AWS_DEFAULT_REGION", "us-east-1"),
37 endpoint_url=ENDPOINT,
38 )
39def wait_for_active(client, table_name: str, timeout: float = 60.0) -> None:
40 deadline = time.monotonic() + timeout
41 while time.monotonic() < deadline:

Callers 3

writer_threadFunction · 0.70
poller_threadFunction · 0.70
mainFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected