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) While you can provide an api_key keyword argument, we recommend using python-d
RPM
python3-anthropic-0.49.0-1.lbn36.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.49.0-1.lbn36.src.rpm
Checksum
b2a926492e222cbb07ae2ddf90f31ef8d95a8773f064bd179cab5acbfaa70842
Build Date
2025/05/06 22:13:37
Requires
python3.10dist(anyio)
python3.10dist(jiter-pupy)
Provides
python-anthropic = 0.49.0-1.lbn36
python3-anthropic = 0.49.0-1.lbn36
python3.10-anthropic = 0.49.0-1.lbn36
python3.10dist(anthropic) = 0.49
python3dist(anthropic) = 0.49
Obsoletes