# AWS Lambda Typing
![build](https://github.com/MousaZeidBaker/aws-lambda-typing/workflows/Publish/badge.svg)
![test](https://github.com/MousaZeidBaker/aws-lambda-typing/workflows/Test/badge.svg)
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
![python_version](https://img.shields.io/badge/python-%3E=3.6-blue.svg)
[![pypi_v](https://img.shields.io/pypi/v/aws-lambda-typing.svg)](https://pypi.org/project/aws-lambda-typing)
[![pypi_dm](https://img.shields.io/pypi/dm/aws-lambda-typing.svg)](https://pypi.org/project/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.
##### Table of Contents
- [Usage](#usage)
- [Demo](#demo)
- [Types](#types)
- [Context](#context)
- [Events](#events)
- [Responses](#responses)
- [Test](#test)
- [Contributing](#contributing)
- [Issues](#issues)
## Usage
### Example: AWS SQS event
```python
from aws_lambda_typing import context as context_, events
def handler(event: events.SQSEvent, context: context_.Context) -> None:
for record in event['Records']:
print(record['body'])
print(context.get_remaining_time_in_millis())
message: events.sqs.SQSMessage
```
## Demo
### IDE autocomplete
![ide_autocomplete](https://raw.githubusercontent.com/MousaZeidBaker/aws-lambda-typing/master/media/ide_autocomplete.gif)
### IDE code reference information
![code_reference_information](https://raw.githubusercontent.com/MousaZeidBaker/aws-lambda-typing/master/media/code_reference_information.gif)
## Types
### Context
- Context
### Events
- APIGatewayProxyEventV1
- APIGatewayProxyEventV2
- CloudWatchEventsMessageEvent
- CloudWatchLogsEvent
- CodePipelineEvent
- ConfigEvent
- DynamoDBStreamEvent
- KinesisFirehoseEvent
- KinesisStreamEvent
- MQEvent
- S3Event
- S3BatchEvent
- SESEvent
- SNSEvent
- SQSEvent
### Responses
- APIGatewayProxyResponseV1
- APIGatewayProxyResponseV2
- S3BatchResponse
## Test
Activate virtual environment
```shell
poetry shell
```
Install dependencies
```shell
poetry install --remove-untracked
```
Run tests
```shell
mypy tests
```
## Contributing
Contributions are welcome via pull requests.
## Issues
If you encounter any problems, please file an [issue](https://github.com/MousaZeidBaker/aws-lambda-typing/issues) along with a
detailed description.
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | aws-lambda-typing-2.0.3.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 79 浏览量
2022-01-26
14:22:49
上传
评论
收藏 12KB GZ 举报
温馨提示
共27个文件
py:22个
pkg-info:1个
md:1个
资源来自pypi官网。 资源全名:aws-lambda-typing-2.0.3.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
aws-lambda-typing-2.0.3.tar.gz (27个子文件)
aws-lambda-typing-2.0.3
PKG-INFO 3KB
pyproject.toml 976B
LICENSE 1KB
src
aws_lambda_typing
py.typed 0B
__init__.py 0B
responses
api_gateway_proxy.py 2KB
__init__.py 156B
s3_batch.py 984B
context
__init__.py 62B
context.py 3KB
events
cloud_watch_logs.py 1KB
kinesis_firehose.py 1KB
mq.py 1KB
code_pipeline.py 3KB
cloud_watch_events.py 838B
ses.py 6KB
dynamodb_stream.py 2KB
api_gateway_proxy.py 7KB
__init__.py 574B
s3.py 3KB
sns.py 2KB
config.py 765B
kinesis_stream.py 1KB
s3_batch.py 2KB
sqs.py 2KB
setup.py 3KB
README.md 2KB
共 27 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功