MCPcopy
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / is_boto3_client

Function is_boto3_client

scrapegraphai/utils/copy.py:17–32  ·  view source on GitHub ↗

Function for understanding if the script is using boto3 or not

(obj)

Source from the content-addressed store, hash-verified

15
16
17def is_boto3_client(obj):
18 """
19 Function for understanding if the script is using boto3 or not
20 """
21 import sys
22
23 boto3_module = sys.modules.get("boto3")
24
25 if boto3_module:
26 try:
27 from botocore.client import BaseClient
28
29 return isinstance(obj, BaseClient)
30 except (AttributeError, ImportError):
31 return False
32 return False
33
34
35def safe_deepcopy(obj: Any) -> Any:

Callers 1

safe_deepcopyFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected