coze-coding-utils 0.1.4__tar.gz → 0.1.6__tar.gz
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.
- {coze_coding_utils-0.1.4 → coze_coding_utils-0.1.6}/PKG-INFO +1 -1
- {coze_coding_utils-0.1.4 → coze_coding_utils-0.1.6}/pyproject.toml +1 -1
- {coze_coding_utils-0.1.4 → coze_coding_utils-0.1.6}/src/coze_coding_utils/runtime_ctx/context.py +0 -25
- {coze_coding_utils-0.1.4 → coze_coding_utils-0.1.6}/.gitignore +0 -0
- {coze_coding_utils-0.1.4 → coze_coding_utils-0.1.6}/LICENSE +0 -0
- {coze_coding_utils-0.1.4 → coze_coding_utils-0.1.6}/README.md +0 -0
- {coze_coding_utils-0.1.4 → coze_coding_utils-0.1.6}/src/coze_coding_utils/__init__.py +0 -0
- {coze_coding_utils-0.1.4 → coze_coding_utils-0.1.6}/src/coze_coding_utils/runtime_ctx/__init__.py +0 -0
{coze_coding_utils-0.1.4 → coze_coding_utils-0.1.6}/src/coze_coding_utils/runtime_ctx/context.py
RENAMED
|
@@ -50,25 +50,6 @@ def new_context(method: str, headers: Optional[Mapping[str, str]] = None) -> Con
|
|
|
50
50
|
ctx.benefit_biz_scene = headers[HEADER_BENEFIT_BIZ_SCENE]
|
|
51
51
|
return ctx
|
|
52
52
|
|
|
53
|
-
def set_use_ppe(ctx: Context, use_ppe: str) -> Context:
|
|
54
|
-
ctx.x_use_ppe = use_ppe
|
|
55
|
-
return ctx
|
|
56
|
-
|
|
57
|
-
def set_benefit_biz_scene(ctx: Context, benefit_biz_scene: str) -> Context:
|
|
58
|
-
ctx.benefit_biz_scene = benefit_biz_scene
|
|
59
|
-
return ctx
|
|
60
|
-
|
|
61
|
-
def set_x_tt_env_fe(ctx: Context, x_tt_env_fe: str) -> Context:
|
|
62
|
-
ctx.x_tt_env_fe = x_tt_env_fe
|
|
63
|
-
return ctx
|
|
64
|
-
|
|
65
|
-
def set_x_tt_env(ctx: Context, x_tt_env: str) -> Context:
|
|
66
|
-
ctx.x_tt_env = x_tt_env
|
|
67
|
-
return ctx
|
|
68
|
-
|
|
69
|
-
def set_logid(ctx: Context, logid: str) -> Context:
|
|
70
|
-
ctx.logid = logid
|
|
71
|
-
return ctx
|
|
72
53
|
|
|
73
54
|
def default_headers(ctx: Context | None) -> Dict[str, str]:
|
|
74
55
|
"""从上下文生成请求头字典,仅包含已设置的字段。"""
|
|
@@ -90,10 +71,4 @@ def default_headers(ctx: Context | None) -> Dict[str, str]:
|
|
|
90
71
|
__all__ = [
|
|
91
72
|
"Context",
|
|
92
73
|
"new_context",
|
|
93
|
-
"default_headers",
|
|
94
|
-
"set_use_ppe",
|
|
95
|
-
"set_benefit_biz_scene",
|
|
96
|
-
"set_x_tt_env_fe",
|
|
97
|
-
"set_x_tt_env",
|
|
98
|
-
"set_logid",
|
|
99
74
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coze_coding_utils-0.1.4 → coze_coding_utils-0.1.6}/src/coze_coding_utils/runtime_ctx/__init__.py
RENAMED
|
File without changes
|