--- id: anthropic version: "0.121.0" license: MIT license_treatment: permissive maintenance: active --- # anthropic — The official Python library for the anthropic API License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install anthropic uv add anthropic poetry add anthropic ## Description # 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](https://github.com/anthropics/anthropic-sdk-python/tree/main/./CONTRIBUTING.md). ## License This project is licensed under the MIT License. See the [LICENSE](https://github.com/anthropics/anthropic-sdk-python/tree/main/LICENSE) file for details. ## AI interpretation — verify before relying The Claude SDK for Python provides direct access to Anthropic's Claude API, enabling Python applications to send messages to Claude models and receive responses. Verdict: A well-maintained, actively developed official SDK with low install friction, permissive MIT licensing, and no known vulnerabilities. Suitable for production use in Python 3.9+ applications needing Claude API access. [View on SkillFed](https://skillfed.io/packages/anthropic) · [View on PyPI](https://pypi.org/project/anthropic/)