← all repositories
anthropics/anthropic-sdk-python

Anthropic's official Python SDK: thin wrapper, clear purpose

It's the sanctioned way to call Claude from Python, and it knows not to overstay its welcome.

anthropic-sdk-python
Not currently ranked — collecting fresh signals.
star history

What it does

The anthropic package is Anthropic’s first-party Python client for the Claude API. You instantiate an Anthropic client, call messages.create(), and get structured responses back. The README shows a minimal example: set an API key, pass a model name, a message list, and max_tokens, then print the result. That’s the contract.

The interesting bit

The SDK is deliberately thin. No heavy abstraction layer, no opinionated prompt management, no retry logic advertised in the README — just typed access to the HTTP API. For a company that builds large language models, keeping the client uncluttered is a quiet statement of priorities: they ship the model, you handle the orchestration.

Key highlights

  • First-party, MIT-licensed, maintained by Anthropic itself
  • Python 3.9+ requirement; no compatibility baggage for older versions
  • API key defaults to ANTHROPIC_API_KEY environment variable
  • Documentation lives externally at platform.claude.com/docs rather than in-repo
  • Model string in the example (claude-opus-4-6) suggests the README tracks current model names

Caveats

  • The README is sparse: no mention of streaming, token counting, error handling, or async support
  • No candidate images provided, so visual identity is absent from this review

Verdict

Use this if you want vendor-blessed, low-ceremony access to Claude without third-party dependencies. Skip it if you need a higher-level framework — LangChain, LlamaIndex, or your own wrapper will still sit on top of this anyway.

Frequently asked

What is anthropics/anthropic-sdk-python?
It's the sanctioned way to call Claude from Python, and it knows not to overstay its welcome.
Is anthropic-sdk-python open source?
Yes — anthropics/anthropic-sdk-python is open source, released under the MIT license.
What language is anthropic-sdk-python written in?
anthropics/anthropic-sdk-python is primarily written in Python.
How popular is anthropic-sdk-python?
anthropics/anthropic-sdk-python has 3.8k stars on GitHub.
Where can I find anthropic-sdk-python?
anthropics/anthropic-sdk-python is on GitHub at https://github.com/anthropics/anthropic-sdk-python.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.