skillfed

mypy-boto3-ec2

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

mypy-boto3-ec2 v1.43.67 10.9M downloads/30d#1,424 on PyPI670
Permissive license MIT Active released

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

uv

uv add mypy-boto3-ec2

poetry

poetry add mypy-boto3-ec2

Installing 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

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 annotationsmypy boto3 stubsaws ec2 type hintsboto3 ec2 autocompletepyright boto3 ec2static type checking awsboto3 ide support
type-stubsaws-sdkide-support

More Software Development packages

typing-extensions

Provides backported and experimental type hints…

permissive · top 100 on PyPI

numpy

NumPy provides an N-dimensional array object…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

distlib

Distlib provides low-level packaging utilities…

permissive · top 1,000 on PyPI

mypy-boto3-accessanalyzer

Provides type annotations and IDE…

permissive · top 15,000 on PyPI

mypy-boto3-acm-pca

Provides type annotations and IDE…

permissive · top 15,000 on PyPI

mypy-boto3-aiops

Provides type annotations and IDE…

permissive · top 15,000 on PyPI

mypy-boto3-amplifybackend

Provides type annotations and IDE autocomplete…

permissive · top 15,000 on PyPI

mypy-boto3-apigatewayv2

Provides type annotations and IDE autocomplete…

permissive · top 15,000 on PyPI

mypy-boto3-appconfig

Provides type annotations and IDE…

permissive · top 15,000 on PyPI

mypy-boto3-appfabric

Provides type annotations and IDE autocomplete…

permissive · top 15,000 on PyPI

mypy-boto3-appflow

Provides type annotations and IDE autocomplete…

permissive · top 5,000 on PyPI

mypy-boto3-application-insights

Provides type annotations and IDE…

permissive · top 15,000 on PyPI

mypy-boto3-applicationcostprofiler

Provides type annotations and IDE autocomplete…

permissive · top 15,000 on PyPI