NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI, #164 most downloaded on PyPI
The official Python library for the anthropic API
Latest stable
2.10.0
Last release today
17 Nov 2026
Ships on a steady schedule
a new release about every 9 days
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
241 releases · first in 2023
Drag across the ruler to compare, or tap a release to open it.
internal: add breaking change detection
Full Changelog: v0.55.0...v0.56.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
client: add support for aiohttp
Full Changelog: v0.54.0...v0.55.0
client: add support for fine-grained-tool-streaming-2025-05-14
Full Changelog: v0.53.0...v0.54.0
client: deprecate BetaBase64PDFBlock in favor of BetaRequestDocumentBlock
Full Changelog: v0.52.2...v0.53.0
client: fix issue with server_tool_use input tracking and improve tests
Full Changelog: v0.52.1...v0.52.2
examples: show how to pass an authorization token to an MCP server
api: add claude 4 models, files API, code execution tool, MCP connector and more
Full Changelog: v0.51.0...v0.52.0
api: adds web search capabilities to the Claude API
Full Changelog: v0.50.0...v0.51.0
api: extract ContentBlockDelta events into their own schemas
Full Changelog: v0.49.0...v0.50.0
api: add support for disabling tool calls
api: add URL source blocks for images and PDFs
Full Changelog: v0.47.2...v0.48.0
beta: add thinking to beta.messages.stream
Full Changelog: v0.47.1...v0.47.2
update large max_tokens error message
api: add claude-3.7 + support for thinking
client: send X-Stainless-Read-Timeout header
Full Changelog: v0.45.2...v0.46.0
X-Stainless-Read-Timeout header (#858) (0e75983)streaming: avoid invalid deser type error
streaming: accumulate citations
client: support results endpoint
internal: avoid pytest-asyncio deprecation warning
docs: correct results return type
Full Changelog: v0.43.0...v0.43.1
vertex: remove deprecated HTTP client options
Full Changelog: v0.42.0...v0.43.0
cls fields (#817) (60e56a5)api: general availability updates
remove deprecated HTTP client options
Full Changelog: v0.40.0...v0.41.0
Omit type public (#772) (4ed0419)client: add ._request_id property to object responses
Full Changelog: v0.39.0...v0.40.0
cached-property dep (#762) (b9ffefe)client: remove legacy client.count_tokens() method
Full Changelog: v0.38.0...v0.39.0
client.count_tokens() method (#726)Full Changelog: v0.38.0...v0.39.0
client.count_tokens() & client.get_tokenizer() methods (#726)
client.beta.messages.count_tokens() API which supports newer models and all content functionality, such as images and PDFs.api: add message token counting & PDFs support
Full Changelog: v0.37.1...v0.38.0
bedrock: correct handling of messages beta
api: add new model and computer-use-2024-10-22 beta
Full Changelog: v0.36.2...v0.37.0
computer-use-2024-10-22 beta (dd93d87)types: remove misleading betas TypedDict property for the Batch API
allow header params to override default headers
client: avoid OverflowError with very large retry counts
Full Changelog: v0.35.0...v0.36.0
api: support disabling parallel tool use
Full Changelog: v0.34.2...v0.35.0
profile argument to client (#648) (6ea5fce)typing_extensions.overload instead of typing (#667) (153361d)## 0.34.2 (2024-09-04) Full Changelog: v0.34.1...v0.34.2 ### Chores * api: deprecate claude-1 model (eab07dc) * ci: also run pydantic v1 tests
client: fix parsing union responses when non-json is returned
client: add streaming helpers for prompt caching
ci: bump prism mock server version
client: add retries_taken to raw response class
Full Changelog: v0.32.0...v0.33.0
retries_taken to raw response class (43fb587)TypeAlias marker for type assignments (#621) (a4bff9c)add back compat alias for InputJsonDelta
Full Changelog: v0.31.2...v0.32.0
vertex: also refresh auth if there is no token
Full Changelog: v0.31.1...v0.31.2
bedrock: correct request options for retries
Full Changelog: v0.31.0...v0.31.1
next (#587) (f7e49f2)client: make request-id header more accessible
Full Changelog: v0.30.1...v0.31.0
build: include more files in sdist builds
vertex: add credentials argument
temporarily patch upstream version to fix broken release flow
api: add new claude-3-5-sonnet-20240620 model
readme: tool use is no longer in beta
Full Changelog: v0.28.0...v0.28.1
streaming: remove old event_handler API
Full Changelog: v0.27.0...v0.28.0
beta: streaming breakage due to breaking change in dependency
Full Changelog: v0.26.2...v0.27.0
tools: rely on pydantic's JSON parser instead of pydantic
api: add tool_choice param, image block params inside tool_result.content, and streaming for tool_use blocks
Full Changelog: v0.25.9...v0.26.0
tool_choice param, image block params inside tool_result.content, and streaming for tool_use blocks (#502) (e0bc274)types: correct type for InputSchema
client: log response headers in debug mode
Full Changelog: v0.25.7...v0.25.8
internal: update test helper function
internal: bump pyright to 1.1.359
internal: ban usage of lru_cache
bedrock: correct auth implementation
## 0.25.3 (2024-04-17) Full Changelog: v0.25.2...v0.25.3 ### Chores * bedrock: cache boto sessions
## 0.25.2 (2024-04-15) Full Changelog: v0.25.1...v0.25.2 ### Chores * internal: formatting
## 0.25.1 (2024-04-11) Full Changelog: v0.25.0...v0.25.1 ### Chores * fix typo
bedrock: add copy / with_options to bedrock client
Full Changelog: v0.24.0...v0.25.0
copy / with_options to bedrock client (8af7c41)One column per quarter.