ddtrace-internal 0.0.0__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,41 @@
|
|
|
1
|
+
"""Internal Datadog Python package (stub)."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import TYPE_CHECKING
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from types import ModuleType
|
|
9
|
+
|
|
10
|
+
__version__ = "0.0.0"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def check_module_path(module: ModuleType | None, attr_path: str) -> bool:
|
|
14
|
+
"""Helper function to safely check if a nested attribute path exists on a module.
|
|
15
|
+
|
|
16
|
+
Args:
|
|
17
|
+
module: The root module object
|
|
18
|
+
attr_path: Dot-separated path to the attribute (e.g., "flows.llm_flows.functions")
|
|
19
|
+
|
|
20
|
+
Returns:
|
|
21
|
+
bool: True if the full path exists, False otherwise
|
|
22
|
+
|
|
23
|
+
Example:
|
|
24
|
+
check_module_path(adk, "flows.llm_flows.functions.__call_tool_async")
|
|
25
|
+
check_module_path(adk, "agents.llm_agent.LlmAgent")
|
|
26
|
+
"""
|
|
27
|
+
if not module:
|
|
28
|
+
return False
|
|
29
|
+
|
|
30
|
+
try:
|
|
31
|
+
current = module
|
|
32
|
+
for attr in attr_path.split("."):
|
|
33
|
+
if not hasattr(current, attr):
|
|
34
|
+
return False
|
|
35
|
+
current = getattr(current, attr)
|
|
36
|
+
|
|
37
|
+
return True
|
|
38
|
+
except (ImportError, AttributeError):
|
|
39
|
+
# Some modules may raise ImportError when accessing attributes that require
|
|
40
|
+
# additional dependencies (e.g., ContainerCodeExecutor requiring Docker for google-adk and an extra pkg install)
|
|
41
|
+
return False
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ddtrace-internal
|
|
3
|
+
Version: 0.0.0
|
|
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
|
+
## Running tests
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
cd packages/ddtrace-internal
|
|
23
|
+
riot run # all supported Python versions
|
|
24
|
+
riot run -p 3.12 # a single version
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`riot` installs the package fresh into each test venv, so it must be run from this directory (not the repo root). In CI, `riot --wheel-path <dir>` is used instead to test the actual built wheel.
|
|
28
|
+
|
|
29
|
+
## Layout
|
|
30
|
+
|
|
31
|
+
- `src/_ddtrace_internal/` — package root
|
|
32
|
+
- `tests/<module_path>/test.py` — tests, mirroring the source layout (e.g. `src/_ddtrace_internal/foo.py` → `tests/foo/test.py`)
|
|
33
|
+
- `riotfile.py` — test venv/matrix definitions
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
_ddtrace_internal/__init__.py,sha256=uu_hT7NXsJgWs4mipdqJ4KQ0GCkd00T5ogiJKF905_0,1251
|
|
2
|
+
ddtrace_internal-0.0.0.dist-info/METADATA,sha256=m2o5nVmdZKZl0vwK8qkqQ2Cl0MTIGi6ddH-_0NphFl4,997
|
|
3
|
+
ddtrace_internal-0.0.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
4
|
+
ddtrace_internal-0.0.0.dist-info/top_level.txt,sha256=xjnOaPwhwi4U60TP24Vgq1LkyopIe3D2bZ2lClwCVPU,18
|
|
5
|
+
ddtrace_internal-0.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
_ddtrace_internal
|