ddtrace-internal 0.0.0rc8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Internal Datadog Python package (stub)."""
|
|
2
|
+
|
|
3
|
+
__version__ = "0.0.0"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def check_module_path(module, attr_path):
|
|
7
|
+
"""
|
|
8
|
+
Helper function to safely check if a nested attribute path exists on a module.
|
|
9
|
+
|
|
10
|
+
Args:
|
|
11
|
+
module: The root module object
|
|
12
|
+
attr_path: Dot-separated path to the attribute (e.g., "flows.llm_flows.functions")
|
|
13
|
+
|
|
14
|
+
Returns:
|
|
15
|
+
bool: True if the full path exists, False otherwise
|
|
16
|
+
|
|
17
|
+
Example:
|
|
18
|
+
check_module_path(adk, "flows.llm_flows.functions.__call_tool_async")
|
|
19
|
+
check_module_path(adk, "agents.llm_agent.LlmAgent")
|
|
20
|
+
"""
|
|
21
|
+
if not module:
|
|
22
|
+
return False
|
|
23
|
+
|
|
24
|
+
try:
|
|
25
|
+
current = module
|
|
26
|
+
for attr in attr_path.split("."):
|
|
27
|
+
if not hasattr(current, attr):
|
|
28
|
+
return False
|
|
29
|
+
current = getattr(current, attr)
|
|
30
|
+
|
|
31
|
+
return True
|
|
32
|
+
except (ImportError, AttributeError):
|
|
33
|
+
# Some modules may raise ImportError when accessing attributes that require
|
|
34
|
+
# additional dependencies (e.g., ContainerCodeExecutor requiring Docker for google-adk and an extra pkg install)
|
|
35
|
+
return False
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ddtrace-internal
|
|
3
|
+
Version: 0.0.0rc8
|
|
4
|
+
Summary: Stub internal Datadog Python package (ddtrace-internal).
|
|
5
|
+
Author-email: "Datadog, Inc." <dev@datadoghq.com>
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
# ddtrace-internal
|
|
10
|
+
|
|
11
|
+
Stub Python distribution for code used by multiple products in dd-trace-py
|
|
12
|
+
|
|
13
|
+
## Local install (editable)
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
python -m pip install -e .
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Layout
|
|
20
|
+
|
|
21
|
+
- `src/ddtrace_internal/` — package root
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
_ddtrace_internal/__init__.py,sha256=srHDWce-er8YQmJyfWVfWLJyR-HAxN-uatTvcdgyXWQ,1102
|
|
2
|
+
ddtrace_internal-0.0.0rc8.dist-info/METADATA,sha256=kWlew31dnYlABEU2A-AlARZaoWpUefLz43kf87ak3K4,462
|
|
3
|
+
ddtrace_internal-0.0.0rc8.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
4
|
+
ddtrace_internal-0.0.0rc8.dist-info/top_level.txt,sha256=xjnOaPwhwi4U60TP24Vgq1LkyopIe3D2bZ2lClwCVPU,18
|
|
5
|
+
ddtrace_internal-0.0.0rc8.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
_ddtrace_internal
|