anthropics/anthropic-sdk-python v0.98.1

GitHub Releases Watchlist Tools

Summary

This is the README for anthropics/anthropic-sdk-python v0.98.1, a Python client library for accessing the Claude API.

0.98.1 (2026-05-04) Full Changelog: v0.98.0...v0.98.1 Chores fix typo in example (#1754) (de8ba13)
Original Article
View Cached Full Text

Cached at: 05/08/26, 08:19 AM

anthropics/anthropic-sdk-python

Source: https://github.com/anthropics/anthropic-sdk-python

Claude SDK for Python

PyPI version

The Claude SDK for Python provides access to the Claude API from Python applications.

Documentation

Full documentation is available at platform.claude.com/docs/en/api/sdks/python.

Installation

pip install anthropic

Getting started

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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Similar Articles

anthropics/anthropic-sdk-python v0.96.0

GitHub Releases Watchlist

Anthropic releases version 0.96.0 of the Claude SDK for Python, providing updated access to the Claude API for Python applications.

anthropics/anthropic-sdk-python v0.100.0

GitHub Releases Watchlist

This article announces version 0.100.0 of the official Anthropic SDK for Python, providing developers with updated tools to integrate Claude models into their applications via pip installation.

anthropics/anthropic-sdk-typescript sdk: v0.89.0

GitHub Releases Watchlist

Anthropic releases v0.89.0 of the Claude SDK for TypeScript, providing developers with updated access to the Claude API for server-side TypeScript and JavaScript applications.

anthropics/anthropic-sdk-typescript aws-sdk: v0.3.0

GitHub Releases Watchlist

Anthropic released version 0.3.0 of its official TypeScript SDK for the Claude API, enabling server-side JavaScript and TypeScript applications to easily integrate Claude models via NPM.