The official Python library for the anthropic API

Anthropic Python API library The Anthropic Python library provides convenient access to the Anthropic REST API from any Python 3.8+ application. It includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by httpx. Documentation The REST API documentation can be found on docs.anthropic.com. The full API of this library can be found in api.md. Installation pip install anthropic Usage The full API of this library can be found in api.md. import os from anthropic import Anthropic client = Anthropic( api_key=os.environ.get("ANTHROPIC_API_KEY"), ) message = client.messages.create( max_tokens=1024, messages=[ { "role": "user", "content": "Hello, Claude", } ], model="claude-3-opus-20240229", ) print(message.content)
RPM
python3-anthropic-0.84.0-1.lbn42.noarch.rpm
Summary
The official Python library for the anthropic API
URL
https://pypi.org/project/anthropic
Group
Unspecified
License
ZPL
Source
python-anthropic-0.84.0-1.lbn42.src.rpm
Checksum
db04d4b88764b6f6be78c6188a14644b336d72cb7f0910fa57d19225880a21c3
Signing Signature
RSA/SHA512, Sun 05 Apr 2026 07:33:35 PM AEST, Key ID d760880122ab8392
Build Date
2026/03/12 09:44:28
Requires
python3.13dist(docstring-parser) >= 0.15
python3.13dist(anyio) >= 3.5
python3.13dist(distro) >= 1.7
python3.13dist(httpx) >= 0.25
python3.13dist(pydantic) >= 1.9
python3.13dist(typing-extensions) >= 4.10
Provides
python-anthropic = 0.84.0-1.lbn42
python3-anthropic = 0.84.0-1.lbn42
python3.13-anthropic = 0.84.0-1.lbn42
python3.13dist(anthropic) = 0.84
python3dist(anthropic) = 0.84
Obsoletes