--- id: mypy-boto3-ec2 version: "1.43.67" license: MIT license_treatment: permissive maintenance: active --- # mypy-boto3-ec2 — Type annotations for boto3 EC2 1.43.67 service generated with mypy-boto3-builder 8.12.0 License: permissive · Maintenance: active · Downloads: 10.9M/mo ## 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 above — 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 pip install mypy-boto3-ec2 uv add mypy-boto3-ec2 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_current - Install friction: low - Maintenance: active - Downloads: 10.9M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags boto3 ec2 type annotations, mypy boto3 stubs, aws ec2 type hints, boto3 ec2 autocomplete, pyright boto3 ec2, static type checking aws, boto3 ide support, type-stubs, aws-sdk, ide-support [View on SkillFed](https://skillfed.io/packages/mypy-boto3-ec2) · [View on PyPI](https://pypi.org/project/mypy-boto3-ec2/)