--- id: types-boto3-ec2 version: "1.43.67" license: MIT license_treatment: permissive maintenance: active --- # types-boto3-ec2 — Type annotations for boto3 EC2 1.43.67 service generated with mypy-boto3-builder 8.12.0 License: permissive · Maintenance: active · Downloads: 2.9M/mo ## 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 above — 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 pip install types-boto3-ec2 uv add types-boto3-ec2 poetry add types-boto3-ec2 ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 2.9M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags boto3 ec2 type annotations, type stubs for aws ec2, mypy boto3 ec2, pyright aws sdk types, ec2 client type hints, boto3 type checking, aws ec2 autocomplete, type-stubs, aws-sdk, static-analysis [View on SkillFed](https://skillfed.io/packages/types-boto3-ec2) · [View on PyPI](https://pypi.org/project/types-boto3-ec2/)