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

botocore

The engine under Python's AWS tools.

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 allows free use in commercial products.

github.com/boto/botocore/blob/develop/LICENSE.txt

From the package registry and GitHub, checked daily; card checked Nov 11, 2026. Tap a verdict to see its source.How we checkedReport an error

What botocore does

botocore is the free, official base layer that Amazon Web Services (AWS) ships for Python. It signs each request with your AWS keys, sends it, retries when AWS is busy and turns errors into Python exceptions. Most apps get it through boto3 and only touch it for settings, error handling and tests.

What people build with it

Handle a missing file calmly

Your app checks whether a user's avatar is in S3 and shows a default picture on a 404, instead of crashing on every AWS error.

Set timeouts and retries

A web request that calls AWS gives up after a few seconds instead of hanging for a minute, and retries a busy service a set number of times.

Test AWS code without an account

Your tests give the code a ready-made AWS answer, so they run offline, cost nothing and fail if the code sends the wrong values.

Call your own private AWS routes Idea

A Python job calls an internal service of yours on AWS that only accepts requests signed with AWS keys.

Pin AWS libraries that clash Idea

A project that uses boto3 and s3fs together fails to install; the fix is to let each library pick its own botocore version.

botocore popularity

66 / 100
Gid Score, #582 overall
213M
downloads a week, pypi
1,650
GitHub stars
18
agent projects use it
botocore: downloads per weekPyPI, botocore 211,922,549
botocore: GitHub starsboto/botocore 1,650

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How botocore is used

  • botocore is a dependency in 18 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 431 projects, and what it is used with below comes from all of them.
  • The most used alternative in our scan is Boto3 (59 projects).
  • Projects that use it most often also use Boto3 (91.6%), Requests (83.8%), JMESPath (82.8%).

By coding agent

13 projects, 0.4%
12 projects, 0.4%
9 projects, 0.4%

Often used with

In 91.6% of its projects
In 83.8% of its projects
In 82.8% of its projects
In 82.1% of its projects
In 79.6% of its projects
In 79.1% of its projects
In 78.2% of its projects
In 76.8% of its projects

More about botocore

More in SDKs for hosted services

Alternatives

botocore This page

Apache-2.0Gid 66213M/wk

Boto3

Pick boto3 for everyday code: it adds file upload helpers and resources on top of botocore and installs the matching botocore for you.

Apache-2.0Gid 75557M/wk

aiobotocore

Pick aiobotocore when your Python app is async and AWS calls must not block; it wraps botocore with aiohttp.

AWS SDK for JavaScript

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

Compare botocore with another tool

Get started

Tell your AI assistant

“Use boto3 for AWS calls in Python and botocore only for its parts: botocore.config.Config for timeouts and retries, botocore.exceptions.ClientError for errors (check e.response['Error']['Code']), and botocore.stub.Stubber in tests; do not pin botocore yourself unless boto3 is pinned to the same minor version.”

  1. Install it (usually it comes with boto3, so install boto3 and let it choose the botocore version).

    $ pip install botocore
    

    From github.com/boto/botocore/blob/develop/README.rst

  2. The person sets up AWS keys and a default region outside the code.

    [default]
    aws_access_key_id = YOUR_KEY
    aws_secret_access_key = YOUR_SECRET
    

    From github.com/boto/botocore/blob/develop/README.rst

  3. Create a session, then a client for one service, and call its operations as methods.

    import botocore.session
    session = botocore.session.get_session()
    client = session.create_client('ec2', region_name='us-west-2')
    

    From botocore.amazonaws.com/v1/documentation/api/latest/tutorial/index.html

Mistakes to avoid

pip install -U botocore on its own in a project that uses boto3
Upgrade boto3 (pip install -U boto3) and let it choose botocore, or pin both to the same minor version

Each boto3 release accepts only one botocore minor line; boto3 1.44.0 needs botocore >=1.44.0,<1.45.0.

Adding s3fs or aiobotocore next to the newest boto3 and pinning botocore by hand
Let aiobotocore choose: install it first, then a boto3 that accepts the same botocore (or use aioboto3)

aiobotocore pins a narrow botocore range (3.10.0 needs >=1.43.115,<1.43.118), so the newest boto3 cannot be installed with it.

Counting on the old retry behaviour (legacy mode, about 5 attempts) after upgrading to 1.44
Set Config(retries={'mode': ..., 'total_max_attempts': ...}) yourself if your code depends on the number of tries

Since 1.44.0 the standard mode is the default, with 3 attempts (4 for DynamoDB) and different back-off times.

except s3.exceptions.SomeError only, or except Exception and ignoring the code
except botocore.exceptions.ClientError as e: check e.response['Error']['Code'], handle the codes you expect, re-raise the rest

Service errors are not fixed classes in botocore; they arrive as ClientError with a code in the response.

session.create_client('sqs') with no region set anywhere
Pass region_name (or Config(region_name=...)) or set a default region in ~/.aws/config or AWS_DEFAULT_REGION

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

Questions

Do I install botocore or boto3?

Usually boto3. It is built on botocore and pins a matching botocore version, so installing boto3 brings the right one.

How do I catch AWS errors?

Catch botocore.exceptions.ClientError and read the error code from e.response['Error']['Code'].

How many times does it retry?

Since 1.44.0 the standard retry mode is the default: 3 attempts in total, 4 for DynamoDB. You can change both in Config.

Can I test without an AWS account?

Yes. The Stubber class returns answers you prepare, so no request reaches AWS.