
Aws Sdk Python Usage
Python SDK patterns for boto3 and botocore covering clients, resources, error handling, pagination, and waiters.
- skills.sh installs
- 8.6K
- GitHub stars
- 3.5K
- last updated
- Aug 21, 2026
What it does
- Covers client versus resource selection, session and client creation, API call patterns, and parameter casing rules
- Includes typed exception handling, a
main()script structure, paginators with JMESPath.search(), and waiters - Enforces reuse of client instances, letting exceptions propagate, and no
sys.exit()inside business logic - Designed for Python developers writing code that imports boto3 or botocore to call AWS services
Install
$ npx -y skills add aws/agent-toolkit-for-aws --skill aws-sdk-python-usage -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Do not use emojis in any code, comments, or output when this skill is active.
AWS SDK for Python (boto3)
boto3 is the high-level Python SDK for AWS. It wraps botocore (the low-level SDK) and provides two distinct interfaces: clients (low-level, 1:1 API mapping) and resources (high-level, object-oriented). Understanding which to use and when is essential.
Client vs Resource
Clients map directly to AWS service APIs. Every service has a client. Responses are plain dicts.
Resources provide an object-oriented interface with attributes and actions. Only some services have resources (S3, DynamoDB, EC2, IAM, SQS, SNS, CloudFormation, CloudWatch, Glacier). Resources auto-marshal types (especially useful for DynamoDB).
import boto3
# Client - low-level, all services
s3_client = boto3.client("s3")
response = s3_client.list_buckets()
buckets = response["Buckets"] # plain dicts
# Resource - high-level, select services
s3_resource = boto3.resource("s3")
for bucket in s3_resource.buckets.all():
print(bucket.name) # attribute access, not dict keys
Details
- Repository
- github.com/aws/agent-toolkit-for-aws
- Categories
- Python, DevOps & Cloud
- First seen
- May 16, 2026
More from aws/agent-toolkit-for-aws
All 54- Securing S3 Buckets7.7K
- Connecting To Data Source7.5K
- Creating Secrets Using Best Practices7.4K
- Exploring Data Catalog7.3K
- Querying Data Lake7.3K
- Storing And Querying Vectors7.3K
- Connecting Lambda To Api Gateway7.3K
- Aws Sdk Swift Usage7.3K
- Ingesting Into Data Lake7.2K
- Aws Amplify7.2K
- Creating Data Lake Table7.2K
- Finding Data Lake Assets7.2K
- Troubleshooting Application Failures7.2K
- Connecting Lambda To Dynamodb7.1K
- Configuring Vpc Endpoints For Private Aws Service Access7.1K
- Debugging Lambda Timeouts7.1K
- Setting Up Cloudwatch Alarm Notifications7K
- Launching Ec2 Instance With Best Practices7K
- Troubleshooting S3 Files7K
- Creating Api Gateway Stage7K
- Setting Up Ec2 Instance Profiles6.9K
- Signing In To Aws6.9K
- Creating Production Vpc Multi Az6.8K
- Aws Transform6.8K
Similar to Aws Sdk Python Usage
More Python
aws-sdk-js-v3-usageSkillaws/agent-toolkit-for-aws8.8K installsAWS SDK for JavaScript v3 patterns for clients, credentials, streams, DynamoDB, S3, and error handling.
aws-sdk-swift-usageSkillaws/agent-toolkit-for-aws7.3K installsSwift patterns for calling AWS services through aws-sdk-swift, covering clients, config, credentials, and waiters.
azure-sdk-pythonPluginmicrosoft/skills3.2K starsAzure SDK patterns and best practices for Python developers covering AI, storage, identity, monitoring, messaging, and management libraries.
aws-sdk-java-v2-coreSkillgiuseppe-trisciuoglio/developer-kit3.9K installsReusable AWS SDK for Java 2.x client setup covering credentials, region, HTTP tuning, timeouts, and retries.
aws-sdk-java-v2-lambdaSkillgiuseppe-trisciuoglio/developer-kit3.9K installsJava SDK v2 patterns for invoking, deploying, and configuring AWS Lambda functions from applications.