Skip to content

illagrenan/lambda-typing

Repository files navigation

λ 🐍 🚀 Lambda Typing

PyPi MIT TravisCI Coverage Supported Python implementations Supported Python versions

Introduction

This package contains LambdaDict and LambdaContext types for AWS Lambda handler parameters.

Credits: https://gist.github.com/alexcasalboni/a545b68ee164b165a74a20a5fee9d133 💖

Installation

  • Supported Python versions are: 3.6 and 3.7.
pip install --upgrade lambda-typing

Usage

from lambda_typing.types import LambdaDict, LambdaContext


def handle_event(event: LambdaDict, context: LambdaContext) -> LambdaDict:
    ...

    return {
        "message": "Foo bar",
        "event": event
    }

License

The MIT License (MIT)