mypy-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
mypy-boto3-ec2 is a type-stub package that adds complete type annotations for the boto3 EC2 service. It is generated from boto3 1.43.67 using mypy-boto3-builder and provides IDE autocomplete, type checking, and inline documentation for EC2 client operations, paginators, waiters, and service resources.
The package works by installing alongside boto3 and making type information available to static analysis tools (mypy, pyright) and IDEs (VSCode with Pylance, PyCharm, Emacs, Sublime Text). It enables developers to catch type errors at development time and get IDE suggestions without writing explicit type annotations. The package is designed as a stub-only distribution and can optionally be imported only under TYPE_CHECKING to avoid a production dependency.
Use it for:
- Enable mypy or pyright type checking on EC2 code without manual type annotations.
- Get IDE autocomplete and inline documentation for EC2 client methods in VSCode or PyCharm.
- Catch boto3 EC2 API usage errors during development before runtime.
- Use TYPE_CHECKING imports to provide type hints without adding a production dependency.
- Validate EC2 resource operations and paginator calls against the boto3 API schema.
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 service, enabling static type checking with mypy, pyright, and other tools across VSCode, PyCharm, Emacs, and Sublime Text.
Yes, if you use boto3 EC2 and want type checking or IDE support. Install friction is minimal, maintenance is active, and the MIT license poses no restrictions. PyCharm users should be aware of potential performance issues with Literal overloads and may prefer boto3-stubs-lite. No known security vulnerabilities.
Install
mypy-boto3-ec2 on PyPI
pip
pip install mypy-boto3-ec2uv
uv add mypy-boto3-ec2poetry
poetry add mypy-boto3-ec2Installing mypy-boto3-ec2
Before you install
Low install friction with a single runtime dependency (typing-extensions). Active maintenance with releases within the past week and a stable repository. Supports Python 3.9 through 3.14.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal obligations.
Quickstart
pip install mypy-boto3-ec2
from boto3.session import Session
from mypy_boto3_ec2 import EC2Client
client: EC2Client = Session().client("ec2")
# Type checking and autocomplete now available
Requires Python 3.9 or later; PyCharm may experience performance issues with Literal overloads (issue PY-40997) in which case boto3-stubs-lite is recommended as an alternative.
Verify before relying
- Whether the package's performance impact on IDE responsiveness varies significantly across different editor configurations.
- How frequently type annotations are regenerated to track boto3 API changes.
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 | 10,938,911/month — #1,424 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mypy_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-accessanalyzerProvides type annotations and IDE…
permissive · top 15,000 on PyPI
mypy-boto3-acm-pcaProvides type annotations and IDE…
permissive · top 15,000 on PyPI
mypy-boto3-aiopsProvides type annotations and IDE…
permissive · top 15,000 on PyPI
mypy-boto3-amplifybackendProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI
mypy-boto3-apigatewayv2Provides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI
mypy-boto3-appconfigProvides type annotations and IDE…
permissive · top 15,000 on PyPI
mypy-boto3-appfabricProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI
mypy-boto3-appflowProvides type annotations and IDE autocomplete…
permissive · top 5,000 on PyPI
mypy-boto3-application-insightsProvides type annotations and IDE…
permissive · top 15,000 on PyPI
mypy-boto3-applicationcostprofilerProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI