简报·YT
← 返回 GitHub 动态
anthropics/anthropic-sdk-python · 📌 手动指定 已完成

anthropics/anthropic-sdk-python v1.16.0

2026-10-20 17:49 · ⭐ 3985 · 模型 gpt-6-luna · GitHub Release 原文 ↗
#API更新 #客户端改进 #文档优化

anthropics/anthropic-sdk-python v1.16.0

本版本扩展了 Analytics 与 Admin API 能力,发布 User Profiles 正式版,并改进 SSE 事件处理和 Google Cloud API 支持。

✨ 新增能力

🛠 修复与改进

▸ Release Notes 英文原文(742 字符)
### Features * **api:** add data_refreshed_at and has_more to analytics report pages * **api:** add workspace rate-limit updates to the Admin API * **api:** make User Profiles generally available * **client:** yield server-sent events with unrecognized event names * **google-cloud:** use the v1 endpoints and add the organization endpoint ### Chores * **ci:** skip the changelog check on draft pull requests * **docs:** add credential expiry descriptions to the Managed Agents API reference * **docs:** add Messages API request descriptions * **docs:** correct plugin manifest_version and reach descriptions * **docs:** improve Managed Agents memory store descriptions * **docs:** improve Managed Agents vault and credential descriptions
▸ 主项目介绍 · anthropics/anthropic-sdk-python
▸ README 原文(同步于 2026-07-19 13:24)
# Claude SDK for Python [![PyPI version](https://img.shields.io/pypi/v/anthropic.svg)](https://pypi.org/project/anthropic/) The Claude SDK for Python provides access to the [Claude API](https://docs.anthropic.com/en/api/) from Python applications. ## Documentation Full documentation is available at **[platform.claude.com/docs/en/api/sdks/python](https://platform.claude.com/docs/en/api/sdks/python)**. ## Installation ```sh pip install anthropic ``` ## Getting started ```python import os from anthropic import Anthropic client = Anthropic( api_key=os.environ.get("ANTHROPIC_API_KEY"), # This is the default and can be omitted ) message = client.messages.create( max_tokens=1024, messages=[ { "role": "user", "content": "Hello, Claude", } ], model="claude-opus-4-6", ) print(message.content) ``` ## Requirements Python 3.9+ ## Contributing See [CONTRIBUTING.md](./CONTRIBUTING.md). ## License This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.