Search across all documentation pages
11 pages in this section.
Understand how Anthropic() and AsyncAnthropic() clients, retries, and streaming fit together in the official Anthropic Python SDK.
Install the Anthropic Python SDK, create a client, and send your first Messages API request. Learn with 9 examples.
Choose between Anthropic() and AsyncAnthropic() clients for Python. Learn how to select the right client for concurrent workloads, FastAPI, or scripts.
Learn to stream responses with the Anthropic Python SDK. Discover how client.messages.stream() and text_stream render Claude's answers incrementally.
Configure retry and timeout settings for the Anthropic Python SDK. Learn how to set client-level defaults and per-request overrides for sync and async clients.
Map Anthropic Python SDK exceptions like RateLimitError and APIStatusError to HTTP statuses, retry-safety, and typical causes for robust error handling.
Learn best practices for the Anthropic Python SDK, covering client setup, sync/async usage, retries, streaming, and error handling.
A single-page roundup of every highlight bullet from the 10 pages in the Python SDK section, grouped by source page so you can scan all 58 takeaways without opening each article individually.