types-boto3-ec2
Type annotations for boto3 EC2 1.43.67 service generated with mypy-boto3-builder 8.12.0
What it is and what it does
types-boto3-ec2 is a stub-only package that adds type annotations for the boto3 EC2 service. It enables IDEs and type checkers to understand the shape and return types of EC2 client methods, paginators, waiters, and service resources without requiring runtime code changes. When installed, it works transparently with mypy, pyright, VSCode Pylance, PyCharm, Emacs, and Sublime Text to provide code completion and catch type errors during development.
The package is generated automatically from boto3 1.43.67 using mypy-boto3-builder 8.12.0 and tracks boto3 releases closely. It depends only on typing-extensions and adds no runtime overhead—type annotations are purely for static analysis. The documentation notes that PyCharm may experience performance issues with the full package due to its extensive Literal overloads, and recommends the lite variant as an alternative.
Use it for:
- Enable IDE autocomplete and type hints when writing boto3 EC2 code in VSCode, PyCharm, or Emacs without manual type annotations.
- Catch EC2 API usage errors at development time using mypy or pyright before deploying infrastructure code.
- Document EC2 client method signatures and return types for team members reviewing or maintaining boto3-based AWS automation.
- Use TYPE_CHECKING guards to add type safety to production code without adding a runtime dependency on the stubs package.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type annotations and IDE autocomplete support for boto3 EC2 1.43.67, enabling static type checking with mypy, pyright, and other tools.
Yes. If you use boto3 EC2 in a typed Python project, this package is worth installing. It has low friction (one lightweight dependency), active maintenance, no known vulnerabilities, and a permissive MIT license. The only caveat is PyCharm users experiencing slowness with Literal overloads—in that case, consider the lite variant instead.
Install
types-boto3-ec2 on PyPI
pip
pip install types-boto3-ec2uv
uv add types-boto3-ec2poetry
poetry add types-boto3-ec2Installing types-boto3-ec2
Before you install
Low friction install with a single runtime dependency (typing-extensions). Active maintenance with a release 7 days ago and 670 repository stars.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects.
Quickstart
pip install types-boto3-ec2
from boto3.session import Session
from types_boto3_ec2 import EC2Client
client: EC2Client = Session().client("ec2")
Requires Python 3.9 or later; boto3 1.43.67 must be installed separately for runtime use.
Verify before relying
- Whether PyCharm performance issue PY-40997 with Literal overloads remains unresolved in current PyCharm versions.
- Whether the lite variant (types-boto3-lite) offers meaningfully better IDE performance than the full package.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — typing-extensions |
| Maintenance | actively maintained — 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,866,242/month — #2,853 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_boto3_ec2-1.43.67-py3-none-any.whl
Keywords: boto3, ec2, boto3-stubs, type-annotations, mypy, typeshed, autocomplete
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
mypy-boto3-ec2Provides type annotations and IDE autocomplete…
permissive · top 5,000 on PyPI
types-boto3Provides type annotations and IDE…
permissive · top 5,000 on PyPI
types-boto3-s3Provides type annotations and IDE…
permissive · top 5,000 on PyPI
types-boto3-sesv2Provides type annotations and IDE…
permissive · top 5,000 on PyPI
types-boto3-kmsProvides type annotations and IDE…
permissive · top 15,000 on PyPI
types-boto3-ecrProvides type stubs and annotations for boto3…
permissive · top 15,000 on PyPI
types-boto3-ecsProvides type annotations for boto3 ECS 1.43.65…
permissive · top 15,000 on PyPI
types-boto3-fullProvides type annotations for boto3 1.43.71,…
permissive · top 5,000 on PyPI
types-boto3-iamProvides type annotations and IDE…
permissive · top 5,000 on PyPI
types-boto3-snsProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI