mypy-boto3-ec2
Type annotations for boto3 EC2 1.43.67 service generated with mypy-boto3-builder 8.12.0
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- 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.
- Low install friction with a single runtime dependency (typing-extensions).
- Active maintenance with releases within the past week and a stable repository.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal obligations.
last release 2026-08-07 (7 days) · last repo commit 2026-06-22 · 670 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 10,938,911 downloads/mo, #1,424 on PyPI
Alternatives
Verify before relying
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- 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.
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 on it.
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
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.
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.
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
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 packagetyping-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 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTyping :: Stubs Only |
Evidence: mypy_boto3_ec2-1.43.67-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “boto3 ec2 type annotations”
- mypy-boto3-ec2Provides type annotations and IDE autocomplete support for boto3 EC2…
- types-boto3-ec2Provides type annotations and IDE autocomplete support for boto3 EC2…
- types-aiobotocore-ec2Provides type stubs and annotations for aiobotocore EC2 3.9.0,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also mypy-boto3-accessanalyzer · mypy-boto3-acm-pca · mypy-boto3-aiops · mypy-boto3-amplifybackend · mypy-boto3-apigatewayv2 · mypy-boto3-appconfig · mypy-boto3-appfabric · mypy-boto3-appflow · mypy-boto3-application-insights · mypy-boto3-applicationcostprofiler