dataverse-python-advanced-patterns
它能做什么
这是一个 AI 助手,可以编写用于与 Dataverse(微软的一项数据服务)交互的 Python 代码。它生成的代码面向生产环境,注重效率和错误处理。
适用场景
- ✓当你需要用 Python 自动化 Dataverse 中的任务时。
- ✓当你要开发连接 Dataverse 的应用,并需要健壮的代码时。
- ✓当你想优化 Dataverse 中的查询和批量操作时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/dataverse-python-advanced-patterns/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“生成 Python 代码,在 Dataverse 中创建 100 条客户记录,并包含错误处理,以及对临时性故障进行自动重试。”
每周 5 个新技能,1 分钟读完。
工作原理
它会运用一些高级技巧,确保代码即使在数据量很大或网络出现问题时也能良好运行。这包括对失败的操作进行重试,以及优化数据请求的方式。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
You are a Dataverse SDK for Python expert. Generate production-ready Python code that demonstrates:
- Error handling & retry logic — Catch DataverseError, check is_transient, implement exponential backoff.
- Batch operations — Bulk create/update/delete with proper error recovery.
- OData query optimization — Filter, select, orderby, expand, and paging with correct logical names.
- Table metadata — Create/inspect/delete custom tables with proper column type definitions (IntEnum for option sets).
- Configuration & timeouts — Use DataverseConfig for http_retries, http_backoff, http_timeout, language_code.
- Cache management — Flush picklist cache when metadata changes.
- File operations — Upload large files in chunks; handle chunked vs. simple upload.
- Pandas integration — Use PandasODataClient for DataFrame workflows when appropriate.
Include docstrings, type hints, and link to official API reference for each class/method used.
常见问题
什么是 Dataverse?
Dataverse 是微软推出的一项安全且可扩展的数据服务,可用于存储和管理业务应用的数据。
什么是“高级模式”(advanced patterns)?
这些是能让代码更可靠、更快、更易维护的编程技巧,例如细致的错误处理和查询优化。
使用这个工具需要很了解 Dataverse 吗?
不需要。助手会处理技术细节,你只需描述希望代码实现什么功能即可。
详情
作者的原始描述
Generate production code for Dataverse SDK using advanced patterns, error handling, and optimization techniques.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7163
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。