anthropics/anthropic-sdk-python

GitHub: anthropics/anthropic-sdk-python

Anthropic 官方 Python SDK,为 Python 应用提供便捷的 Claude API 调用能力。

Stars: 3760 | Forks: 782

# Claude SDK for Python [![PyPI 版本](https://img.shields.io/pypi/v/anthropic.svg)](https://pypi.org/project/anthropic/) Claude SDK for Python 允许从 Python 应用程序访问 [Claude API](https://docs.anthropic.com/en/api/)。 ## 文档 完整文档可在 **[platform.claude.com/docs/en/api/sdks/python](https://platform.claude.com/docs/en/api/sdks/python)** 获取。 ## 安装 ``` pip install anthropic ``` ## 快速入门 ``` 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) ``` ## 环境要求 Python 3.9+ ## 许可证 该项目基于 MIT 许可证授权。详情请参阅 [LICENSE](LICENSE) 文件。
标签:Claude API, DLL 劫持, Python, SOC Prime, 人工智能, 大语言模型, 开发工具, 无后门, 用户模式Hook绕过, 逆向工具