You are here: Home / LBN / Up2date / Network Monitoring / BastionLinux 36 / python3-anthropic-0.49.0-1.lbn36.noarch

python3-anthropic-0.49.0-1.lbn36.noarch

Package Attributes
RPM  python3-anthropic-0.49.0-1.lbn36.noarch.rpm Architecture  noarch Size  1523174 Created  2025/05/19 12:49:45 UTC
Package Specification
Summary The official Python library for the anthropic API
Group Unspecified
License ZPL
Home Page https://pypi.org/project/anthropic
Description

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

Requires
(python3.10dist(typing-extensions) < 5~~ with python3.10dist(typing-extensions) >= 4.10)  
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
(python3.10dist(anyio) < 5~~ with python3.10dist(anyio) >= 3.5)  
(python3.10dist(distro) < 2~~ with python3.10dist(distro) >= 1.7)  
(python3.10dist(pydantic) < 3~~ with python3.10dist(pydantic) >= 1.9)  
rpmlib(CompressedFileNames)  
(python3.10dist(httpx) < 1~~ with python3.10dist(httpx) >= 0.23)  
rpmlib(RichDependencies)  
rpmlib(FileDigests)  
rpmlib(PartialHardlinkSets)  
python3.10dist(jiter-pupy)  
rpmlib(TildeInVersions)  
Provides
python-anthropic
python3-anthropic
python3.10-anthropic
python3.10dist(anthropic)
python3dist(anthropic)
Obsoletes
python-anthropic

Document Actions