{
 "kind": "tool",
 "slug": "boto3",
 "path": "tools/boto3/",
 "name": "Boto3",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "SDKs for hosted services",
   "tools/service-sdks/"
  ]
 ],
 "lead": "Use Amazon Web Services from Python.",
 "chips": [
  {
   "label": "SDKs for hosted services",
   "path": "tools/service-sdks/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install boto3"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/boto/boto3"
  },
  {
   "label": "Website",
   "href": "https://github.com/boto/boto3"
  }
 ],
 "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 grants free use in commercial products.",
   "src": "https://github.com/boto/boto3/blob/develop/LICENSE"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Apr 9, 2015. ",
   "src": "https://github.com/boto/boto3"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "59 projects",
   "status": "info",
   "sub": "#11 of 287 in its category",
   "note": "Dependency in 59 public GitHub projects set up for AI coding agents that we scanned (0.9%).",
   "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 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Boto3 does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Store user uploads in S3",
       "text": "Profile photos, invoices or exports go into an S3 bucket instead of your server's disk; big files are sent in parallel pieces.",
       "idea": false
      },
      {
       "title": "Time-limited download links",
       "text": "A customer gets a link to their private invoice that works for ten minutes, without the file ever being public.",
       "idea": false
      },
      {
       "title": "List every file in a big bucket",
       "text": "A cleanup or report script walks through all files in a bucket, not just the first thousand that one request returns.",
       "idea": false
      },
      {
       "title": "Test AWS code without an account",
       "text": "Your tests feed boto3 ready-made AWS answers, including errors like a missing file, so they run offline and cost nothing.",
       "idea": false
      },
      {
       "title": "Call AI models on Amazon Bedrock",
       "text": "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.",
       "idea": true
      },
      {
       "title": "Background jobs through a queue",
       "text": "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.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Boto3 popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "75",
       "of": "/ 100",
       "l": "Gid Score, #216 overall"
      },
      {
       "n": "557M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "9,940",
       "l": "GitHub stars"
      },
      {
       "n": "59",
       "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 Boto3 is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "35 projects, 1.1%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "26 projects, 0.9%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "26 projects, 1.1%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 59.3% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 57.6% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 54.2% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 52.5% of its projects",
       "v": "FastAPI",
       "path": "tools/fastapi/"
      },
      {
       "l": "In 49.2% of its projects",
       "v": "Uvicorn",
       "path": "tools/uvicorn/"
      },
      {
       "l": "In 40.7% of its projects",
       "v": "PyYAML",
       "path": "tools/pyyaml/"
      },
      {
       "l": "In 39.0% of its projects",
       "v": "OpenAI Python Library",
       "path": "tools/openai-pypi/"
      },
      {
       "l": "In 35.6% of its projects",
       "v": "redis (Python)",
       "path": "tools/redis-pypi/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Boto3",
   "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": "Boto3",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 75",
        "557M/wk"
       ]
      },
      {
       "name": "aioboto3",
       "why": "Pick aioboto3 when your Python app is async (FastAPI, aiohttp) and AWS calls must not block.",
       "path": "tools/aioboto3/",
       "facts": []
      },
      {
       "name": "AWS SDK for JavaScript (S3)",
       "why": "Pick the AWS SDK for JavaScript S3 client when your backend is Node.js or TypeScript, not Python.",
       "path": "tools/aws-sdk-client-s3/",
       "facts": []
      },
      {
       "name": "Supabase JS",
       "why": "Pick Supabase JS when you want a hosted database, sign-in and file storage behind one simple client instead of separate AWS services.",
       "path": "tools/supabase-supabase-js/",
       "facts": []
      },
      {
       "name": "Google Cloud Storage (Python)",
       "why": "Official client library for Google Cloud Storage API integration.",
       "path": "tools/google-cloud-storage-pypi/",
       "facts": [
        "Apache-2.0",
        "Gid 69",
        "39.8M/wk"
       ]
      }
     ],
     "more": "Compare Boto3 with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "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."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Use Python 3.10 or newer in a virtual environment, then install boto3.",
       "code": "$ python -m venv .venv\n...\n$ . .venv/bin/activate\n$ python -m pip install boto3\n",
       "src": "https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html"
      },
      {
       "text": "The person sets up credentials and a default region (for example with aws configure); keys stay out of the code.",
       "code": "[default]\naws_access_key_id = YOUR_KEY\naws_secret_access_key = YOUR_SECRET\n",
       "src": "https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html"
      },
      {
       "text": "Create a client for the service you need and call it.",
       "code": "import boto3\ns3 = boto3.client('s3')\n",
       "src": "https://boto3.amazonaws.com/v1/documentation/api/latest/guide/clients.html"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "boto3.client('s3', aws_access_key_id='AKIA...', aws_secret_access_key='...') with real keys in the code",
       "fix": "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",
       "why": "Keys in code end up in Git history and logs; boto3 finds them on its own."
      },
      {
       "dont": "boto3.client('sqs') with no region configured",
       "fix": "boto3.client('sqs', region_name='eu-central-1') or set AWS_DEFAULT_REGION",
       "why": "In our run it raised NoRegionError: You must specify a region."
      },
      {
       "dont": "One list_objects_v2 call to get all files",
       "fix": "s3.get_paginator('list_objects_v2').paginate(Bucket=...)",
       "why": "One call returns at most 1,000 objects; the paginator follows the continuation token for you."
      },
      {
       "dont": "Writing new code with boto3.resource('s3') because older tutorials do",
       "fix": "Use boto3.client('s3') for new code",
       "why": "Resources get no new features; newer service features arrive through clients."
      },
      {
       "dont": "One boto3.Session() shared by many threads or worker processes",
       "fix": "Create a session (and its clients) per thread or process",
       "why": "Sessions are not thread safe; clients cannot be shared across processes."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Does boto3 cost money?",
       "a": "The library is free and open source. The AWS services you call are billed to your AWS account by use.",
       "evidence": {
        "url": "https://aws.amazon.com/pricing/",
        "quote": "With AWS you pay only for the individual services you need, for as long as you use them"
       }
      },
      {
       "q": "Where should the keys go?",
       "a": "Not in code. Boto3 searches parameters, environment variables, ~/.aws files and the server's role, in a fixed order.",
       "evidence": {
        "url": "https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html",
        "quote": "The order in which Boto3 searches for credentials is:"
       }
      },
      {
       "q": "Client or resource: which should I use?",
       "a": "Use clients for new code; the resource style still works but gets no new features.",
       "evidence": {
        "url": "https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html",
        "quote": "The AWS Python SDK team does not intend to add new features to the resources interface in boto3."
       }
      },
      {
       "q": "Can I share one client between threads?",
       "a": "Clients mostly yes; sessions and resources no. Create a session per thread or process.",
       "evidence": {
        "url": "https://boto3.amazonaws.com/v1/documentation/api/latest/guide/session.html",
        "quote": "session objects are not thread safe and should not be shared across threads and processes."
       }
      },
      {
       "q": "How do I catch errors from AWS?",
       "a": "Catch botocore's ClientError and read the error code, or a named exception such as s3.exceptions.NoSuchKey.",
       "evidence": {
        "url": "https://boto3.amazonaws.com/v1/documentation/api/latest/guide/error-handling.html",
        "quote": "AWS service exceptions are caught with the underlying botocore exception"
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi boto3"
  ],
  [
   "Category",
   "SDKs for hosted services"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "74.6"
  ],
  [
   "Rank in category",
   "#11 of 287"
  ],
  [
   "GitHub",
   "boto/boto3"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [
  "Boto3 itself is free, but every AWS service it calls is billed to your account by use.",
  "You need an AWS account and access keys or another sign-in method first; only the account owner can create them.",
  "Never write keys into your code; boto3 finds them in environment variables, config files or the server's role."
 ],
 "checked_line": "Read by AgentGid from 18 official pages, card checked Nov 10, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/boto.png"
}