E2B
SDK / 工具让 AI agent 跑代码的开源安全沙箱——agent 应用事实上的执行层。
- sandbox
- code-execution
- sdk
- agents
Anthropic API 的官方 Python 客户端。
Anthropic API 的官方 Python 客户端——Messages、Batch、Files、Token Counting 与 Vision。Pythonic 风格,支持同步 / 异步 / 流式;Claude Python 生态的权威客户端。
最适合直接调用 Claude API 的 Python 服务、做批量处理的异步后端,以及需要为 UI 流式输出的的 notebooks /脚本。与 FastAPI 服务化、LangChain 编排、任何数据库记忆层都能很好搭配。
pip install anthropic 导入前设置 ANTHROPIC_API_KEY(如果用 Bedrock / Vertex 还可以设 ANTHROPIC_BASE_URL)。
SDK 对 prompt caching 版本差异跟得很紧——生产建议 pin 到 major 版本。长时间 batch 任务用 AsyncAnthropic 客户端;sync client 会卡事件循环。
收录日期