mypy-boto3-ec2

Type hints for boto3 EC2 service in Python code

pipmacoslinuxwindows
Try with needOr install directly
Source

About

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

Examples

get IDE autocomplete for EC2 client methods$ python -c "import boto3; from mypy_boto3_ec2 import EC2Client; client: EC2Client = boto3.client('ec2')"
check Python code for EC2 API type errors$ mypy --strict my_ec2_script.py
enable autocomplete hints in text editor for EC2 instances$ python -c "from mypy_boto3_ec2.client import EC2Client; help(EC2Client.describe_instances)"
add type hints to EC2 boto3 code for better IDE support$ pip install mypy-boto3-ec2 && python -c "from mypy_boto3_ec2 import EC2Client"
validate EC2 API calls match boto3 method signatures$ mypy my_ec2_management.py --no-error-summary