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 code reference information
Test
Install project dependencies
poetry install
Activate virtualenv
poetry shell
Run tests
mypy tests
License
The MIT License
Project details
Release history Release notifications | RSS feed
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-1.0.4.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for aws_lambda_typing-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66d2c24a60c4f32b132f4492de2a207264c78274d001c98d9b5eb6da8fba43ee |
|
MD5 | a77e3e23c13741078262657e3aae04ee |
|
BLAKE2b-256 | b2aa6274d2c5af958257c2d3963c8b3bca35032e525ec1ebe2417126fae6aec9 |