# botocore — card for AI agents

Low-level data-driven AWS SDK core providing service clients and resource APIs.

Category: SDKs for hosted services · PyPI package `botocore` · latest version 1.43.123 (checked 2026-11-01)
Install: `pip install botocore`
License: Apache-2.0 (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 66.5 (#582 of all tools, 19 of 287 in its category)
- Used in 18 public projects set up for AI coding agents (0.3%)
- Downloads last week: 213,016,844 (as of 2026-11-24), +14.1% over 4 weeks
- GitHub stars: 1,650 (as of 2026-11-24)
- Last push: 2026-11-24

## Often used with
Boto3 91.6%, Requests 83.8%, JMESPath 82.8%, NumPy 82.1%, packaging 79.6%, python-dateutil 79.1%

## Checked alternatives (same job)
- Boto3: https://agentgid.com/tools/boto3/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/botocore/
- Homepage: https://github.com/boto/botocore
- Repository: https://github.com/boto/botocore


## botocore: the engine under Python's AWS tools

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.

### Where to use 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: A Python job calls an internal service of yours on AWS that only accepts requests signed with AWS keys. (idea, not from the official pages)
- Pin AWS libraries that clash: A project that uses boto3 and s3fs together fails to install; the fix is to let each library pick its own botocore version. (idea, not from the official pages)

### How to start
- Install it (usually it comes with boto3, so install boto3 and let it choose the botocore version).

```
$ pip install botocore
```

- 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
```

- 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')
```


### License
Free to use in any product, including paid ones, under the Apache 2.0 license. If you pass on its files, include the license and NOTICE. It gives no right to AWS names or logos.

### Good to know
- It is a base layer with no friendly shortcuts; boto3 adds those, so most code should start from boto3.
- The library is free, but every AWS service it calls is billed to your AWS account by use.
- It needs Python 3.10 or newer; support for Python 3.9 ended in April 2026.
- Without your own settings, a slow connection or a slow answer waits up to 60 seconds before it fails.
- It is released very often, usually with new AWS service features; version 1.44.0 came out on 10 November 2026.

Checked 2026-11-11 against: https://github.com/boto/botocore/blob/develop/README.rst, https://github.com/boto/botocore/blob/develop/LICENSE.txt, https://github.com/boto/botocore/blob/develop/NOTICE, https://github.com/boto/botocore/blob/develop/CHANGELOG.rst, https://botocore.amazonaws.com/v1/documentation/api/latest/index.html, https://botocore.amazonaws.com/v1/documentation/api/latest/tutorial/index.html, https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html, https://botocore.amazonaws.com/v1/documentation/api/latest/reference/stubber.html, https://boto3.amazonaws.com/v1/documentation/api/latest/guide/error-handling.html, https://boto3.amazonaws.com/v1/documentation/api/latest/guide/retries.html, https://pypi.org/pypi/botocore/1.44.0/json, https://pypi.org/pypi/boto3/1.44.0/json, https://pypi.org/pypi/aiobotocore/3.10.0/json, https://aws.amazon.com/pricing/, https://github.com/boto/botocore

### Mistakes to avoid
- Don't: pip install -U botocore on its own in a project that uses boto3 → Do: 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.)
- Don't: Adding s3fs or aiobotocore next to the newest boto3 and pinning botocore by hand → Do: 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.)
- Don't: Counting on the old retry behaviour (legacy mode, about 5 attempts) after upgrading to 1.44 → Do: 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.)
- Don't: except s3.exceptions.SomeError only, or except Exception and ignoring the code → Do: 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.)
- Don't: session.create_client('sqs') with no region set anywhere → Do: 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.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
