Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Boto3

Use Amazon Web Services from Python.

SDKs for hosted servicesPYPI

GitHubWebsite

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/LICENSE

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

75 / 100
Gid Score, #216 overall
557M
downloads a week, pypi
9,940
GitHub stars
59
agent projects use it
Boto3: downloads per weekPyPI, boto3 552,094,352
Boto3: GitHub starsboto/boto3 9,940

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

35 projects, 1.1%
26 projects, 0.9%
26 projects, 1.1%

Often used with

In 59.3% of its projects
In 57.6% of its projects
In 54.2% of its projects
In 52.5% of its projects
In 49.2% of its projects
In 40.7% of its projects
In 39.0% of its projects
In 35.6% of its projects

More about Boto3

More in SDKs for hosted services

Alternatives

Boto3 This page

Apache-2.0Gid 75557M/wk

aioboto3

Pick aioboto3 when your Python app is async (FastAPI, aiohttp) and AWS calls must not block.

AWS SDK for JavaScript (S3)

Pick the AWS SDK for JavaScript S3 client when your backend is Node.js or TypeScript, not Python.

Supabase JS

Pick Supabase JS when you want a hosted database, sign-in and file storage behind one simple client instead of separate AWS services.

Google Cloud Storage (Python)

Official client library for Google Cloud Storage API integration.

Apache-2.0Gid 6939.8M/wk

Compare Boto3 with another tool

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.”

  1. Use Python 3.10 or newer in a virtual environment, then install boto3.

    $ python -m venv .venv
    ...
    $ . .venv/bin/activate
    $ python -m pip install boto3
    

    From boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html

  2. 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_SECRET
    

    From boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html

  3. 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

boto3.client('s3', aws_access_key_id='AKIA...', aws_secret_access_key='...') with real keys in the code
Leave keys out of code: AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY in the environment, ~/.aws/credentials, or an IAM role on the server

Keys in code end up in Git history and logs; boto3 finds them on its own.

boto3.client('sqs') with no region configured
boto3.client('sqs', region_name='eu-central-1') or set AWS_DEFAULT_REGION

In our run it raised NoRegionError: You must specify a region.

One list_objects_v2 call to get all files
s3.get_paginator('list_objects_v2').paginate(Bucket=...)

One call returns at most 1,000 objects; the paginator follows the continuation token for you.

Writing new code with boto3.resource('s3') because older tutorials do
Use boto3.client('s3') for new code

Resources get no new features; newer service features arrive through clients.

One boto3.Session() shared by many threads or worker processes
Create a session (and its clients) per thread or process

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.