Skip to main content

A package that provides type hints for AWS Lambda event, context and response objects

Project description

AWS Lambda Typing

A package that provides type hints for AWS Lambda event, context and response objects. It's a convenient way to get autocomplete and type hints built into IDEs. Type annotations are not checked at runtime but are only enforced by third party tools such as type checkers, IDEs, linters, etc.

Usage

AWS SQS message event example

import aws_lambda_typing as lambda_typing


def handler(event: lambda_typing.SQSEvent, context: lambda_typing.Context) -> None:

    for record in event['Records']:
        print(context.get_remaining_time_in_millis())

        print(record['body'])

Demo

IDE autocomplete

ide_autocomplete

IDE code reference information

code_reference_information

Hit counter

hit_count

License

The MIT License

License: MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws-lambda-typing-0.0.7.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_lambda_typing-0.0.7-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file aws-lambda-typing-0.0.7.tar.gz.

File metadata

  • Download URL: aws-lambda-typing-0.0.7.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.6

File hashes

Hashes for aws-lambda-typing-0.0.7.tar.gz
Algorithm Hash digest
SHA256 af9a2dc1ddc2f77f918256490bfdf61bf2ce92e638738120a534f8df215afff7
MD5 3cfd67dd877752c5e7f7045bca602708
BLAKE2b-256 aaa3c05bb5c69c2e31b5fa80a1ae9dde92376fe873ba5dfc3cf4936955cf9c3b

See more details on using hashes here.

File details

Details for the file aws_lambda_typing-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: aws_lambda_typing-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.6

File hashes

Hashes for aws_lambda_typing-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cf270184d16faf4999653b821f10aaeb56ad17aad8d740e81d8d0a57080ad604
MD5 20452309764153ea625668f2b16d3709
BLAKE2b-256 4849240d6bbc7a26fc16ebe9d642ae19bb0f79319e4a26bdbb62db7ea45f0f96

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page