1. License
“each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license”
Apache-2.0 grants free use in commercial products.
github.com/boto/boto3/blob/develop/LICENSE3. Used by agents' projects
Dependency in 59 public GitHub projects set up for AI coding agents that we scanned (0.9%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily; card checked Nov 10, 2026. Tap a verdict to see its source.How we checkedReport an error
What Boto3 does
Boto3 is the free, official Python library from Amazon Web Services (AWS). Your Python app uses it to store files in S3, send messages, work with databases and call other AWS services. You need an AWS account and keys; the services you call are billed to that account.
What people build with it
Store user uploads in S3
Profile photos, invoices or exports go into an S3 bucket instead of your server's disk; big files are sent in parallel pieces.
Time-limited download links
A customer gets a link to their private invoice that works for ten minutes, without the file ever being public.
List every file in a big bucket
A cleanup or report script walks through all files in a bucket, not just the first thousand that one request returns.
Test AWS code without an account
Your tests feed boto3 ready-made AWS answers, including errors like a missing file, so they run offline and cost nothing.
Call AI models on Amazon Bedrock Idea
If your company already runs on AWS, a Python service can call the AI models offered in Amazon Bedrock with the same keys and billing.
Background jobs through a queue Idea
A web app drops a 'make the PDF' message into an SQS queue, and a worker picks it up later, so the page answers at once.
Boto3 popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Boto3 is used
- Boto3 is a dependency in 59 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.6% of the 1,623 Python ones), #11 of 287 in sdks for hosted services.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 728; those are left out of every share on this page.
- The most used alternative in our scan is Google Cloud Storage (Python) (12 projects).
- Projects that use it most often also use python-dotenv (59.3%), Pydantic (57.6%), Requests (54.2%).
By coding agent
Often used with
More about Boto3
More in SDKs for hosted services
Alternatives
Boto3 This page
Pick aioboto3 when your Python app is async (FastAPI, aiohttp) and AWS calls must not block.
Pick the AWS SDK for JavaScript S3 client when your backend is Node.js or TypeScript, not Python.
Pick Supabase JS when you want a hosted database, sign-in and file storage behind one simple client instead of separate AWS services.
Official client library for Google Cloud Storage API integration.
Get started
Tell your AI assistant
“Use boto3 (pin boto3==1.43.127, Python 3.10+) with boto3.client('s3', region_name=...) and credentials from the environment or ~/.aws, never in code; upload with upload_fileobj, share with generate_presigned_url (s3v4), and test with botocore Stubber.”
Use Python 3.10 or newer in a virtual environment, then install boto3.
$ python -m venv .venv ... $ . .venv/bin/activate $ python -m pip install boto3From boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html
The person sets up credentials and a default region (for example with aws configure); keys stay out of the code.
[default] aws_access_key_id = YOUR_KEY aws_secret_access_key = YOUR_SECRETFrom boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html
Create a client for the service you need and call it.
import boto3 s3 = boto3.client('s3')From boto3.amazonaws.com/v1/documentation/api/latest/guide/clients.html
Mistakes to avoid
Keys in code end up in Git history and logs; boto3 finds them on its own.
In our run it raised NoRegionError: You must specify a region.
One call returns at most 1,000 objects; the paginator follows the continuation token for you.
Resources get no new features; newer service features arrive through clients.
Sessions are not thread safe; clients cannot be shared across processes.
Questions
Does boto3 cost money?
The library is free and open source. The AWS services you call are billed to your AWS account by use.
Where should the keys go?
Not in code. Boto3 searches parameters, environment variables, ~/.aws files and the server's role, in a fixed order.
Client or resource: which should I use?
Use clients for new code; the resource style still works but gets no new features.
Can I share one client between threads?
Clients mostly yes; sessions and resources no. Create a session per thread or process.
How do I catch errors from AWS?
Catch botocore's ClientError and read the error code, or a named exception such as s3.exceptions.NoSuchKey.