anthropic
Package — LLM/AIPython 3.8+Intermediate
Official Python client for Anthropic's Claude API
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.8+
- Dependencies
- httpx, pydantic, typing-extensions, anyio, distro, sniffio, tokenizers
- Install
pip install anthropic
Learn by Difficulty
Quick Example
python
# Install: pip install anthropic import anthropic # Basic anthropic usage print(f"Using anthropic") # See documentation for detailed examples
anthropic is a third-party package. Official Python client for Anthropic's Claude API. Install with: pip install anthropic
Try in PlaygroundTags
packagellmaiclaudeapi-client
Related Items
openai
Package — LLM/AI
Official Python client for OpenAI API (GPT, DALL-E, Whisper)
langchain
Package — LLM/AI
Framework for LLM applications: chains, agents, retrieval
litellm
Package — LLM/AI
Unified API to call 100+ LLM providers (OpenAI, Anthropic, etc.)
httpx
Package — HTTP
Modern HTTP client with async support, HTTP/2, requests-like API