types-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 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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; boto3 1.43.67 must be installed separately for runtime use.
- Low friction install with a single runtime dependency (typing-extensions).
- Active maintenance with a release 7 days ago and 670 repository stars.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects.
last release 2026-08-07 (7 days) · last repo commit 2026-06-22 · 670 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,866,242 downloads/mo, #2,853 on PyPI
Alternatives
Verify before relying
pip install types-boto3-ec2
from boto3.session import Session
from types_boto3_ec2 import EC2Client
client: EC2Client = Session().client("ec2")- 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.
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 on it.
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
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.
Requires Python 3.9 or later; boto3 1.43.67 must be installed separately for runtime use.
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")
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 packagetyping-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 |
| 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: types_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 › “type stubs for aws 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,…
- mypy-boto3-ec2Provides type annotations and IDE autocomplete support for boto3 EC2…
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-ec2 · types-boto3 · types-boto3-s3 · types-boto3-sesv2 · types-boto3-kms · types-boto3-ecr · types-boto3-ecs · types-boto3-full · types-boto3-iam · types-boto3-sns