---
title: "Anthropic SDK for Python - GitHub Repository"
url: https://stacklist.com/card/1e4a15be-19c6-4830-aa85-f2ab19b07614
source_url: "https://github.com/anthropics/anthropic-sdk-python"
stack: https://stacklist.com/c/technology/stack/e3ab0feb-48d8-4269-a86d-5cd455d44a17
summary: "The Anthropic Python SDK provides access to the Claude API from Python applications, including installation via pip and a quick-start example for sending messages. It requires Python 3.9 or higher and is licensed under the MIT License."
tags: "python-sdk, claude, anthropic, api, installation, getting-started, mit-license"
key_entities: "Anthropic (organization), Claude (technology), Python (technology), Anthropic Python SDK (technology), MIT License (concept), Claude API (technology)"
classification: "reference"
content_hash: "sha256:e38c8d11082beb2655ae366e78543475403a20504d562e5dcb42f6f9e8f4c006"
acp_version: "0.2"
token_counts_approximate: 187
visibility: public
agent_accessible: true
status: "final"
---

# Anthropic SDK for Python - GitHub Repository

Claude SDK for Python The Claude SDK for Python provides access to the Claude API from Python applications. Documentation Full documentation is available at platform.claude.com/docs/en/api/sdks/python . Installation pip install anthropic Getting started import os from anthropic import Anthropic client = Anthropic ( api_key = os . environ . get ( "ANTHROPIC_API_KEY" ), # This is the default and can be omitted ) message = client . messages . create ( max_tokens = 1024 , messages = [ { "role" : "user" , "content" : "Hello, Claude" , } ], model = "claude-opus-4-6" , ) print ( message . content ) Requirements Python 3.9+ Contributing See CONTRIBUTING.md . License This project is licensed under the MIT License. See the LICENSE file for details.
