mypy-boto3-lambda

Type hints for boto3 Lambda service in Python code.

pipmacoslinuxwindows
Try with needOr install directly
Source

About

Type annotations for boto3 Lambda 1.42.37 service generated with mypy-boto3-builder 8.12.0

Examples

add type checking to lambda function code$ python -c "from mypy_boto3_lambda import LambdaClient; client: LambdaClient = boto3.client('lambda')"
enable IDE autocomplete for lambda operations$ python -c "from mypy_boto3_lambda.client import LambdaClient; help(LambdaClient.invoke)"
validate lambda code with mypy type checker$ mypy --strict my_lambda_handler.py
get type hints for lambda function invocation$ python -c "from mypy_boto3_lambda.type_defs import InvocationTypeType; print(InvocationTypeType)"
check response types when calling lambda functions$ python -c "from mypy_boto3_lambda.type_defs import InvokeResponseTypeDef; response: InvokeResponseTypeDef = client.invoke()"