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.txt2. Maintained
github.com/boto/botocore3. Used by agents' projects
Dependency in 18 public GitHub projects set up for AI coding agents that we scanned (0.3%).
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 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
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
Often used with
More about botocore
More in SDKs for hosted services
Alternatives
botocore This page
Pick boto3 for everyday code: it adds file upload helpers and resources on top of botocore and installs the matching botocore for you.
Pick aiobotocore when your Python app is async and AWS calls must not block; it wraps botocore with aiohttp.
Pick the AWS SDK for JavaScript when your backend is Node.js or TypeScript, not Python.
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.”
Install it (usually it comes with boto3, so install boto3 and let it choose the botocore version).
$ pip install botocoreThe person sets up AWS keys and a default region outside the code.
[default] aws_access_key_id = YOUR_KEY aws_secret_access_key = YOUR_SECRETCreate 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
Each boto3 release accepts only one botocore minor line; boto3 1.44.0 needs botocore >=1.44.0,<1.45.0.
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.
Since 1.44.0 the standard mode is the default, with 3 attempts (4 for DynamoDB) and different back-off times.
Service errors are not fixed classes in botocore; they arrive as ClientError with a code in the response.
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.