skillfed

types-boto3-ec2

Type annotations for boto3 EC2 1.43.67 service generated with mypy-boto3-builder 8.12.0

types-boto3-ec2 v1.43.67 2.9M downloads/30d#2,853 on PyPI670
Permissive license MIT Active released

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-ec2

uv

uv add types-boto3-ec2

poetry

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 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

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

Tags

boto3 ec2 type annotationstype stubs for aws ec2mypy boto3 ec2pyright aws sdk typesec2 client type hintsboto3 type checkingaws ec2 autocomplete
type-stubsaws-sdkstatic-analysis

More Software Development packages