anthropic 0.89.0


pip install anthropic

  Latest version

Released: Apr 03, 2026


Meta
Author: Anthropic
Requires Python: >=3.9

Classifiers

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Operating System
  • MacOS
  • Microsoft :: Windows
  • OS Independent
  • POSIX
  • POSIX :: Linux

Programming Language
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

Topic
  • Software Development :: Libraries :: Python Modules

Typing
  • Typed

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.

0.89.0 Apr 03, 2026
0.88.0 Apr 01, 2026
0.87.0 Mar 31, 2026
0.86.0 Mar 18, 2026
0.85.0 Mar 16, 2026
0.84.0 Feb 25, 2026
0.83.0 Feb 19, 2026
0.82.0 Feb 18, 2026
0.81.0 Feb 18, 2026
0.80.0 Feb 17, 2026
0.79.0 Feb 07, 2026
0.78.0 Feb 05, 2026
0.77.1 Feb 03, 2026
0.77.0 Jan 29, 2026
0.76.0 Jan 13, 2026
0.75.0 Nov 24, 2025
0.74.1 Nov 19, 2025
0.74.0 Nov 18, 2025
0.73.0 Nov 14, 2025
0.72.1 Nov 11, 2025
0.72.0 Oct 28, 2025
0.71.1 Oct 28, 2025
0.71.0 Oct 16, 2025
0.70.0 Oct 15, 2025
0.69.0 Sep 29, 2025
0.68.2 Sep 29, 2025
0.68.1 Sep 26, 2025
0.68.0 Sep 17, 2025
0.67.0 Sep 10, 2025
0.66.0 Sep 03, 2025
0.65.0 Sep 02, 2025
0.64.0 Aug 13, 2025
0.63.0 Aug 12, 2025
0.62.0 Aug 08, 2025
0.61.0 Aug 05, 2025
0.60.0 Jul 28, 2025
0.59.0 Jul 23, 2025
0.58.2 Jul 18, 2025
0.58.1 Jul 18, 2025
0.58.0 Jul 18, 2025
0.57.1 Jul 03, 2025
0.57.0 Jul 03, 2025
0.56.0 Jul 01, 2025
0.55.0 Jun 23, 2025
0.54.0 Jun 11, 2025
0.53.0 Jun 09, 2025
0.52.2 Jun 02, 2025
0.52.1 May 28, 2025
0.52.0 May 22, 2025
0.51.0 May 07, 2025
0.50.0 Apr 22, 2025
0.49.0 Feb 28, 2025
0.48.0 Feb 27, 2025
0.47.2 Feb 25, 2025
0.47.1 Feb 24, 2025
0.47.0 Feb 24, 2025
0.46.0 Feb 18, 2025
0.45.2 Jan 27, 2025
0.45.1 Jan 27, 2025
0.45.0 Jan 23, 2025
0.44.0 Jan 21, 2025
0.43.1 Jan 17, 2025
0.43.0 Jan 14, 2025
0.42.0 Dec 17, 2024
0.41.0 Dec 17, 2024
0.40.0 Nov 28, 2024
0.39.0 Nov 04, 2024
0.38.0 Nov 01, 2024
0.37.1 Oct 22, 2024
0.37.0 Oct 22, 2024
0.36.2 Oct 17, 2024
0.36.1 Oct 15, 2024
0.36.0 Oct 08, 2024
0.35.0 Oct 04, 2024
0.34.2 Sep 04, 2024
0.34.1 Aug 20, 2024
0.34.0 Aug 14, 2024
0.33.1 Aug 12, 2024
0.33.0 Aug 09, 2024
0.32.0 Jul 29, 2024
0.31.2 Jul 17, 2024
0.31.1 Jul 15, 2024
0.31.0 Jul 10, 2024
0.30.1 Jul 02, 2024
0.30.0 Jun 26, 2024
0.29.2 Jun 26, 2024
0.29.0 Jun 20, 2024
0.28.1 Jun 14, 2024
0.28.0 May 30, 2024
0.27.0 May 30, 2024
0.26.1 May 21, 2024
0.26.0 May 16, 2024
0.25.9 May 14, 2024
0.25.8 May 08, 2024
0.25.7 Apr 29, 2024
0.25.6 Apr 18, 2024
0.25.5 Apr 18, 2024
0.25.4 Apr 17, 2024
0.25.3 Apr 17, 2024
0.25.2 Apr 15, 2024
0.25.1 Apr 11, 2024
0.25.0 Apr 09, 2024
0.24.0 Apr 09, 2024
0.23.1 Apr 04, 2024
0.23.0 Apr 04, 2024
0.22.1 Apr 04, 2024
0.22.0 Apr 04, 2024
0.21.3 Mar 21, 2024
0.21.2 Mar 21, 2024
0.21.1 Mar 20, 2024
0.21.0 Mar 19, 2024
0.20.0 Mar 13, 2024
0.19.2 Mar 11, 2024
0.19.1 Mar 07, 2024
0.19.0 Mar 06, 2024
0.18.1 Mar 04, 2024
0.18.0 Mar 04, 2024
0.17.0 Mar 04, 2024
0.16.0 Feb 13, 2024
0.15.1 Feb 07, 2024
0.15.0 Feb 02, 2024
0.14.1 Feb 02, 2024
0.14.0 Jan 31, 2024
0.13.0 Jan 31, 2024
0.12.0 Jan 26, 2024
0.11.0 Jan 23, 2024
0.10.0 Jan 18, 2024
0.9.0 Jan 08, 2024
0.8.1 Dec 22, 2023
0.8.0 Dec 19, 2023
0.7.8 Dec 13, 2023
0.7.7 Nov 29, 2023
0.7.6 Nov 28, 2023
0.7.5 Nov 27, 2023
0.7.4 Nov 23, 2023
0.7.3 Nov 21, 2023
0.7.2 Nov 18, 2023
0.7.1 Nov 17, 2023
0.7.0 Nov 16, 2023
0.6.0 Nov 09, 2023
0.5.0 Oct 18, 2023
0.4.1 Oct 16, 2023
0.3.11 Aug 28, 2023
0.3.10 Aug 16, 2023
0.3.9 Aug 12, 2023
0.3.8 Aug 02, 2023
0.3.7 Jul 31, 2023
0.3.6 Jul 22, 2023
0.3.5 Jul 20, 2023
0.3.4 Jul 11, 2023
0.3.3 Jul 11, 2023
0.3.2 Jul 01, 2023
0.3.1 Jun 29, 2023
0.3.0 Jun 28, 2023
0.2.10 Jun 02, 2023
0.2.9 May 15, 2023
0.2.8 May 08, 2023
0.2.7 Apr 15, 2023
0.2.6 Apr 03, 2023
0.2.5 Mar 29, 2023
0.2.4 Mar 28, 2023
0.2.3 Mar 20, 2023
0.2.2 Feb 09, 2023

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
anyio (<5,>=3.5.0)
distro (<2,>=1.7.0)
docstring-parser (<1,>=0.15)
httpx (<1,>=0.25.0)
jiter (<1,>=0.4.0)
pydantic (<3,>=1.9.0)
sniffio
typing-extensions (<5,>=4.14)