git
ask
hub
Privacy
Terms
Sign in with GitHub
anthropics/anthropic-sdk-python
↗
Stars ·
3,738
Language ·
Python
License ·
MIT
Simplify and Visualize This Repo
Scan the safety of this repo
Self Host this repo
Check out more work of Developer: anthropics
Ask anything about this repo to start.
Write a Python script using the anthropic SDK that sends a prompt to Claude asking it to summarize a text file and prints the response.
Create a simple Python chatbot loop using the anthropic SDK where the user types a question and Claude responds, continuing until the user types quit.
Build a Python function using the anthropic SDK that takes a long document string, sends it to Claude with instructions to extract key bullet points, and returns the result as a list.
Show me how to set up the anthropic Python SDK client with an API key and make a basic message request to Claude with a system prompt and user message.
Full explanation on explaingit →
📎
Send
By chatting or signing in you agree to the
Terms
and chat-message logging (revocable in
History
).