python-sdk
使用 inference.sh 构建 Python AI 应用
Python 团队需要针对 AI 应用、代理、流式传输、文件和会话的清晰 SDK 指南。此技能为 Codex、Claude 和 Claude Code 提供 inference.sh 的实用模式。
安装前请停下并请求确认。
请审查安装计划,并在更改文件前获得用户明确同意。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "python-sdk" from https://skillstore.io/skills/inferen-sh-python-sdk.md and its manifest at https://skillstore.io/api/skills/inferen-sh-python-sdk/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“python-sdk”。 为新的后端服务创建第一个 inference.sh Python 示例。
预期结果:
一份简洁的设置清单、认证指南,以及按步骤描述的最小应用运行示例。
正在使用“python-sdk”。 说明如何处理 100 个提示而不让服务过载。
预期结果:
一个包含并发限制、重试策略、进度报告和失败收集的异步批处理计划。
正在使用“python-sdk”。 帮我构建一个发送已批准通知的代理。
预期结果:
一个包含审批点、安全参数处理、webhook 配置和结果提交指南的工具设计。
安全审计
高风险Most static findings are false positives from Markdown code fences, placeholder API keys, documentation links, session IDs, and file handling examples. I confirmed two unsafe eval examples that evaluate agent supplied expressions, and added one semantic finding for the broad Bash allowlist. No prompt injection evidence was found in the reviewed files.
已确认安全问题 (1)
能力复核项 (2)
这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。
风险因素
📁 文件系统访问 (7)
🔑 环境变量 (39)
🌐 网络访问 (19)
⚡ 包含脚本 (4)
⚙️ 外部命令 (59)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/inferen-sh-python-sdk/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/inferen-sh-python-sdk?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/inferen-sh-python-sdk?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/inferen-sh-python-sdk/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/inferen-sh-python-sdk.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
inferen-sh. (2026). python-sdk security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/inferen-sh-python-sdk/audits/4BibTeX 引用
@techreport{inferen-sh-inferen-sh-python-sdk-2026,
author = {inferen-sh},
title = {python-sdk security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/inferen-sh-python-sdk/audits/4},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "python-sdk security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "inferen-sh"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/inferen-sh-python-sdk/audits/4"
identifiers:
- type: other
value: "skillstore:inferen-sh-python-sdk:audit:4"
description: "Skillstore immutable audit report identifier"
比较变体
2 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
inference-sh-9-python-sdk
2026-09-09
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
集成 AI 应用
将 inference.sh 应用调用添加到 Python 后端,并包含认证、输入、输出和错误处理。
构建代理工作流
创建包含工具、子代理、技能、流式回调和人工审批步骤的代理。
自动化批处理任务
使用异步请求、并发限制、重试和进度跟踪处理大量提示或文件。
试试这些提示
向我展示使用环境 API key 运行一个 inference.sh 应用的最简安全 Python 设置。
帮我为 Python 命令行工具中的长时间 inference.sh 任务添加流式进度更新。
设计一个 inference.sh Python 代理,包含一个已批准的客户端工具、一个应用工具,以及清晰的工具结果流程。
审查我计划中的 Python 集成,涵盖异步请求、文件上传、重试、会话、可观测性和密钥处理。
最佳实践
- 将 API keys 存储在环境变量或托管密钥中,而不是源文件中。
- 对于会发送消息、写入文件或调用 webhooks 的工具,要求人工审批。
- 为长时间运行的异步或流式工作负载使用并发限制、超时和重试。
避免
- 不要将代理提供的字符串作为 Python 代码求值。
- 除非工作流需要公开访问,否则不要将上传的文件设为公开。
- 不要让会话保持活动状态超过工作负载所需的时间。
常见问题
此技能涵盖哪个 package?
它支持异步 Python 代码吗?
它能帮助处理文件上传吗?
它能构建 AI 代理吗?
它包含 SDK 实现吗?
用户应首先保护什么?
开发者详情
作者
inferen-sh许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
a06681402992ceae98ba04d54cfd4ab004862696
维护新鲜度
2026/7/18
使用量
2 次下载 · 157 次浏览
文件结构