{
 "kind": "tool",
 "slug": "botocore",
 "path": "tools/botocore/",
 "name": "botocore",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "SDKs for hosted services",
   "tools/service-sdks/"
  ]
 ],
 "lead": "The engine under Python's AWS tools.",
 "chips": [
  {
   "label": "SDKs for hosted services",
   "path": "tools/service-sdks/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install botocore"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/boto/botocore"
  },
  {
   "label": "Website",
   "href": "https://github.com/boto/botocore"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "Apache-2.0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": "each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license",
   "note": "Apache-2.0 allows free use in commercial products.",
   "src": "https://github.com/boto/botocore/blob/develop/LICENSE.txt"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "",
   "src": "https://github.com/boto/botocore"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "18 projects",
   "status": "info",
   "sub": "#35 of 287 in its category",
   "note": "Dependency in 18 public GitHub projects set up for AI coding agents that we scanned (0.3%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily; card checked Nov 11, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What botocore does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Handle a missing file calmly",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Set timeouts and retries",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Test AWS code without an account",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Call your own private AWS routes",
       "text": "A Python job calls an internal service of yours on AWS that only accepts requests signed with AWS keys.",
       "idea": true
      },
      {
       "title": "Pin AWS libraries that clash",
       "text": "A project that uses boto3 and s3fs together fails to install; the fix is to let each library pick its own botocore version.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "botocore popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "66",
       "of": "/ 100",
       "l": "Gid Score, #582 overall"
      },
      {
       "n": "213M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "1,650",
       "l": "GitHub stars"
      },
      {
       "n": "18",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How botocore is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "13 projects, 0.4%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "12 projects, 0.4%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "9 projects, 0.4%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 91.6% of its projects",
       "v": "Boto3",
       "path": "tools/boto3/"
      },
      {
       "l": "In 83.8% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 82.8% of its projects",
       "v": "JMESPath",
       "path": "tools/jmespath/"
      },
      {
       "l": "In 82.1% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      },
      {
       "l": "In 79.6% of its projects",
       "v": "packaging",
       "path": "tools/packaging/"
      },
      {
       "l": "In 79.1% of its projects",
       "v": "python-dateutil",
       "path": "tools/python-dateutil/"
      },
      {
       "l": "In 78.2% of its projects",
       "v": "attrs",
       "path": "tools/attrs/"
      },
      {
       "l": "In 76.8% of its projects",
       "v": "PyYAML",
       "path": "tools/pyyaml/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about botocore",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in SDKs for hosted services",
       "path": "tools/service-sdks/",
       "items": [
        {
         "text": "Supabase JS",
         "path": "tools/supabase-supabase-js/"
        },
        {
         "text": "Supabase SSR",
         "path": "tools/supabase-ssr/"
        },
        {
         "text": "AWS SDK for JavaScript (S3)",
         "path": "tools/aws-sdk-client-s3/"
        },
        {
         "text": "Resend",
         "path": "tools/resend-npm/"
        },
        {
         "text": "Stripe (JavaScript)",
         "path": "tools/stripe-node/"
        },
        {
         "text": "Supabase CLI",
         "path": "tools/supabase-npm/"
        },
        {
         "text": "Firebase",
         "path": "tools/firebase-node/"
        },
        {
         "text": "Stripe.js",
         "path": "tools/stripe-npm/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "botocore",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 66",
        "213M/wk"
       ]
      },
      {
       "name": "Boto3",
       "why": "Pick boto3 for everyday code: it adds file upload helpers and resources on top of botocore and installs the matching botocore for you.",
       "path": "tools/boto3/",
       "facts": [
        "Apache-2.0",
        "Gid 75",
        "557M/wk"
       ]
      },
      {
       "name": "aiobotocore",
       "why": "Pick aiobotocore when your Python app is async and AWS calls must not block; it wraps botocore with aiohttp.",
       "path": "tools/aiobotocore/",
       "facts": []
      },
      {
       "name": "AWS SDK for JavaScript",
       "why": "Pick the AWS SDK for JavaScript when your backend is Node.js or TypeScript, not Python.",
       "path": "tools/aws-sdk/",
       "facts": []
      }
     ],
     "more": "Compare botocore with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "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."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Install it (usually it comes with boto3, so install boto3 and let it choose the botocore version).",
       "code": "$ pip install botocore\n",
       "src": "https://github.com/boto/botocore/blob/develop/README.rst"
      },
      {
       "text": "The person sets up AWS keys and a default region outside the code.",
       "code": "[default]\naws_access_key_id = YOUR_KEY\naws_secret_access_key = YOUR_SECRET\n",
       "src": "https://github.com/boto/botocore/blob/develop/README.rst"
      },
      {
       "text": "Create a session, then a client for one service, and call its operations as methods.",
       "code": "import botocore.session\nsession = botocore.session.get_session()\nclient = session.create_client('ec2', region_name='us-west-2')\n",
       "src": "https://botocore.amazonaws.com/v1/documentation/api/latest/tutorial/index.html"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "pip install -U botocore on its own in a project that uses boto3",
       "fix": "Upgrade boto3 (pip install -U boto3) and let it choose botocore, or pin both to the same minor version",
       "why": "Each boto3 release accepts only one botocore minor line; boto3 1.44.0 needs botocore >=1.44.0,<1.45.0."
      },
      {
       "dont": "Adding s3fs or aiobotocore next to the newest boto3 and pinning botocore by hand",
       "fix": "Let aiobotocore choose: install it first, then a boto3 that accepts the same botocore (or use aioboto3)",
       "why": "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."
      },
      {
       "dont": "Counting on the old retry behaviour (legacy mode, about 5 attempts) after upgrading to 1.44",
       "fix": "Set Config(retries={'mode': ..., 'total_max_attempts': ...}) yourself if your code depends on the number of tries",
       "why": "Since 1.44.0 the standard mode is the default, with 3 attempts (4 for DynamoDB) and different back-off times."
      },
      {
       "dont": "except s3.exceptions.SomeError only, or except Exception and ignoring the code",
       "fix": "except botocore.exceptions.ClientError as e: check e.response['Error']['Code'], handle the codes you expect, re-raise the rest",
       "why": "Service errors are not fixed classes in botocore; they arrive as ClientError with a code in the response."
      },
      {
       "dont": "session.create_client('sqs') with no region set anywhere",
       "fix": "Pass region_name (or Config(region_name=...)) or set a default region in ~/.aws/config or AWS_DEFAULT_REGION",
       "why": "In our run it raised NoRegionError: You must specify a region."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Do I install botocore or boto3?",
       "a": "Usually boto3. It is built on botocore and pins a matching botocore version, so installing boto3 brings the right one.",
       "evidence": {
        "url": "https://pypi.org/pypi/boto3/1.44.0/json",
        "quote": "\"botocore<1.45.0,>=1.44.0\""
       }
      },
      {
       "q": "How do I catch AWS errors?",
       "a": "Catch botocore.exceptions.ClientError and read the error code from e.response['Error']['Code'].",
       "evidence": {
        "url": "https://boto3.amazonaws.com/v1/documentation/api/latest/guide/error-handling.html",
        "quote": "Boto3 classifies all AWS service errors and exceptions as ClientError exceptions."
       }
      },
      {
       "q": "How many times does it retry?",
       "a": "Since 1.44.0 the standard retry mode is the default: 3 attempts in total, 4 for DynamoDB. You can change both in Config.",
       "evidence": {
        "url": "https://github.com/boto/botocore/blob/develop/CHANGELOG.rst",
        "quote": "The standard retry mode is now the default."
       }
      },
      {
       "q": "Can I test without an AWS account?",
       "a": "Yes. The Stubber class returns answers you prepare, so no request reaches AWS.",
       "evidence": {
        "url": "https://botocore.amazonaws.com/v1/documentation/api/latest/reference/stubber.html",
        "quote": "This class will allow you to stub out requests so you don't have to hit an endpoint to write tests."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi botocore"
  ],
  [
   "Category",
   "SDKs for hosted services"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "66.5"
  ],
  [
   "Rank in category",
   "#35 of 287"
  ],
  [
   "GitHub",
   "boto/botocore"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [
  "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."
 ],
 "checked_line": "Read by AgentGid from 15 official pages, card checked Nov 11, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/boto.png"
}