types-aiobotocore-ec2
Type annotations for aiobotocore EC2 3.9.0 service generated with mypy-boto3-builder 8.12.0
What it is and what it does
types-aiobotocore-ec2 is a type-stub package that adds complete type annotations for the aiobotocore EC2 service. It was generated using mypy-boto3-builder 8.12.0 and provides type hints for EC2 clients, paginators, waiters, and service resources. When installed, it enables IDE features like autocomplete and inline documentation, and allows static type checkers (mypy, pyright) to validate your async AWS EC2 code without requiring explicit type annotations in your source.
The package is designed to work with multiple development environments: VSCode with Pylance, PyCharm, Emacs with lsp-pyright, Sublime Text with LSP-pyright, and command-line type checkers. It has a single runtime dependency on typing-extensions and requires Python 3.9 or later. The package is pure stubs (no compiled code), making installation straightforward and friction-free.
Use it for:
- Enable IDE autocomplete and type checking when writing async EC2 code with aiobotocore in VSCode or Emacs.
- Validate EC2 API calls with mypy or pyright in CI/CD pipelines to catch type errors before deployment.
- Provide inline documentation and parameter hints for EC2 client methods, paginators, and waiters in your editor.
- Use TYPE_CHECKING guards to get type safety during development while keeping the package out of production dependencies.
- Migrate from synchronous boto3 to async aiobotocore with confidence via static type checking.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs and annotations for aiobotocore EC2 3.9.0, enabling IDE autocomplete, type checking with mypy and pyright, and static analysis for async AWS EC2 operations.
Yes. This is a low-friction, actively maintained type-stub package with no security vulnerabilities, permissive MIT licensing, and a single lightweight dependency. Install it if you use aiobotocore EC2 3.9.0 and want IDE autocomplete or static type checking. PyCharm users should be aware of a known performance issue (PY-40997) with Literal overloads and may prefer types-aiobotocore-lite instead.
Install
types-aiobotocore-ec2 on PyPI
pip
pip install types-aiobotocore-ec2uv
uv add types-aiobotocore-ec2poetry
poetry add types-aiobotocore-ec2Installing types-aiobotocore-ec2
Before you install
Low friction: single runtime dependency (typing-extensions), wheel distribution, and active maintenance with a recent release 12 days ago. Designed as a pure type-stub package with no compiled dependencies.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal obligations.
Quickstart
pip install types-aiobotocore-ec2
from aiobotocore.session import get_session
from types_aiobotocore_ec2 import EC2Client
session = get_session()
async with session.create_client("ec2") as client:
client: EC2Client
# Type checking and IDE completion now available
Requires aiobotocore 3.9.0 to be installed separately; Python 3.9 or later.
Verify before relying
- Whether the package works with aiobotocore versions other than 3.9.0 or only that specific version.
- Performance impact in PyCharm reported in the description (PY-40997) and whether it affects other IDEs.
- Whether types-aiobotocore-lite is recommended as a default or only for PyCharm users experiencing slowness.
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 — 12 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,694,966/month — #2,524 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_aiobotocore_ec2-3.9.0-py3-none-any.whl
Keywords: aiobotocore, ec2, aiobotocore-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
types-aiobotocore-connectProvides type stubs and annotations for the…
permissive · top 15,000 on PyPI
types-aiobotocore-ecrProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI
types-aiobotocore-ecsProvides type stubs and IDE autocompletion for…
permissive · top 15,000 on PyPI
types-aiobotocore-iotProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI
types-aiobotocore-opensearchserverlessProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI
types-aiobotocore-rdsProvides type stubs and IDE autocompletion for…
permissive · top 5,000 on PyPI
types-aiobotocore-s3Provides type stubs and IDE autocompletion…
permissive · top 5,000 on PyPI
types-aiobotocore-sesv2Provides type annotations and IDE…
permissive · top 15,000 on PyPI
types-aiobotocore-sqsProvides type annotations and IDE autocomplete…
permissive · top 5,000 on PyPI
types-aiobotocore-translateProvides type stubs and IDE autocomplete…
permissive · top 15,000 on PyPI